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">On Fri, Dec 23, 2011 at 5:54 PM, Kamlesh Kumar <span dir="ltr"><<a href="mailto:kamlesh_kmr@hotmail.com">kamlesh_kmr@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>--<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></div>