<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 class="Apple-style-span" color="#663366"><div><div><font class="Apple-style-span" face="'courier new', monospace">exten => 5150,1,Answer()</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> same => n,Set(CHANNEL(language)=en_AU)</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> same => n,AGI(testagi.sh)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> same => n,Hangup</font></div></div><div style="font-family: 'trebuchet ms', sans-serif; "><br></div><div style="font-family: 'trebuchet ms', sans-serif; ">
console output:</div><div><div><div><font class="Apple-style-span" face="'trebuchet ms', sans-serif"> </font><font class="Apple-style-span" face="'courier new', monospace"> -- Executing [5150@AllPhones:1] Answer("SIP/PBX-00000024", "") in new stack</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> -- Executing [5150@AllPhones:2] Set("SIP/PBX-00000024", "CHANNEL(language)=en_AU") in new stack</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> -- Executing [5150@AllPhones:3] AGI("SIP/PBX-00000024", "testagi.sh") in new stack</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> -- Launched AGI Script /var/lib/asterisk/agi-bin/testagi.sh</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> -- Playing 'welcome' (escape_digits=1) (sample_offset 0)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> -- <SIP/PBX-00000024>AGI Script testagi.sh completed, returning 0</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> -- Executing [5150@AllPhones:4] Hangup("SIP/PBX-00000024", "") in new stack</font></div>
<div><font class="Apple-style-span" 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>