[asterisk-users] MoH with message on intervals

Satish Barot satish4asterisk at gmail.com
Mon Jan 21 22:54:46 CST 2013


On Tue, Jan 22, 2013 at 4:53 AM, Jared Baxley <jared.baxley at gmail.com>wrote:

> Or you could just do a Breakout IVR if they are in a queue ... easy to
> manage and update.
>
>
> On Mon, Jan 21, 2013 at 4:43 PM, Danny Nicholas <danny at debsinc.com> wrote:
>
>> 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?
>>
>> Create a script to check for channels on Musiconhold and Originate calls
> through AMI or Callfile at desired interval. Use first leg of a call to
> Chanspy with Bargein mode on your channel and second leg of a call to
> Playback a message.


--Satish Barot
Ahmedabad,India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130122/cdb1f45c/attachment.htm>


More information about the asterisk-users mailing list