So I setup my musiconhold.conf to use a shoutcast internet radio. Here’s the musiconhold.conf:
[code][general]
; Shoutcast Streaming
[default]
mode=custom
directory=/usr/local/asterisk/var/lib/asterisk/mohmp3-empty/stream
application=/usr/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://u12b.di.fm:80/di_vocaltrance
random=yes[/code]
In my extensions.conf I have:
[code][default]
exten => 100,1,Dial(SIP/100,20)
exten => 100,2,VoiceMail(100,u)
exten => 101,1,Dial(SIP/101,20)
exten => 101,2,VoiceMail(101,u)
exten => 199,1,VoiceMailMain(${CALLERID(num)},s)
exten => 102,1,Answer
exten => 102,2,Playback(pls-hold-while-try)
exten => 102,3,SetMusiconHold(default)
exten => 102,4,WaitmusiconHold(60)
exten => 102,4,Hangup[/code]
It works when I call 102, it will play the music perfectly. What I want, is when I’m on the phone with someone, and I press “Hold”, instead of being silence, to play the shoutcast MOH. What do I need to do?