[Asterisk-Users] RE: Rewind MusicOnHold?

Dan Journo danjourno at gmail.com
Mon Feb 27 10:50:57 MST 2006


As a follow on from my last email, it appears that Asterisk restarts the
player application if the process terminates.

Does anyone know a way to stop that?

Thanks
Dan

On 27/02/06, Dan Journo <danjourno at gmail.com> wrote:
>
> Hi guys,
>
> Matt gave the advice below for a way to cause MoH to rewind and play from
> the beginning for each call that comes in.
> However the music doesn't restart.
>
> Here was my first attempt:-
>
> mode=custom
> directory=/var/lib/asterisk/mohmp3
> application=/usr/local/bin/madplay -Q -o raw:- --mono -R 8000 -a -12
>
> So i added Time and Repeat to the command line, but that still didnt work:
>
>  mode=custom
> directory=/var/lib/asterisk/mohmp3
> application=/usr/local/bin/madplay -Q -o raw:- --mono -R 8000 -a
> -12 --time=00:00:60.000 --repeat=1
>
> Does anyone have any ideas on how I should be doing this?
>
> Thanks
> Dan Journo
> www.TextOver.com <http://www.textover.com/>
>
>  On 03/02/06, Matt Riddell (IT) <matt.riddell at sineapps.com> wrote:
> >
> > Dan Journo wrote:
> > > Ok, i feel like im getting somewhere but i need a little help.
> > >
> > > Asterisk displays this when its loading:-
> > > [res_musiconhold.so] => (Music On Hold Resource)
> > >   == Registered application 'MusicOnHold'
> > >   == Registered application 'WaitMusicOnHold'
> > >   == Registered application 'SetMusicOnHold'
> > >   == Registered application 'StartMusicOnHold'
> > >   == Registered application 'StopMusicOnHold'
> > >   == Parsing '/etc/asterisk/musiconhold.conf': Found
> >
> > Use a custom musiconhold class playing ulaw files or whatever - they
> > will start from the beginning each time.
> >
> > --
> > Cheers,
> >
> > Matt Riddell
> > _______________________________________________
> >
> > http://www.sineapps.com/news.php (Daily Asterisk News - html)
> > http://freevoip.gedameurope.com (Free Asterisk Voip Community)
> > http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com<http://easynews.com/>--
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060227/da074c65/attachment.htm


More information about the asterisk-users mailing list