I’m having problems with Music on Hold for incoming calls.
Basically music on hold is working.
If I am on a call with someone and I put them on hold, they hear hold music. I have tested this both on the local network and from the PSTN.
I have also created an extension that puts the call on hold automatically ( ie: exten => MusicOnHold() ) and if I dial this extension from the local network this also works fine
However if an incoming SIP call arrives from the PSTN and I direct it to use music on hold ( ie: exten => MusicOnHold() ) it will put the call on hold but they will hear no music.
The call is definitely on hold and I see no error messages in /var/log/asterisk /messages.
My extensions.conf is setup like this:
exten => s,1,Answer()
exten => s,2,MusicOnHold()
exten => s,3,Hangup()
I have tried using both mp3 and the line in port of my sound card for hold music. Neither work
And I should note that sound is working both ways for normal calls. It is only musiconhold which is not transmitting sound over the PSTN