Hi danny,<br><br>Shall we take it as agi bug ?<br><br>Thanks,<br>Ashik<br><br><br><div class="gmail_quote">On Thu, Sep 9, 2010 at 7:10 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="blue" lang="EN-US">
<div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Ashik Ali<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, September 09, 2010
2:06 AM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk
Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users] agi
playback to execute say.conf settings</span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><div class="im">hi,<br>
<br>
any response ?<br>
<br>
thanks,<br>
Ashik<br>
</div><font color="navy"><span style="color: navy;"><snip></span></font></span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">exec
playback in AGI expects to find a file or set of files in
/var/lib/asterisk/sounds. Here is the vital snippet from the PERL AGI I
whipped up to test your query</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">print
"EXEC PLAYBACK beep \"\"\n";</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">#print
"EXEC PLAYBACK 'num:334456,say' \"\"\n"; this line will
fail with</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> --
AGI Script Executing Application: (PLAYBACK) Options: ('num:334456,say')</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">[Sep 9
08:33:16] WARNING[8569]: file.c:664 ast_openstream_full: File 'num:334456,say'
does not exist in any format</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">[Sep 9
08:33:16] WARNING[8569]: file.c:991 ast_streamfile: Unable to open
'num:334456,say' (format 0x4 (ulaw)): No such file or directory</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">[Sep 9
08:33:16] WARNING[8569]: app_playback.c:440 playback_exec: ast_streamfile
failed on SIP/134-0000000a for 'num:334456,say'</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">print
"SAY NUMBER 334456 \"\"\n"; This does the same thing in AGI
as playback(num:334456,say)</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">print
"EXEC PLAYBACK beep \"\"\n";</span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">my
$result = <STDIN>;</span></font></p>
</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>