Un-top-posting again...

On 11-08-24 10:21 AM, Tim King wrote:

I have been testing this for a week now, and I am still struggling to make it work. Here is the output from extension 11 just to show that permissions are correct and asterisk can access faxnotify.php

On Wed, 24 Aug 2011, J Gao wrote:

Try put the php in the AGI directory and call it via AGI() in Asterisk.

On Wed, Aug 24, 2011, Steve Edwards wrote:

If the script does not conform to the AGI protocol, do not call it with agi().

On Wed, 24 Aug 2011, Tim King wrote:

What does this mean? The suggestion from Jian did resolve the issue.

It may 'work' but it did not resolve the issue and may introduce unpredictable behavior in the future.

When Asterisk executes an AGI, it creates an environment that is fed to your program's STDIN. Asterisk expects that your program will read it.

Asterisk then expects to receive requests from your program via your program writing to it's STDOUT and expects your program will read the response via it's STDIN. This request/response cycle continues until your program exits.

If your program violates this protocol it is not an AGI and you should not expect stable behavior.

You have not resolved the issue that you cannot execute your program via system().

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to