Can you originate a pjsip call directly from the dialplan?

I’m asking this question not because I want to originate a call from the CLI, but because I want to understand how a call is originated in the code.

Specifically I’m trying to figure out how Dial() is used with PJSIP.
The only stuff I can find are these old manuals from before PJSIP was invented.
http://asteriskdocs.org/en/2nd_Edition/asterisk-book-html-chunk/asterisk-APP-B-53.html
Any help or resources appreciated.

quickest example I could think of …

channel originate pjsip/2002 application MusicOnHold

where 2002 is a pjsip extension registered to the system

2 Likes

I think the OP is using “originate” in a non-Asterisk sense. He really seems to be asking about PJSIP dialstrings (which also, of course, apply to the real Asterisk “originate”), in which case, what he really wants is:

https://wiki.asterisk.org/wiki/display/AST/Dialing+PJSIP+Channels

2 Likes

Thanks that’s what I was looking for. Much appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.