[Asterisk-Users] Converted mp3 files to raw for musiconhold and still does not work...

Chuck Bunn chuck.bunn at networkdoc.com
Sat Dec 3 20:52:38 MST 2005


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 at 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



More information about the asterisk-users mailing list