Hi all, I am trying to setup music on hold. In extensions.conf did put the following: exten => 6601,1,WaitMusicOnHold(30) Using a sip phone, x-lite, after I dialed 6601 I get the following: -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR Backend) -- Executing WaitMusicOnHold("SIP/666-f408", "30") in new stack Jun 24 22:35:07 WARNING[458766]: res_musiconhold.c:331 moh1_exec: Unable to start music on hold (class '30') on channel SIP/666-f408 == Spawn extension (default, 6601, 1) exited non-zero on 'SIP/666-f408' I am using gentoo linux, I have mpg123 installed. Any ideas??? Thanks in advance, Francois
At 22:40 24/06/2004 -0400, you wrote:>Hi all, > >I am trying to setup music on hold. > >In extensions.conf did put the following: > >exten => 6601,1,WaitMusicOnHold(30)Remove the 30 And answer the phone first this should work exten => 6601,1,Answer() exten => 6601,2,MusicOnHold() Jason
Hi!> Using a sip phone, x-lite, after I dialed 6601 I get the following:Have you set "Transmit silence" to YES in X-Lite?> -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR Backend) > -- Executing WaitMusicOnHold("SIP/666-f408", "30") in new stack > Jun 24 22:35:07 WARNING[458766]: res_musiconhold.c:331 moh1_exec: Unable > to start music on hold (class '30') on channel SIP/666-f408 > == Spawn extension (default, 6601, 1) exited non-zero on 'SIP/666-f408'I assume you did load musiconhold in /etc/asterisk/modules.conf, and that you configured /etc/asterisk/musiconhold.conf correctly !?> I am using gentoo linux, I have mpg123 installed.Which version of mpg123 are you using exactly? The recommended version is ends with an 'r'. Finally: What type of mp3 file are you trying to play, is it 128 kbit, mono and without VBR (variable bit rate) and without any ID3 tags? Cheers, Philipp