Skip to content

Having troubles to orignate #173

@disolaterX

Description

@disolaterX
newChannelKey := ari.NewKey(ari.ChannelKey, url.QueryEscape(fmt.Sprintf("channel:%s", endpoint+time.Now().String())))
log.Printf("Originate call to %s\n", newChannelKey)
channel, err := client.Channel().Originate(newChannelKey, ari.OriginateRequest{
  Endpoint:  endpoint,
  Extension: "s",
  Context:   "inbound",
  Priority:  1,
  CallerID:  endpoint, // Optional: Set CallerID if you want to override anonymous@anonymous.invalid
  Timeout:   30,
})

here endpoint value is

 PJSIP/superfone_number/sip:su_15@10.140.0.10: Non-2XX response: 400 Bad Request

the same work in dial() in extension but how to achive same where I want to call this su_15@10.140.0.10 it exist on kamilio

(edited for formatting/readability)

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