You can also try special extension hangup and manage your scenario<br><br><div class="gmail_quote">On Sat, Dec 24, 2011 at 12:44 PM, Sammy Govind <span dir="ltr"><<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>></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">Hi,<div>Please see the Dial application documents from CLI, i.e "core show application dial". 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 class="gmail_quote"><div><div class="h5">On Fri, Dec 23, 2011 at 5:54 PM, Kamlesh Kumar <span dir="ltr"><<a href="mailto:kamlesh_kmr@hotmail.com" target="_blank">kamlesh_kmr@hotmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
<div><div dir="ltr">
Hello,<br>
<br>
I'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->exec("Dial","SIP/100");<br>
$dialstatus = $agi -> get_variable("DIALSTATUS"); <br>
<br>
if($dialstatus[data]=="ANSWER")<br> <br> {<br> do something.......<br>
}<br>
<br>
thanks,<br>
Kamlesh<br>                                            </div></div>
<br></div></div><span class="HOEnZb"><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>