<br><br>
<div class="gmail_quote">2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) <span dir="ltr"><<a href="mailto:lloyd.aloysius@sunteltech.ca">lloyd.aloysius@sunteltech.ca</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="gmail_quote">Dear All,<br><br>I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC) command. Here is the PHP-AGI Script.<br><br> $call = $asm->send_request('Originate',<br>
array('Channel'=>"SIP/416XXXXXXX@ABC/n",<br> 'Context'=>'ORIG',<br> 'Exten'=>'s',<br> <b> 'Async'=>'1',</b><br>
'MaxRetries' => '1',<br> 'RetryTime' => '10',<br> 'Priority'=>1,<br> 'Account'=>"$phonenumber",<br>
'Callerid'=>"$callid")<br> <br><br><u><b>extensions.conf</b></u><br><br>[ORIG]<br>exten => s,1,Answer<br>exten => s,2,Playback(ivrfile)<br>exten => s,n,Hangup<br>
<br><br>How Can I get the Originate Status using Async? ANSWER, BUSY, NOANSWER etc......<br><br><br clear="all">Thank you.<br><font color="#888888">Lloyd<br><br><br><br></font></div><br><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div>
<div><br><br clear="all">Hi.,</div>
<div> </div>
<div> You can use 'failed' extension on the ORIG . <br>-- <br>Pagarbiai / Best Regards,<br>Giedrius Augys<br></div>