Hi On my FC3 box with asterisk 1.0.9....MusicOnHold is not working. It starts and stops immediately... An unknow option mono comes...from where it is originating.?? As there is nothing written in .conf file. Console output is below: I am using mpg123 version 0.59r. Although I am able to play music with mpg123 but why it is on No-cooperation movement against asterisk ? Need help..any ideas any direction... Thanks Gurminder Console output ***************************Snip*********************************** -- Executing MusicOnHold("Zap/1-1", "default") in new stack -- Started music on hold, class 'default', on channel 'Zap/1-1' -- Stopped music on hold on Zap/1-1 Unknown option: --mono ******************************************************************* My musiconhold.conf is *******************************Snip************************ [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 application=/usr/local/bin/mpg123 ************************Snip**********************
It's because mpg123 is being passed an option --mono. Looks to me (a cursory guess) that your asterisk installation is trying to force mono sound, and mpg123 doesn't like it. ->-----Original Message----- ->From: asterisk-users-bounces@lists.digium.com ->[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of ->Gurminder Arora ->Sent: Thursday, September 15, 2005 8:30 AM ->To: asterisk-users@lists.digium.com ->Subject: [Asterisk-Users] MusicOnHold not working -> ->Hi -> On my FC3 box with asterisk 1.0.9....MusicOnHold is not working. ->It starts and stops immediately... ->An unknow option mono comes...from where it is originating.?? ->As there is nothing written in .conf file. ->Console output is below: -> -> ->I am using mpg123 version 0.59r. ->Although I am able to play music with mpg123 but why it is on ->No-cooperation movement against asterisk ? -> ->Need help..any ideas any direction... -> ->Thanks ->Gurminder -> -> ->Console output ->***************************Snip*********************************** ->-- Executing MusicOnHold("Zap/1-1", "default") in new stack -> -- Started music on hold, class 'default', on channel 'Zap/1-1' -> -- Stopped music on hold on Zap/1-1 ->Unknown option: --mono ->******************************************************************* -> -> -> ->My musiconhold.conf is ->*******************************Snip************************ ->[default] ->mode=mp3 ->directory=/var/lib/asterisk/mohmp3 ->application=/usr/local/bin/mpg123 ->************************Snip********************** ->_______________________________________________ ->--Bandwidth and Colocation sponsored by Easynews.com -- -> ->Asterisk-Users mailing list ->Asterisk-Users@lists.digium.com ->http://lists.digium.com/mailman/listinfo/asterisk-users ->To UNSUBSCRIBE or update options visit: -> http://lists.digium.com/mailman/listinfo/asterisk-users ->
Hi, Thanks all for help... I was perhaps using old version of mpg123 and with beta1 and mpg123-0.59r it working smoothly. Gurminder On 9/15/05, Gurminder Arora <gurmi.linux@gmail.com> wrote:> Hi > On my FC3 box with asterisk 1.0.9....MusicOnHold is not working. > It starts and stops immediately... > An unknow option mono comes...from where it is originating.?? > As there is nothing written in .conf file. > Console output is below: > > > I am using mpg123 version 0.59r. > Although I am able to play music with mpg123 but why it is on > No-cooperation movement against asterisk ? > > Need help..any ideas any direction... > > Thanks > Gurminder > > > Console output > ***************************Snip*********************************** > -- Executing MusicOnHold("Zap/1-1", "default") in new stack > -- Started music on hold, class 'default', on channel 'Zap/1-1' > -- Stopped music on hold on Zap/1-1 > Unknown option: --mono > ******************************************************************* > > > > My musiconhold.conf is > *******************************Snip************************ > [default] > mode=mp3 > directory=/var/lib/asterisk/mohmp3 > application=/usr/local/bin/mpg123 > ************************Snip********************** >
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?