[asterisk-users] MOH stop and resume when i hold

Johny Mail list maillist.johny at gmail.com
Fri Jul 13 12:14:42 CDT 2007


2007/7/13, Noah Miller <noahisaacmiller at gmail.com>:
> > > > I have a strange comportment of the MOH system on my asterisk.
> > > > When i respond to a call and after fews second i set this call in hold
> > > > mode the correspondent listen the music fine.
> > > > When i re-take my correspondent at T0 instant the music is paused. And
> > > > when i re-hold him at T60 (60 second later) the sound is always at T0
> > > > when he was stopped at T0. So the music is stopped and don't continue
> > > > (normal comportment) when i speak with peoples.
> > > > Someone know the problem? a solution?
> > >
> > > What you're describing is the asterisk native "files" method for MOH.
> > > This behavior is the way it was designed.  If you want continuous MOH,
> > > I'd suggest using a third-party player like madplay or mpg123.  You
> > > can read more here:
> > >
> > > http://www.voip-info.org/wiki/index.php?page=Asterisk%20config%20musiconhold.conf
> > >
> > > (Hint: Scroll down to the section labeled "Pre-Asterisk 1.2 Information Below")
>
> If you are really using mpg123 or madplay, it should not work that
> way.  Can you post your musiconhold.conf file?
>
>
> - Noah
>

Yes i know. Some weeks ago it was functioning perfectly but since some
days it was wrong.

My moh.conf (for mpg123):
[default]
mode=quietmp3
directory=/usr/share/asterisk/mohmp3
random=yes

And if i want use the integrated mp3 support of asterisk :
[default]
mode=files
directory=/usr/share/asterisk/mohmp3
random=yes


For me it's more a usage of the mpg123 that asterisk pause or a timer
problem. Because my configuration functioned before. I don't know if
this is a kernel update (i use the default kernel of debian and
disable acpi for the zdummy driver) could do this kind of problem.

So when i hang-up again a call and recall my extension with
musiconhold it restart at the moment when it was stopped with mpg123 /
madplay and at the beginning of a random sound with native mp3.



More information about the asterisk-users mailing list