[asterisk-users] execute command just after Dial()

Kamlesh Kumar kamlesh_kmr at hotmail.com
Fri Dec 23 06:54:21 CST 2011


Hello,
 
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.
 
 
$agi->exec("Dial","SIP/100");
$dialstatus = $agi -> get_variable("DIALSTATUS"); 
 
if($dialstatus[data]=="ANSWER")
       
        {
       do something.......
        }
 
thanks,
Kamlesh 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111223/49f45e33/attachment.htm>


More information about the asterisk-users mailing list