So a server client wants steaming MOH.
Asterisk version: 1.8.15.0
What I’ve tried: Every single article of written material and published guides that have been released over the past 10 years related to this topic.
Results: “Started music on hold” with no sound
A control test with files sucessfully plays them.
Question 1: Is there a link to an actual functioning guide to enable streaming MOH, or out of luck?
Question 2: Should I bother updating to a LTS offical supported version of asterisk, or is this unrelated?
I’m going to give up soon and just suggest they use files… however it is annoying that guides should make the streaming claim when it doesn’t seem to hold water… I’d like top coerce this into behaving.
Im running Streaming MOH on multiple servers. It is pretty easy.
test with with your extensions.conf
[radio]
exten=>1701,1,Answer
same=>n,NoCDR()
same=>n,Set(CHANNEL(MUSICCLASS)=radio)
same=>n,MusicOnHold()
same=>n,Hangup
musiconhold.conf
[radio]
mode=custom
;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono radio2.domint.net:8022
;application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono radio3.domint.net:8062
application=/usr/bin/mpg123 -q -r 8000 -f 8192 -s --mono radio.domint.net:8096
sometimes there is no audio and is needed to restart the server
Hm, mpg123 didn’t seem to be installed by asterisk, nor included in the yum repo.
I did install it from RPM and it wound up in /usr/local/src, after which I included the path in musiconhold.conf as you mentioned and then rebooted with “halt -p”. It didn’t seem to have any affect or produce different cli messages. Just silence.