[asterisk-users] On-Hold Music
ayodele abejide
ayodeleabejide at hotmail.com
Fri Feb 11 20:20:30 CST 2011
I tried what you suggested and this is the console output:
[Feb 12 03:18:41] WARNING[2774]: file.c:650 ast_openstream_full: File /var/lib/asterisk/sounds/home/abejide/Desktop/a does not exist in any format[Feb 12 03:18:41] WARNING[2774]: file.c:956 ast_streamfile: Unable to open /var/lib/asterisk/sounds/home/abejide/Desktop/a (format 0x2 (gsm)): No such file or directory[Feb 12 03:18:41] WARNING[2774]: app_playback.c:471 playback_exec: ast_streamfile failed on SIP/1002-00000004 for /var/lib/asterisk/sounds/home/abejide/Desktop/a
Best Regards,
ABEJIDE, Ayodele A. (CCNA)
+2348039269311
"Before long, paying for a phone call will be as alien as paying for email"
> Date: Fri, 11 Feb 2011 18:12:19 -0800
> From: asterisk.org at sedwards.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] On-Hold Music
>
> On Sat, 12 Feb 2011, ayodele abejide wrote:
>
> > I am having problems playing files with the playback command, also with
> > the Dial (A()) option this is the output from console:
> >
> > This is the dialplan:
> >
> > exten => 1003,n,Playback(home/abejide/Desktop/a.wav)
>
> Don't specify the file type. Asterisk will try to find a file encoded and
> formatted to match the encoding of the channel. Failing a match, Asterisk
> will try to find a file it can transcode to match the encoding of the
> channel.
>
> Since you specified a relative path ('does not start with a slash'),
> Asterisk will prefix (by default) '/var/lib/asterisk/sounds/' to your
> path yielding:
>
> /var/lib/asterisk/sounds/home/abejide/Desktop/a.*
>
> is this what you want?
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
> --
> _____________________________________________________________________
> -- 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/20110212/e4ce5077/attachment.htm>
More information about the asterisk-users
mailing list