<br><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 9:42 AM, A E [Gmail] <span dir="ltr">&lt;<a href="mailto:all.eforums@gmail.com">all.eforums@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><font color="#663366"><font face="trebuchet ms,sans-serif">Hello,</font></font><div><font color="#663366"><font face="trebuchet ms,sans-serif">using 1.8.4. using a very simple local AGI script in bash which has only one line in it:</font></font></div>


<div><font color="#663366"><font face="trebuchet ms,sans-serif"><br></font></font></div><div><font color="#663366" face="&#39;courier new&#39;, monospace">echo -e &#39;STREAM FILE welcome 123 \n&#39;</font></div><div><font color="#663366"><font face="trebuchet ms,sans-serif"><br>


</font></font></div><div><font color="#663366"><font face="trebuchet ms,sans-serif">dialplan:</font></font></div><div><font color="#663366"><div><div><font face="&#39;courier new&#39;, monospace">exten =&gt; 5150,1,Answer()</font></div>


<div><font face="&#39;courier new&#39;, monospace">  same =&gt; n,Set(CHANNEL(language)=en_AU)</font></div><div><font face="&#39;courier new&#39;, monospace">  same =&gt; n,AGI(testagi.sh)</font></div>

</div></font></div></div></blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><div><font color="#663366"><div><div><font face="&#39;courier new&#39;, monospace">same =&gt; n,Hangup</font></div>
</div></font><div><font color="#663366"><div><div><font face="&#39;courier new&#39;, monospace"></font></div></div></font></div></div></div></blockquote><div>Try this below dilaplan<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div><div><font color="#663366"><div><div><font face="&#39;courier new&#39;, monospace">exten =&gt; 5150,1,Answer()</font></div>

<div><font face="&#39;courier new&#39;, monospace">  same =&gt; n,Set(CHANNEL(language)=en_AU)</font></div><div><font face="&#39;courier new&#39;, monospace">  same =&gt; n,AGI(testagi)</font></div>

</div></font></div><font color="#663366"><div><div><font face="&#39;courier new&#39;, monospace">same =&gt; n,Hangup</font></div></div></font></div></div></blockquote><div>    <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr"><div><font color="#663366"><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;"></div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">

console output:</div><div><div><div><font face="&#39;trebuchet ms&#39;, sans-serif">   </font><font face="&#39;courier new&#39;, monospace"> -- Executing [5150@AllPhones:1] Answer(&quot;SIP/PBX-00000024&quot;, &quot;&quot;) in new stack</font></div>


<div><font face="&#39;courier new&#39;, monospace">    -- Executing [5150@AllPhones:2] Set(&quot;SIP/PBX-00000024&quot;, &quot;CHANNEL(language)=en_AU&quot;) in new stack</font></div><div><font face="&#39;courier new&#39;, monospace">    -- Executing [5150@AllPhones:3] AGI(&quot;SIP/PBX-00000024&quot;, &quot;testagi.sh&quot;) in new stack</font></div>


<div><font face="&#39;courier new&#39;, monospace">    -- Launched AGI Script /var/lib/asterisk/agi-bin/testagi.sh</font></div><div><font face="&#39;courier new&#39;, monospace">    -- Playing &#39;welcome&#39; (escape_digits=1) (sample_offset 0)</font></div>


<div><font face="&#39;courier new&#39;, monospace">    -- &lt;SIP/PBX-00000024&gt;AGI Script testagi.sh completed, returning 0</font></div><div><font face="&#39;courier new&#39;, monospace">    -- Executing [5150@AllPhones:4] Hangup(&quot;SIP/PBX-00000024&quot;, &quot;&quot;) in new stack</font></div>


<div><font face="&#39;courier new&#39;, monospace">  == Spawn extension (AllPhones, 5150, 4) exited non-zero on &#39;SIP/PBX-00000024&#39;</font></div></div></div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">


<br></div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">But nothing happens...as in even when it says that it&#39;s playing the file (as verified in the asterisk &#39;full&#39; log), I hear nothing on the phone</div>


<div style="font-family: &#39;trebuchet ms&#39;,sans-serif;"><br></div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">What gives? spent 2 hrs Googling but nothing! :(</div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">


<br></div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">Thx</div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;">\A</div><div style="font-family: &#39;trebuchet ms&#39;,sans-serif;"><br>
</div>
</font></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><font face="Verdana, sans-serif"><font size="2"><font color="#000000">Best
Regards, <br><br>Mahesh Katta</font><br><font color="#ff9900"><b>BUZZ</b></font><font color="#000000"><b>WORKS</b></font><font color="#000000">
Business Services Private Limited<br></font><font color="#999999">BANGALORE
</font><font color="#000000">| </font><font color="#999999">CHENNAI </font><font color="#808080">|
</font><font color="#999999">HYDERABAD </font><font color="#000000">|
</font><font color="#ff9900">MUMBAI| </font><font color="#999999">DELHI<br></font><font color="#000000">201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E) Mumbai 400069</font><font color="#666666"><br>
</font><font color="#ff9900">GSM</font><font color="#000000">
+91.97029.70779 | </font><font color="#ff9900">Phone </font><font color="#000000">+91.22.4229.2634
| </font><font color="#ff9900">Fax </font><font color="#000000">+91.22.4229.2634<br></font><font color="#ff9900">Web</font><font color="#000000">
<a href="http://www.buzzworks.com/" target="_blank">http://www.buzzworks.com<br></a></font></font></font><br>