I’m running the 1.2 beta 1, now, but I’ll give you my exact setup from that. Note that if you are running 1.0.x, the settings are fairly different, and I’ve included my old 1.0.9 settings, as well.
I’m using madplay as installed from FreeBSD ports: madplay-esound-0.15.0b_2
Yes, I’m running FreeBSD 5.4-STABLE.
Here’s musiconhold.conf 1.2:
[default]
mode=custom
directory=/home/mp3/eighties
application=/usr/local/bin/madplay --mono -Q -a -12 -R 8000 --output=raw:-
random=yes
Here’s musiconhold.conf 1.0.9:
[classes]
default => custom:/home/mp3/eighties/,/usr/local/bin/madplay --mono -Q -a -12 -R 8000 --output=raw:-
in zapata.conf:
[code][channels]
; Zap 1 - xxx xxxx
; Zap 2 - xxx xxxx
; Zap 3 - xxx xxxx
; Zap 4 - xxx xxxx
; Zap 5 - unused
; Zap 6 - unused
; Zap 7 - unused
; Zap 8 - xxx xxxx
language=en
signalling=fxs_ks
context=from_pstn
group=1
musiconhold=default
echocancel=yes
echotraining=yes
channel => 1,3,4
language=en
signalling=fxs_ks
context=from_pstn
musiconhold=default
echocancel=yes
echotraining=yes
channel => 2
language=en
signalling=fxs_ks
context=DSLLine
group=2
musiconhold=default
echocancel=yes
echotraining=yes
channel => 8
[/code]
Output of file * in /home/mp3/eighties
0x26120914.1.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.10.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.11.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.12.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.13.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.14.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.15.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.16.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.17.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.18.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.19.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.2.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.20.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.3.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.4.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.5.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.6.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.7.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.8.mp3: MP3 file with ID3 version 2.3.0 tag
0x26120914.9.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.1.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.2.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.3.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.4.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.5.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.6.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.7.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.8.mp3: MP3 file with ID3 version 2.3.0 tag
0x6f08e609.9.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.1.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.10.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.11.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.12.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.2.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.3.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.4.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.5.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.6.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.7.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.8.mp3: MP3 file with ID3 version 2.3.0 tag
0x9f0b960c.9.mp3: MP3 file with ID3 version 2.3.0 tag
The MP3’s I ripped from CDs using dd and tagged them using id3tag; they are in a Samba share which people in the office also play on their desktops. I say this only because some directions on the Wiki point out that you need to strip id3 tags in some instances. That is not the case in my setup.
Last thing is to set up an extension to test with. I use 8002. Snippit from my extensions.conf:
[miscellaneous]
exten => 8002,1,MusicOnHold(default)
I can see the madplay process: output from ps ax | grep mad
gemini:/home/asterisk/etc/asterisk/$ ps ax | grep mad
23785 p0 S+ 0:00.00 grep mad
18385 p2 S+ 0:19.85 [madplay]
gemini:/home/asterisk/etc/asterisk/$