Chuck Bunn
2005-Dec-03 20:52 UTC
[Asterisk-Users] Converted mp3 files to raw for musiconhold and still does not work...
Hi, I setup music on hold as directed for Asterisk 1.2 but still no music on hold. Any ideas what I did wrong. I see it start in the CLI but then it immediately stops?? I also see the Hangup occur 20 seconds later as it should according to WitMusicOnHold(20). I used a test setup suggested in the wiki... ************************** CLI Output Spawn extension (longdistance, 870, 4) exited non-zero on 'SIP/499-39ff' -- Executing Answer("SIP/499-206c", "") in new stack -- Executing SetMusicOnHold("SIP/499-206c", "default") in new stack -- Executing WaitMusicOnHold("SIP/499-206c", "20") in new stack -- Started music on hold, class 'default', on channel 'SIP/499-206c' -- Stopped music on hold on SIP/499-206c == Spawn extension (longdistance, 870, 3) exited non-zero on 'SIP/499-206c' *************************** ;Music on Hold exten => 870,1,Answer exten => 870,2,SetMusicOnHold(default) exten => 870,3,WaitMusicOnHold(20) exten => 870,4,Hangup ************************* musiconhold.conf [default] mode=quietmp3 directory=/var/lib/asterisk/mohmp3 ************************* zapata.conf [trunkgroups] [channels] musiconhold=default echocancel=yes echocancelwhenbridged=yes echotraining=yes rxgain=10.0 txgain=3.0 usecallerid=yes hidecallerid=no callwaiting=no threewaycalling=no transfer=no immediate=no faxdetect=both context=incoming-home signalling=fxs_ks group=1 channel => 1,2 context=local signalling=fxo_ks group=2 channel => 3 context=longdistance signalling=fxo_ks group=3 channel => 4 ************************** Output of /var/lib/asterisk/mohmp3 directory [root@tomato mohmp3]# ls -la total 107772 drwxr-xr-x 2 asterisk asterisk 4096 Dec 3 20:33 . drwxr-xr-x 9 asterisk asterisk 4096 Nov 11 10:18 .. -rw-r--r-- 1 root root 1939812 Nov 11 10:24 fpm-calm-river.mp3 -rw-r--r-- 1 root root 2582496 Nov 11 10:24 fpm-sunshine.mp3 -rw-r--r-- 1 root root 2217563 Nov 11 10:24 fpm-world-mix.mp3 -rw-r--r-- 1 asterisk asterisk 884864 Oct 29 12:39 QuajiroPromo.mp3 -rw-r--r-- 1 asterisk asterisk 835712 Oct 29 12:39 TristeAlegriaPromo.mp3 Thanks
Bharath
2005-Dec-03 22:01 UTC
[Asterisk-Users] Converted mp3 files to raw for musiconhold and still does not work...
I had the same problem, had to reboot the machine & it started to work. Thanks On 12/3/05, Chuck Bunn <chuck.bunn@networkdoc.com> wrote:> > Hi, > > I setup music on hold as directed for Asterisk 1.2 but still no music on > hold. Any ideas what I did wrong. I see it start in the CLI but then it > immediately stops?? I also see the Hangup occur 20 seconds later as it > should according to WitMusicOnHold(20). I used a test setup suggested in > the wiki... > > ************************** > CLI Output > Spawn extension (longdistance, 870, 4) exited non-zero on 'SIP/499-39ff' > -- Executing Answer("SIP/499-206c", "") in new stack > -- Executing SetMusicOnHold("SIP/499-206c", "default") in new stack > -- Executing WaitMusicOnHold("SIP/499-206c", "20") in new stack > -- Started music on hold, class 'default', on channel 'SIP/499-206c' > -- Stopped music on hold on SIP/499-206c > == Spawn extension (longdistance, 870, 3) exited non-zero on > 'SIP/499-206c' > > *************************** > ;Music on Hold > exten => 870,1,Answer > exten => 870,2,SetMusicOnHold(default) > exten => 870,3,WaitMusicOnHold(20) > exten => 870,4,Hangup > > ************************* > musiconhold.conf > > [default] > mode=quietmp3 > directory=/var/lib/asterisk/mohmp3 > > ************************* > zapata.conf > > [trunkgroups] > > [channels] > musiconhold=default > echocancel=yes > echocancelwhenbridged=yes > echotraining=yes > rxgain=10.0 > txgain=3.0 > usecallerid=yes > hidecallerid=no > callwaiting=no > threewaycalling=no > transfer=no > immediate=no > faxdetect=both > > context=incoming-home > signalling=fxs_ks > group=1 > channel => 1,2 > > context=local > signalling=fxo_ks > group=2 > channel => 3 > > context=longdistance > signalling=fxo_ks > group=3 > channel => 4 > > ************************** > Output of /var/lib/asterisk/mohmp3 directory > > [root@tomato mohmp3]# ls -la > total 107772 > drwxr-xr-x 2 asterisk asterisk 4096 Dec 3 20:33 . > drwxr-xr-x 9 asterisk asterisk 4096 Nov 11 10:18 .. > -rw-r--r-- 1 root root 1939812 Nov 11 10:24 fpm-calm-river.mp3 > -rw-r--r-- 1 root root 2582496 Nov 11 10:24 fpm-sunshine.mp3 > -rw-r--r-- 1 root root 2217563 Nov 11 10:24 fpm-world-mix.mp3 > -rw-r--r-- 1 asterisk asterisk 884864 Oct 29 12:39 QuajiroPromo.mp3 > -rw-r--r-- 1 asterisk asterisk 835712 Oct 29 12:39 > TristeAlegriaPromo.mp3 > > > > Thanks > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.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/20051203/b7952aa9/attachment.htm