<div dir="ltr"><div class="gmail_quote">On Mon, Jun 6, 2011 at 2:06 AM, Steve Edwards <span dir="ltr">&lt;<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Mon, 6 Jun 2011, A E [Gmail] wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello,using 1.8.4. using a very simple local AGI script in bash which has only one line in it:<br>
<br>
echo -e &#39;STREAM FILE welcome 123 \n&#39;<br>
<br></div><div class="im">
What gives? spent 2 hrs Googling but nothing! :(<br>
</div></blockquote>
<br>
Maybe 1.5 hrs should have been spent reading :)<br></blockquote><div><br></div><div><font class="Apple-style-span" color="#000099" face="&#39;trebuchet ms&#39;, sans-serif">touche ;)</font> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br>
One line does not an AGI make.<br>
<br></blockquote><div><font class="Apple-style-span" face="&#39;trebuchet ms&#39;, sans-serif" color="#000099">Did you just pull a &#39;Yoda&#39; Steve?</font></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


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.<br>
<br></blockquote><div><font class="Apple-style-span" face="&#39;trebuchet ms&#39;, sans-serif" color="#000099">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&#39;t help. I also explicitly did that in the perl script, but doesn&#39;t work. It only works in PHP. </font></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If you don&#39;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.<br>
<br>
Please use an existing AGI library for the language of your choice. Nobody gets it right the first time.<br><font class="Apple-style-span" color="#888888"><br></font></blockquote></div></div>