<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>
<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></body>
</html>