Re: [asterisk-users] wav files are not playing asterisk
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nikhil Sent: Tuesday, March 01, 2011 3:21 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] wav files are not playing asterisk Hi I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Thanks Nikhil -- If you have foo.gsm and foo.wav, foo.gsm will always play. Rename foo.gsm to foo1.gsm and foo.wav should play. -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
Do you have complied wav file support in asterisk? -- Sent from my iPhone On Mar 1, 2011, at 9:11 AM, "Danny Nicholas" wrote: -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nikhil Sent: Tuesday, March 01, 2011 3:21 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] wav files are not playing asterisk Hi I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Thanks Nikhil -- If you have foo.gsm and foo.wav, foo.gsm will always play. Rename foo.gsm to foo1.gsm and foo.wav should play. -- _ -- 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 -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
On Tue, 1 Mar 2011, Nikhil wrote: I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Asterisk chooses a file encoding based on the channel encoding. If your channel is encoded as GSM, Asterisk will not look for a .wav of the same name if a .gsm is available. If the .gsm is not available, Asterisk will use the .wav with the additional 'overhead' of transcoding the data to GSM. Without any console log, these are just guesses: 1) Don't specify the file type in your dialplan. Asterisk chooses a file type for you based on channel encoding and formatting modules loaded. Is format_wav.so loaded? 2) Your WAV file is not encoded correctly. The 'file' command should show something like 'RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz' 3) You have permission issues. From a shell, as the user your instance of Asterisk runs as, can you access the file? If this doesn't help, please repost including the relevant dialplan context (as displayed by 'dialplan show ) and a snippet of the console log of a call playing the WAV file. -- Thanks in advance, - Steve Edwards sedwa...@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
Re: [asterisk-users] wav files are not playing asterisk
Any reply.. On 03/01/2011 02:50 PM, Nikhil wrote: Hi I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Thanks Nikhil -- _ -- 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 -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
At least 3 replies earlier today on list. Nikhil wrote: Any reply.. On 03/01/2011 02:50 PM, Nikhil wrote: Hi I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Thanks Nikhil -- _ -- 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 -- _ -- 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 -- Dog is my Co-pilot -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
sory satish...my thunderbrid was not load. Thanks for reply... On 03/02/2011 09:59 AM, Nikhil wrote: Any reply.. On 03/01/2011 02:50 PM, Nikhil wrote: Hi I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Thanks Nikhil -- _ -- 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 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
Hi I am using Asterisks as client. By console dial I can make calls. When do "dial s" from console it wil play demo files that I can here from headphone connected to asterisk running system(Android OS).If I play gsm file noise is coming,but asterisk is not playing wav files,below is the error I am getting. Where I can see the channels is encodes as GSM,and how to change to wav.? *CLI> dial s -- Executing [s@default:1] Wait("ALSA/hw:0,0", "1") in new stack The 'dial' command is deprecated and will be removed in a future release. Please use 'console dial' instead. *CLI> -- Executing [s@default:2] Answer("ALSA/hw:0,0", "") in new stack << Console call has been answered >> -- Executing [s@default:3] Set("ALSA/hw:0,0", "TIMEOUT(digit)=5") in new stack -- Digit timeout set to 5 -- Executing [s@default:4] Set("ALSA/hw:0,0", "TIMEOUT(response)=10") in new stack -- Response timeout set to 10 -- Executing [s@default:5] BackGround("ALSA/hw:0,0", "demo-congrats") in new stack [Feb 28 22:27:06] WARNING[2736]: file.c:665 ast_openstream_full: File demo-congrats does not exist in any format [Feb 28 22:27:07] WARNING[2736]: file.c:995 ast_streamfile: Unable to open demo-congrats (format 0x40 (slin)): No such file or directory [Feb 28 22:27:07] WARNING[2736]: pbx.c:5830 pbx_builtin_background: ast_streamfile failed on ALSA/hw:0,0 for demo-congrats -- Executing [s@default:6] BackGround("ALSA/hw:0,0", "demo-instruct") in new stack [Feb 28 22:27:07] WARNING[2736]: format_wav.c:148 check_header: Not in mono 2 [Feb 28 22:27:07] WARNING[2736]: file.c:386 fn_wrapper: Unable to open format wav [Feb 28 22:27:07] WARNING[2736]: file.c:995 ast_streamfile: Unable to open demo-instruct (format 0x40 (slin)): No such file or directory [Feb 28 22:27:07] WARNING[2736]: pbx.c:5830 pbx_builtin_background: ast_streamfile failed on ALSA/hw:0,0 for demo-instruct -- Executing [s@default:7] WaitExten("ALSA/hw:0,0", "") in new stack -- Timeout on ALSA/hw:0,0, going to 't' -- Executing [t@default:1] Goto("ALSA/hw:0,0", "#|1") in new stack -- Goto (default,#,1) -- Executing [#@default:1] Playback("ALSA/hw:0,0", "demo-thanks") in new stack -- Playing 'demo-thanks' (language 'en') -- Executing [#@default:2] Hangup("ALSA/hw:0,0", "") in new stack == Spawn extension (default, #, 2) exited non-zero on 'ALSA/hw:0,0' Thanks Nikhil On 03/01/2011 07:55 PM, Steve Edwards wrote: On Tue, 1 Mar 2011, Nikhil wrote: I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Asterisk chooses a file encoding based on the channel encoding. If your channel is encoded as GSM, Asterisk will not look for a .wav of the same name if a .gsm is available. If the .gsm is not available, Asterisk will use the .wav with the additional 'overhead' of transcoding the data to GSM. Without any console log, these are just guesses: 1) Don't specify the file type in your dialplan. Asterisk chooses a file type for you based on channel encoding and formatting modules loaded. Is format_wav.so loaded? 2) Your WAV file is not encoded correctly. The 'file' command should show something like 'RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz' 3) You have permission issues. From a shell, as the user your instance of Asterisk runs as, can you access the file? If this doesn't help, please repost including the relevant dialplan context (as displayed by 'dialplan show ) and a snippet of the console log of a call playing the WAV file. -- _ -- 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
Re: [asterisk-users] wav files are not playing asterisk
Your error is in front of you. format_wav.c:148 check_header: Not in mono 2 [Feb 28 22:27:07] WARNING[2736]: file.c:386 fn_wrapper: Unable to open format wav Your wav file is not in proper format. Must be mono, and at 8khz, 16bit You can resample by using this command: sox foo-in.wav -r 8000 -c 1 -s -w foo-out.wav resample -ql more info here: (found by using a cool search engine called google and typing "asterisk wav format" http://www.voip-info.org/wiki/view/Convert+WAV+audio+files+for+use+in+Asteri sk From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nikhil Sent: Wednesday, March 02, 2011 12:51 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] wav files are not playing asterisk Hi I am using Asterisks as client. By console dial I can make calls. When do "dial s" from console it wil play demo files that I can here from headphone connected to asterisk running system(Android OS).If I play gsm file noise is coming,but asterisk is not playing wav files,below is the error I am getting. Where I can see the channels is encodes as GSM,and how to change to wav.? *CLI> dial s -- Executing [s@default:1] Wait("ALSA/hw:0,0", "1") in new stack The 'dial' command is deprecated and will be removed in a future release. Please use 'console dial' instead. *CLI> -- Executing [s@default:2] Answer("ALSA/hw:0,0", "") in new stack << Console call has been answered >> -- Executing [s@default:3] Set("ALSA/hw:0,0", "TIMEOUT(digit)=5") in new stack -- Digit timeout set to 5 -- Executing [s@default:4] Set("ALSA/hw:0,0", "TIMEOUT(response)=10") in new stack -- Response timeout set to 10 -- Executing [s@default:5] BackGround("ALSA/hw:0,0", "demo-congrats") in new stack [Feb 28 22:27:06] WARNING[2736]: file.c:665 ast_openstream_full: File demo-congrats does not exist in any format [Feb 28 22:27:07] WARNING[2736]: file.c:995 ast_streamfile: Unable to open demo-congrats (format 0x40 (slin)): No such file or directory [Feb 28 22:27:07] WARNING[2736]: pbx.c:5830 pbx_builtin_background: ast_streamfile failed on ALSA/hw:0,0 for demo-congrats -- Executing [s@default:6] BackGround("ALSA/hw:0,0", "demo-instruct") in new stack [Feb 28 22:27:07] WARNING[2736]: format_wav.c:148 check_header: Not in mono 2 [Feb 28 22:27:07] WARNING[2736]: file.c:386 fn_wrapper: Unable to open format wav [Feb 28 22:27:07] WARNING[2736]: file.c:995 ast_streamfile: Unable to open demo-instruct (format 0x40 (slin)): No such file or directory [Feb 28 22:27:07] WARNING[2736]: pbx.c:5830 pbx_builtin_background: ast_streamfile failed on ALSA/hw:0,0 for demo-instruct -- Executing [s@default:7] WaitExten("ALSA/hw:0,0", "") in new stack -- Timeout on ALSA/hw:0,0, going to 't' -- Executing [t@default:1] Goto("ALSA/hw:0,0", "#|1") in new stack -- Goto (default,#,1) -- Executing [#@default:1] Playback("ALSA/hw:0,0", "demo-thanks") in new stack -- Playing 'demo-thanks' (language 'en') -- Executing [#@default:2] Hangup("ALSA/hw:0,0", "") in new stack == Spawn extension (default, #, 2) exited non-zero on 'ALSA/hw:0,0' Thanks Nikhil On 03/01/2011 07:55 PM, Steve Edwards wrote: On Tue, 1 Mar 2011, Nikhil wrote: I try to play a wav file in asterisk ,but its accepting only gsm files.Do u know where I need to change to make it works. Asterisk chooses a file encoding based on the channel encoding. If your channel is encoded as GSM, Asterisk will not look for a .wav of the same name if a .gsm is available. If the .gsm is not available, Asterisk will use the .wav with the additional 'overhead' of transcoding the data to GSM. Without any console log, these are just guesses: 1) Don't specify the file type in your dialplan. Asterisk chooses a file type for you based on channel encoding and formatting modules loaded. Is format_wav.so loaded? 2) Your WAV file is not encoded correctly. The 'file' command should show something like 'RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz' 3) You have permission issues. From a shell, as the user your instance of Asterisk runs as, can you access the file? If this doesn't help, please repost including the relevant dialplan context (as displayed by 'dialplan show ) and a snippet of the console log of a call playing the WAV file. -- _ -- 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