hii guys: i get the message from the asterisk: Started music on hold, class 'default', on Local/s at skype-web-callback-dial-263to263-1775,1 [2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory -- Stopped music on hold on Local/s at skype-web-callback-dial-263to263-1775,1 how can i solve the issue? thanks 2008-11-11 ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081111/aee6bf2c/attachment.htm
The reason is your audio file is too high quality. Asterisk can only play back audio file of 4000Hz. ________________________________ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of ?? Sent: Tuesday, 11 November 2008 5:35 PM To: asterisk-users Subject: [asterisk-users] music on hold hii guys: i get the message from the asterisk: Started music on hold, class 'default', on Local/s at skype-web-callback-dial-263to263-1775,1 [2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory -- Stopped music on hold on Local/s at skype-web-callback-dial-263to263-1775,1 how can i solve the issue? thanks 2008-11-11 ________________________________ ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081111/7b5c9b0a/attachment.htm
On Tue, Nov 11, 2008 at 05:53:39PM +1100, Lee, John (Sydney) wrote:> The reason is your audio file is too high quality. > > Asterisk can only play back audio file of 4000Hz.8000Hz (and also: mono, 16 bit sample rate). What is the output of: file path/to/sound.wav -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
^_^ asterisk should Encoding voice in 8KHZ ,16k bits,mono80000 ,i have formate the .wav files. thank you for your advice,best regard. 2008-11-11 ?? ???? Peter Evans ????? 2008-11-11 14:57:36 ???? Asterisk Users Mailing List - Non-Commercial Discussion ??? ??? Re: [asterisk-users] music on hold On Tue, Nov 11, 2008 at 02:35:19PM +0800, ?? wrote:> hii guys: > i get the message from the asterisk: > Started music on hold, class 'default', on Local/s at skype-web-callback-dial-263to263-1775,1 > [2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 > [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav > [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory > -- Stopped music on hold on Local/s at skype-web-callback-dial-263to263-1775,1TOM SKYPE + 163.com = I guess your first language is mandarin. You know, life would be so much easier if people would read error messages and think for a moment. Undoubtably, there are times when the error message is cryptic beyond mortal understanding and you need to summon an elder thing to help you read it, but this one is not of that ilk. '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory This could be a tough one. If you can't solve this without help, should you really be playing with ancient scrolls of wisdom in the first place? P ps: ?????????? but that probably doesnt work because I am using a Japanese font ^^; _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 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/20081111/c9289eca/attachment.htm
On Tue, 11 Nov 2008, Peter Evans wrote:> On Tue, Nov 11, 2008 at 02:35:19PM +0800, ???? wrote: > > hii guys: > > i get the message from the asterisk: > > Started music on hold, class 'default', on Local/s at skype-web-callback-dial-263to263-1775,1 > > [2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 > > [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav > > [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory > > -- Stopped music on hold on Local/s at skype-web-callback-dial-263to263-1775,1 > > TOM SKYPE + 163.com = I guess your first language is mandarin. > > You know, life would be so much easier if people would read error messages and > think for a moment. Undoubtably, there are times when the error message is cryptic > beyond mortal understanding and you need to summon an elder thing to help you > read it, but this one is not of that ilk. > > '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory > > This could be a tough one. > > If you can't solve this without help, should you really be playing with ancient > scrolls of wisdom in the first place? >Isn't it horribly embarrasing when you publicly trash someone and are WRONG? Why do people feel the need to be so cruel in the first place? j
Hi, You can convert your music files in 8000 hz and mono with sox command like this sox yourfile.wav -r 8000 -c 1 yournewfile,wav resample -ql Uros -- Use Free Software http://www.fsf.org/ ----------------------------------------------- Four essential software freedoms: 1) To study source code 2) To copy program 3) To modify source code 4) To redistribute modified program under condition that new user has all 4 freedoms. Richard M. Stallman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081111/31677a5b/attachment.htm
See: http://astrecipes.net/index.php?q=AstRecipes/Music-on-hold%20without%20MPG123 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081114/49c8dcb2/attachment.htm
Peter Evans wrote:> On Tue, Nov 11, 2008 at 02:35:19PM +0800, ?? wrote: > >> hii guys: >> i get the message from the asterisk: >> Started music on hold, class 'default', on Local/s at skype-web-callback-dial-263to263-1775,1 >> [2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 >> [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav >> [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory >> > '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory > > This could be a tough one. > > If you can't solve this without help, should you really be playing with ancient > scrolls of wisdom in the first place? >Actually Peter, this isn't the real giveaway as to what the problem is. That would be the line that says "[2008-11-11 14:32:41] WARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025" The wave files aren't properly encoded for Asterisk.