[asterisk-users] AGI STREAM FILE not working?

A E [Gmail] all.eforums at gmail.com
Mon Jun 6 01:16:56 CDT 2011


On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards <asterisk.org at sedwards.com>wrote:

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

touche ;)

>
> One line does not an AGI make.
>
> Did you just pull a 'Yoda' Steve?


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


> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110606/338a64b8/attachment.htm>


More information about the asterisk-users mailing list