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
 
On 03/02/06, Matt Riddell (IT) <[EMAIL PROTECTED]> 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 --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to