James Mutuku
2009-Sep-03 07:01 UTC
[asterisk-users] passing commands asterisk cli and getting output using PHP AGI
Hellos, I know this might be an easy one but either way I am stuck...I need to execute asterisk cli commands using php agi and get the output via the same script. How to I execute let's say "show hints" and get the output back to the script? I have tried $agi->exec("show hints"); but I am getting the output below on the cli debug AGI Rx << EXEC show hints AGI Tx >> 200 result=-2 AGI Rx << VERBOSE "EXEC show hints returned -2" 1 AGI Tx >> 200 result=1
Steve Howes
2009-Sep-03 07:14 UTC
[asterisk-users] passing commands asterisk cli and getting output using PHP AGI
On 3 Sep 2009, at 08:01, James Mutuku wrote:> I know this might be an easy one but either way I am stuck...I need > to execute asterisk cli commands using php agi and get the output > via the same script. > > How to I execute let's say "show hints" and get the output back to > the script? I have triedUse asterisk manager within the script. $asm->command("show hints"); S