[asterisk-users] background music during call

Danny Nicholas danny at debsinc.com
Thu Mar 10 16:49:45 CST 2011


  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Albert
Sent: Thursday, March 10, 2011 4:42 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] background music during call

 

Hi all,

I am looking for application or solution how i can play a sound during call.

The whole idea is to make a fun type of service, where user can call number,
than from ivr menu choose background music, f.e. traffic jam sounds, crying
baby, .... and call friend to make him a prank :)

Does any one of you know such function or solution how to implement this ?


Thanks and regads,
Robert



This is a reasonably simple task.  Set up directories in your
/var/lib/asterisk/moh to hold the sound files for your "MOH".  In your IVR
dialplan set up something like this:

[select-sound]

Exten => s,1,playback(menu)

Exten => s,n,waitexten(5)

Exten => 1,1,goto(play1,s,1)

Exten => 2,1,goto(play2,s,1)

[play1]

Exten => s,1,SetMusicOnHold(one)

Exten => s,n,WaitMusicOnHold(20)

Exten => s,n,playback(vm-goodbye)

Exten => s,n,hangup

[play2]

Exten => s,1,SetMusicOnHold(two)

Exten => s,n,WaitMusicOnHold(20)

Exten => s,n,playback(vm-goodbye)

Exten => s,n,hangup

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110310/e448fe55/attachment.htm>


More information about the asterisk-users mailing list