<br><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 9:42 AM, A E [Gmail] <span dir="ltr"><<a href="mailto:all.eforums@gmail.com">all.eforums@gmail.com</a>></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="'courier new', monospace">echo -e 'STREAM FILE welcome 123 \n'</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="'courier new', monospace">exten => 5150,1,Answer()</font></div>
<div><font face="'courier new', monospace"> same => n,Set(CHANNEL(language)=en_AU)</font></div><div><font face="'courier new', monospace"> same => 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="'courier new', monospace">same => n,Hangup</font></div>
</div></font><div><font color="#663366"><div><div><font face="'courier new', 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="'courier new', monospace">exten => 5150,1,Answer()</font></div>
<div><font face="'courier new', monospace"> same => n,Set(CHANNEL(language)=en_AU)</font></div><div><font face="'courier new', monospace"> same => n,AGI(testagi)</font></div>
</div></font></div><font color="#663366"><div><div><font face="'courier new', monospace">same => 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: 'trebuchet ms',sans-serif;"></div><div style="font-family: 'trebuchet ms',sans-serif;">
console output:</div><div><div><div><font face="'trebuchet ms', sans-serif"> </font><font face="'courier new', monospace"> -- Executing [5150@AllPhones:1] Answer("SIP/PBX-00000024", "") in new stack</font></div>
<div><font face="'courier new', monospace"> -- Executing [5150@AllPhones:2] Set("SIP/PBX-00000024", "CHANNEL(language)=en_AU") in new stack</font></div><div><font face="'courier new', monospace"> -- Executing [5150@AllPhones:3] AGI("SIP/PBX-00000024", "testagi.sh") in new stack</font></div>
<div><font face="'courier new', monospace"> -- Launched AGI Script /var/lib/asterisk/agi-bin/testagi.sh</font></div><div><font face="'courier new', monospace"> -- Playing 'welcome' (escape_digits=1) (sample_offset 0)</font></div>
<div><font face="'courier new', monospace"> -- <SIP/PBX-00000024>AGI Script testagi.sh completed, returning 0</font></div><div><font face="'courier new', monospace"> -- Executing [5150@AllPhones:4] Hangup("SIP/PBX-00000024", "") in new stack</font></div>
<div><font face="'courier new', monospace"> == Spawn extension (AllPhones, 5150, 4) exited non-zero on 'SIP/PBX-00000024'</font></div></div></div><div style="font-family: 'trebuchet ms',sans-serif;">
<br></div><div style="font-family: 'trebuchet ms',sans-serif;">But nothing happens...as in even when it says that it's playing the file (as verified in the asterisk 'full' log), I hear nothing on the phone</div>
<div style="font-family: 'trebuchet ms',sans-serif;"><br></div><div style="font-family: 'trebuchet ms',sans-serif;">What gives? spent 2 hrs Googling but nothing! :(</div><div style="font-family: 'trebuchet ms',sans-serif;">
<br></div><div style="font-family: 'trebuchet ms',sans-serif;">Thx</div><div style="font-family: 'trebuchet ms',sans-serif;">\A</div><div style="font-family: 'trebuchet ms',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>