_____ From: [email protected] [mailto:[email protected]] 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
-- _____________________________________________________________________ -- 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
