Hello,
I’ve written a AGI script in php for getting a channel variable value. Im not able to get the the variable value in my script even though i could see the output in the agi transactions of asterisk console. Here is the agi debug output from CLI,
When i print the value of the variable CALLS in the script getting previous commands output. Also, could see some strange agi transactions in the beginning of the script as below,
Version Details:
PHP 4.3.9 (cgi) (built: Apr 25 2006 10:10:14)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend TechnologiesOS: Cent OS 4.1
FYI - I’ve also tried cli version of php and still getting “510 Invalid or unknown command” error in the agi debug ouput.
I think many people would have faced this problem just a little help from them would be greatly appreciated.
Thanks,
Rajesh.