[asterisk-app-dev] Creating a SIP Call from asterisk without any external trigger

Joshua Colp jcolp at digium.com
Wed Nov 22 07:56:13 CST 2017


On Wed, Nov 22, 2017, at 09:48 AM, vijay sukumaran nair wrote:
> Dear Joshua,
> Thank you for the reply.
> As you understand, I do not have SIP request to generate sip_pvt
> structure & a SIP channel.
> 1. Is it possible to trigger dial plan (extensions.conf - default
> context) and create SIP request (INVITE) on the new channel I created?
> Would this create a SIP channel ?     - If yes, how can I do that?    -
> Is it possible to bind the new channel and the SIP channel created?
> 2. What are the asterisk API's available to originate a SIP invite
> outside of SIP channel?
> Thanks, Vijay. 

Anything in Asterisk can originate an outgoing channel and call a
device. You can use the AMI originate or CLI command as a basis to
understanding that.

What you can't do is pretend a SIP INVITE arrived into Asterisk somehow
and create a SIP channel and send it into the dialplan. You can only
place an outgoing call to a device that once answered goes where you
want.

If this isn't what you need to do then there's nothing really built in
to do what you want precisely.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-app-dev mailing list