<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<BR>
&nbsp;<BR>
I'm using AGI scripting with asterisk and&nbsp;need to execute certain commands just after Dial(). But once dial command is executed, further commands/instructions are ignored.<BR>
&nbsp;<BR>
&nbsp;<BR>
$agi-&gt;exec("Dial","SIP/100");<BR>
$dialstatus = $agi -&gt; get_variable("DIALSTATUS"); <BR>
&nbsp;<BR>
if($dialstatus[data]=="ANSWER")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do something.......<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>
&nbsp;<BR>
thanks,<BR>
Kamlesh<BR>                                               </div></body>
</html>