On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards <[email protected]> wrote:

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.

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

Right! I did read that, the problem is how do I do this in bash?? I tried read the result in and just post a Noop kind of a thing just to tell that I read something, but it didn't help. I also explicitly did that in the perl script, but doesn't work. It only works in PHP.

Bash would probably be my last choice of language to write an AGI with.

Personally, I use C because it is my sharpest tool and because you can execute hundreds of AGIs written in C in the time it takes to load the Perl or PHP interpreter and parse your script.

I suspect that the problems you are experiencing with Perl may have something to do with flushing STDOUT or reading the complete response from STDIN.

I strongly suggest using an existing library for the language of your choice.

--
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