Re: [asterisk-users] passing commands asterisk cli and getting output using PHP AGI

2009-09-03 Thread James Mutuku
I have included that but my scripts goes silent at AGI Rx << EXEC Flite "Hello 1215, you have dialed 1220." AGI Tx >> 200 result=0 Below is my script #!/usr/bin/php -q new_AsteriskManager(); $agi->answer(); $callext = $agi->get_variable("DNID"); $callext=$callext['data'];

Re: [asterisk-users] passing commands asterisk cli and getting output using PHP AGI

2009-09-03 Thread Steve Howes
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

[asterisk-users] passing commands asterisk cli and getting output using PHP AGI

2009-09-03 Thread James Mutuku
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 getti