On Mon, 6 Jun 2011, A E [Gmail] wrote:

Hello,using 1.8.4. using a very simple local AGI script in bash which has only one line in it:

echo -e 'STREAM FILE welcome 123 \n'

What gives? spent 2 hrs Googling but nothing! :(

Maybe 1.5 hrs should have been spent reading :)

One line does not an AGI make.

AGI is an interface. It consists of reading the AGI environment from STDIN and then, writing requests on STDOUT and reading the response from STDIN.

If you don't follow these 3 steps in order (steps 2 and 3 can be repeated) then your program has violated the protocol and will not function reliably if at all.

Please use an existing AGI library for the language of your choice. Nobody gets it right the first time.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       [email protected]      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