[Asterisk-Users] MusicOnHold not working
Jason Lixfeld
jason+lists.asterisk at lixfeld.ca
Sat Dec 17 13:18:09 MST 2005
Running Asterisk 1.2.1 on Suse 10.0 X86-64.
Tried to get mpg123 0.59r which came with the 1.2.1 dist running on
this box, but all I get is poop:
as -o decode_i586.o decode_i586.s
decode_i586.s: Assembler messages:
decode_i586.s:44: Error: suffix or operands invalid for `push'
decode_i586.s:45: Error: suffix or operands invalid for `push'
decode_i586.s:46: Error: suffix or operands invalid for `push'
decode_i586.s:47: Error: suffix or operands invalid for `push'
decode_i586.s:67: Error: suffix or operands invalid for `push'
decode_i586.s:70: Error: suffix or operands invalid for `push'
decode_i586.s:81: Error: suffix or operands invalid for `push'
decode_i586.s:83: Error: suffix or operands invalid for `push'
decode_i586.s:86: Error: suffix or operands invalid for `push'
decode_i586.s:161: Error: suffix or operands invalid for `pop'
decode_i586.s:211: Error: suffix or operands invalid for `pop'
decode_i586.s:296: Error: suffix or operands invalid for `pop'
decode_i586.s:315: Error: suffix or operands invalid for `pop'
decode_i586.s:316: Error: suffix or operands invalid for `pop'
decode_i586.s:317: Error: suffix or operands invalid for `pop'
decode_i586.s:318: Error: suffix or operands invalid for `pop'
make[3]: *** [decode_i586.o] Error 1
make[3]: Leaving directory `/usr/src/asterisk-1.2.1/mpg123-0.59r'
make[2]: *** [mpg123-make] Error 2
make[2]: Leaving directory `/usr/src/asterisk-1.2.1/mpg123-0.59r'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/usr/src/asterisk-1.2.1/mpg123-0.59r'
make: *** [mpg123] Error 2
None of my research revealed any answers so I started looking at
mpg123 alternatives. At the top of "http://www.voip-info.org/tiki-
pagehistory.php?page=Asterisk+mpg123+faking+it&diff2=3" there is a
note that says how 1.2 has solved the MPG123 issue. What does that
mean exactly? What has 1.2 solved WRT mpg123, and how has it solved
it? I couldn't find the answer so I kept digging and came across a
reference for format_mp3. I compiled and installed format_mp3 from
1.2.1-addons and modified my musiconhold.conf as per the link, and
ensured the module was loaded by asterisk:
[default]
mode=files
directory=/var/lib/asterisk/moh-native
random=yes
asterisk*CLI> show modules like format_mp3
Module
Description Use Count
format_mp3.so MP3 format [Any rate but 8000hz mono
opt 0
1 modules loaded
asterisk*CLI>
I copied the default musiconhold mp3 files from mohmp3 to moh-native
so I had something to play. When I call in, dial up the MoH test
extension, I see musiconhold being called, but it's stopped
immediately after it's started. Logs show nothing so I'm kinda lost.
asterisk*CLI>
-- Executing Answer("SIP/7501-4dd0", "") in new stack
-- Executing MusicOnHold("SIP/7501-4dd0", "") in new stack
-- Started music on hold, class 'default', on channel 'SIP/
7501-4dd0'
-- Stopped music on hold on SIP/7501-4dd0
asterisk*CLI>
Anyone have any ideas?
More information about the asterisk-users
mailing list