perl treats = as an assignment operator. For comparison, you need eq or == .
-apu
On 12/18/05, Code Lover <[EMAIL PROTECTED]> wrote:
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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
