[asterisk-users] Fwd: Manager Interface Originate (ASYNC) - How to get the Originate Status

Aloysius Thevarajah Lloyd (SunTel Technologies) lloyd.aloysius at sunteltech.ca
Thu Feb 12 21:51:06 CST 2009


Dear All,

I am originating the call directly to the SIP Provider using the maganger
interface + originate (ASYNC)  command. Here is the PHP-AGI Script.

            $call = $asm->send_request('Originate',
                     array('Channel'=>"SIP/416XXXXXXX at ABC/n",
                    'Context'=>'ORIG',
                    'Exten'=>'s',
                   * 'Async'=>'1',*
                    'MaxRetries' => '1',
                    'RetryTime' => '10',
                    'Priority'=>1,
                    'Account'=>"$phonenumber",
                    'Callerid'=>"$callid")


*extensions.conf*

[ORIG]
exten => s,1,Answer
exten => s,2,Playback(ivrfile)
exten => s,n,Hangup


How Can I get the Originate Status using Async?  ANSWER, BUSY, NOANSWER
etc......


Thank you.
Lloyd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090212/cb7e21be/attachment.htm 


More information about the asterisk-users mailing list