[asterisk-users] agi playback to execute say.conf settings
Danny Nicholas
danny at debsinc.com
Thu Sep 9 08:40:02 CDT 2010
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ashik Ali
Sent: Thursday, September 09, 2010 2:06 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] agi playback to execute say.conf settings
hi,
any response ?
thanks,
Ashik
<snip>
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
print "EXEC PLAYBACK beep \"\"\n";
#print "EXEC PLAYBACK 'num:334456,say' \"\"\n"; this line will fail with
-- AGI Script Executing Application: (PLAYBACK) Options:
('num:334456,say')
[Sep 9 08:33:16] WARNING[8569]: file.c:664 ast_openstream_full: File
'num:334456,say' does not exist in any format
[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
[Sep 9 08:33:16] WARNING[8569]: app_playback.c:440 playback_exec:
ast_streamfile failed on SIP/134-0000000a for 'num:334456,say'
print "SAY NUMBER 334456 \"\"\n"; This does the same thing in AGI as
playback(num:334456,say)
print "EXEC PLAYBACK beep \"\"\n";
my $result = <STDIN>;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100909/849431fe/attachment.htm
More information about the asterisk-users
mailing list