FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Couldn't able to place calls properly using Create() and Dial () · Issue #122 · CyCoreSystems/ari · GitHub

Repository navigation

Couldn't able to place calls properly using Create() and Dial () #122

Description

On answering the channel when a call enters the Stasis App I create a new channel for "SIP/8312453028" with app "test" and then place the dial function to initiate the call with newly created channel id. I get the call on SIP/8312453028, then I answered but there are no media between both clients.
Workflow is given below:

orig := &ari.ChannelCreateRequest{Endpoint: "SIP/8312453028", App: "test"}
channel, err1 := h.Create(*orig)
if err1 != nil {
log.Error("Failed to Create Channel", "error", err1)
return
}
err2 := channel.Dial(channel.ID(), 30)
if err2 != nil {
log.Error("Failed to Dial Call", "error", err2)
return
}

return

The console error I received:

EROR[07-15|16:04:20] failed to answer call error="Non-2XX response: 412 Precondition Failed"

It would be helpful if you guide more about it. Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL