[Asterisk-Users] Music on hold

asterisk at bortal.de asterisk at bortal.de
Mon Sep 20 13:50:00 MST 2004


Hello List!

I followed the instruction from
http://www.voip-info.org/wiki-Asterisk+config+musiconhold.conf to get my
music working when i put someone on hold.

/etc/asterisk/musiconhold.conf
---
[classes]
default => mp3:/var/lib/asterisk/mohmp3



/etc/asterisk/zapata.conf
---
~# grep -v "^;" /etc/asterisk/zapata.conf

[trunkgroups]

[channels]
musiconhold=default
context=default
switchtype=national
signalling=fxo_ls
rxwink=300              ; Atlas seems to use long (250ms) winks

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1

immediate=no



ps ax:
---
892 pts/1    Sl+    0:03 /usr/sbin/asterisk -vvvgcd
899 pts/1    S+     0:01 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192
fpm-calm-river.mp3 fpm-sunshine.mp3 fpm-world-mix.mp3


asterisk output:
---
Urgent handler
    -- Started music on hold, class 'default', on CAPI[contr1/xxxx]/5
Urgent handler


So you can see that its playing the files.
But when i put someone on hold, he cant hear it at all.

Any idea?
Thx! Mario








More information about the asterisk-users mailing list