[Asterisk-Users] MusicOnHold not working

Gurminder Arora gurmi.linux at gmail.com
Fri Sep 16 02:03:53 MST 2005


Hi,

I am using asterisk 1.0.9 on FC3 box. mpg123 is not working it starts
and stops immediately..

printing -
 -- Started music on hold, class 'default', on channel 'Zap/1-1'
  -- Stopped music on hold on Zap/1-1
Unknown option: --mono

There is no such option defined in my musiconhold.conf file

After searching through code:
     I got --mono option defined in function 
spawn_mp3(struct mohclass *class)
in file "res_musiconhold.c" 

After commenting that line message stopped but mpg123  still didn't
responded nd I am trying to find.

I am wondering if mpg123 doesnot support --mono option 
They why it is forced in asterisk Code? 

Thanks 
Gurminder


On 9/15/05, Alex Kobalto <kobalto at gmail.com> wrote:
> I have the same "problem" with several softphones (Xlite), but there's one,
> Firefly I think, that worked. I found it strange, but not a real problem for
> me. I have the same asterisk server version, wich came with the last
> asterisk at home distribution.
> 
> 
> On 9/15/05, Sherwood McGowan <madprofzero at yahoo.com> wrote: 
> > 
> > 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 at lists.digium.com
> > ->[mailto: asterisk-users-bounces at lists.digium.com] On
> Behalf Of
> > ->Gurminder Arora
> > ->Sent: Thursday, September 15, 2005 8:30 AM
> > ->To: asterisk-users at 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 at 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
> > ->
> > 
> > 
> > _______________________________________________ 
> > --Bandwidth and Colocation sponsored by Easynews.com --
> > 
> > Asterisk-Users mailing list
> > Asterisk-Users at 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
> > 
> 
>  
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at 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
> 
>



More information about the asterisk-users mailing list