Summary:ASTERISK-00543: [patch] enhanced music on hold
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2003-11-18 17:37:44.000-0600Date Closed:2011-06-07 14:05:27
Versions:Frequency of
Environment:Attachments:( 0) moh_udiff.txt
( 1) moh.tar.gz
( 2) stream_manager.pl
Description:patch to res_musiconhold.c to implement a new section
[custom_exec] where you can define a channel then specify
the exact command that provides the audio allowing
you to use any / mutipl player applications in moh


attached tar has example conf and patch and patched .c file
Comments:By: Brian West (bkw918) 2003-11-18 17:59:48.000-0600

Please generate unified diff files.  diff -u also diff res_musiconhold.c also.

Resubmit with the proper patches and I will test it.


By: Anthony Minessale (anthm) 2003-11-20 10:16:00.000-0600

added example perl app where you can make a streamer with chageable channels

you set $webdir to the dir of your choice in the script.
then in that dir the file 'mohurl' contains 1 url to play
you can edit that file and touch/create 'restartmoh' to tell the script
to launch the new url.  It's pretty simple to make a cgi around this
and instant web based channel changer.

you add it to musiconhold.conf like this


shoutcast => /path/to/stream_manager.pl

By: mlh (mlh) 2004-03-26 17:07:20.000-0600

We can revisit this idea, later, for now we need to fix bugs that impair *