[Asterisk-Users] PERL AGI DIALSTATUS

Code Lover lateef.np at gmail.com
Sun Dec 18 03:13:33 MST 2005


Hi all,

I wanted to execute one of mySQL query when the call is answered i
tried with the following code but it dones not seems to work.

$AGI->exec('Dial', $dialext);

my $dialstatus =  $AGI->get_variable("DIALSTATUS");
if($dialstatus="ANSWER"){$Accounting_update->execute($fdatetime,$Cuniq,$UserName,$CalledN);}

It is not updating my query when the call is successfull answered, and
i checked my query from outside using perl commond it is working well
without any issue.




--
Thank You,
Code Lover



More information about the asterisk-users mailing list