The "simplest" way to do it would be to use sox to remix your moh file
with
the message like this:
Let's say you're using the standard file macroform-cold_day.wav. First
you
split it into two minute segments like so
Sox macroform-cold_day.wav seg1.wav trim 0.0 120.0
Sox macroform-cold_day.wav seg2.wav trim 0.0 120.0
Sox macroform-cold_day.wav seg3.wav trim 0.0 120.0
Now put it back together with your message inserted like this:
Sox seg1.wav yourmessage.wav seg2.wav yourmessage.wav seg3.wav
yourmessage.wav macroform-cold_day.wav
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Adam Moffett
Sent: Monday, January 21, 2013 4:07 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] MoH with message on intervals
I'm talking to somebody who wants to have a recorded message play
periodically for people on hold.
An example would be interrupting the hold music every two minutes to play a
message with business hours and current specials.
Seems like you could fake it by breaking the music files into two minute
chunks with alphabetical file names, and using sort=alpha. It seems like
there might also be possible ways to do in the dialplan with
'Set(CHANNEL(musicclass)=' or a combination of StartMusicOnHold() and
StopMusicOnHold().
Can anybody point me in the right direction?
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users