so you can try with options of dial application<br><br> g: Proceed with dialplan execution at the next priority in the current<br>    extension if the destination channel hangs up.<br><br><br>    G([[context^]exten^]priority): If the call is answered, transfer<br>
    the calling party to the specified &lt;priority&gt; and the called party to<br>    the specified  &lt;priority&gt; plus one.<br>    NOTE: You cannot use any additional action post answer options in<br>    conjunction with this option.<br>
<br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 6:15 PM, Kamlesh Kumar <span dir="ltr">&lt;<a href="mailto:kamlesh_kmr@hotmail.com">kamlesh_kmr@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div><div dir="ltr">
hangup extension works once the call is terminated but I want to know the status of call immediately after connected, cancelled, or rejected and so on.<br>
 <br>
thanks,<br>
Kamlesh<br> <br>
<div>
<div></div>
<hr>
Date: Tue, 27 Dec 2011 16:59:35 +0530<br>From: <a href="mailto:dhaval.it01034@gmail.com" target="_blank">dhaval.it01034@gmail.com</a><br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] execute command just after Dial()<div><div class="h5"><br><br>You can also try special extension hangup and manage your scenario<br><br>
<div>On Sat, Dec 24, 2011 at 12:44 PM, Sammy Govind <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="padding-left:1ex">Hi,
<div>Please see the Dial application documents from CLI, i.e &quot;core show application dial&quot;. There is an option which will let you continue in the DIal-plan after the Dial command on hangup.</div>
<div><br></div>
<div>Regards,</div>
<div>Sammy.<br><br>
<div>
<div>
<div>On Fri, Dec 23, 2011 at 5:54 PM, Kamlesh Kumar <span dir="ltr">&lt;<a href="mailto:kamlesh_kmr@hotmail.com" target="_blank">kamlesh_kmr@hotmail.com</a>&gt;</span> wrote:<br></div></div>
<blockquote style="padding-left:1ex">
<div>
<div>
<div>
<div dir="ltr">Hello,<br> <br>I&#39;m using AGI scripting with asterisk and need to execute certain commands just after Dial(). But once dial command is executed, further commands/instructions are ignored.<br> <br> <br>$agi-&gt;exec(&quot;Dial&quot;,&quot;SIP/100&quot;);<br>
$dialstatus = $agi -&gt; get_variable(&quot;DIALSTATUS&quot;); <br> <br>if($dialstatus[data]==&quot;ANSWER&quot;)<br>       <br>        {<br>       do something.......<br>        }<br> <br>thanks,<br>Kamlesh<br></div></div>
<br></div></div><span><font color="#888888">--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></font></span></blockquote></div><br></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>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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><br><br>-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs: <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a> asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div>
</div></div>                                               </div></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>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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><br>