My first post here - So Hi All
I must say that Asterisk is a brilliant product but I’m having a hell of a time getting MOH to work.
Out of the box, the WAV’s will not play so I tried MP3’s
I’ve installed mpg123 and from what I can see EVERYTHING is good but I do not get any sound on the phone.
CLI Log reads:
- Called 1001
-- SIP/1001-09c37138 is ringing
-- SIP/1001-09c37138 answered SIP/1002-09c41880
-- Native bridging SIP/1002-09c41880 and SIP/1001-09c37138
-- Started music on hold, class 'default', on channel 'SIP/1001-09c37138'
MANUALLY HANG UP HERE
-- Stopped music on hold on SIP/1001-09c37138
== Spawn extension (default, 1001, 1) exited non-zero on 'SIP/1002-09c41880'
So the above looks good.
I can play MP3’s and hear them with exten => 9001,2,MP3Player(/tmp/mymp3sample.mp3) so mpg123 is working.
I also see this in the process list:
15352 pts/0 Sl+ 0:00 asterisk -vvvvc
15361 pts/0 S+ 0:01 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 mymp3sample.mp3
15363 pts/0 S+ 0:00 mpg123 -q -s --mono -r 8000 -b 2048 -f 8192 mymp3sample.mp3
15387 pts/1 R+ 0:00 ps ax
So I guess that the MP3 is playing in the background and all looks good.
So why can’t I hear anything on the phone when either in “On Hold” mode or with exten => 9000,2,MusicOnHold(20)
I’ve been Googling for the last 2 days and I know quite a lot about MOH but I simply cannot get this to work.
Oh and my version of Asterisk is latest: 126.96.36.199 (from source) and the server does NOT have a sound card.
Anybody have any ideas on what I can try next?