[asterisk-users] agi playback to execute say.conf settings

Ashik Ali beaasteriskguru at gmail.com
Tue Sep 14 02:26:45 CDT 2010


Hi danny,

Shall we take it as agi bug ?

Thanks,
Ashik


On Thu, Sep 9, 2010 at 7:10 PM, Danny Nicholas <danny at debsinc.com> wrote:

>   ------------------------------
>
> *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>;
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100914/06bdf09a/attachment.htm 


More information about the asterisk-users mailing list