You mean <br><br>exten =&gt; failed,....<br><br><br>Regards,<br>Lloyd<br>
<br><br><div class="gmail_quote">On Fri, Feb 13, 2009 at 2:00 AM, Giedrius Augys <span dir="ltr">&lt;<a href="mailto:voipas@gmail.com">voipas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>
<div class="gmail_quote">2009/2/13 Aloysius Thevarajah Lloyd (SunTel Technologies) <span dir="ltr">&lt;<a href="mailto:lloyd.aloysius@sunteltech.ca" target="_blank">lloyd.aloysius@sunteltech.ca</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
<div class="gmail_quote">Dear All,<br><br>I am originating the call directly to the SIP Provider using the maganger interface + originate (ASYNC)&nbsp; command. Here is the PHP-AGI Script.<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $call = $asm-&gt;send_request(&#39;Originate&#39;,<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; array(&#39;Channel&#39;=&gt;&quot;SIP/416XXXXXXX@ABC/n&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Context&#39;=&gt;&#39;ORIG&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Exten&#39;=&gt;&#39;s&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<b> &#39;Async&#39;=&gt;&#39;1&#39;,</b><br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;MaxRetries&#39; =&gt; &#39;1&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;RetryTime&#39; =&gt; &#39;10&#39;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Priority&#39;=&gt;1,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Account&#39;=&gt;&quot;$phonenumber&quot;,<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#39;Callerid&#39;=&gt;&quot;$callid&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br><br><u><b>extensions.conf</b></u><br><br>[ORIG]<br>exten =&gt; s,1,Answer<br>exten =&gt; s,2,Playback(ivrfile)<br>exten =&gt; s,n,Hangup<br>

<br><br>How Can I get the Originate Status using Async?&nbsp; ANSWER, BUSY, NOANSWER etc......<br><br><br clear="all">Thank you.<br><font color="#888888">Lloyd<br><br><br><br></font></div><br><br></div></div>_______________________________________________<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>&nbsp; <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>&nbsp;</div>
<div>&nbsp; You can use &#39;failed&#39; extension on the ORIG .&nbsp;<br>-- <br>Pagarbiai &nbsp;/ Best Regards,<br>Giedrius Augys<br></div>
<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>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>