[Asterisk-Users] IVR sample config?

Joe Dennick joe at dennick.net
Sat Dec 20 09:34:23 MST 2003


Rich,
This is in response to your question about and IVR Menu.  Below is the
dial-plan from the * at SAI.  If you dial 1-800-747-9111 and the
Extension 2998, you'll be able to hear this one in action.  

The key to creating it is to use Extension 205 (defined below) to record
your menu prompts.  This will put the sound file in
/tmp/asterisk-recording.gsm.  You'll have to move that file each time
its created to /var/lib/asterisk/sounds and rename it to something
pertinent to your design so it can be called from the dial-plan.  Notice
the line under [mainmenu] "exten => s,5,Background(sai-welcome)".  The
sai-welcome is one of those .gsm sound files.  The rest of the dial-plan
just defines what happens when each option is pushed.  

Hope this helps.

Joe

****************** extensions.conf ***************
[mainmenu]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,DigitTimeout,5
exten => s,4,ResponseTimeout,10
exten => s,5,Background(sai-welcome)
exten => s,6,Background(sai-choose)

; Tech Support
exten => 1,1,AGI(dima-test.agi)
exten => 1,2,SetGlobalVar(ACCOUNTCODE=${callerid})
exten => 1,3,SetVar(testcallerid=${callerid})
exten => 1,4,Background(sai-reptech-welcome)
exten => 1,5,Queue(rep-tech)

; Leave Voicemail
exten => 2,1,VoicemailMain()
exten => 2,2,Hangup

; Echo Test
exten => 3,1,Playback(demo-echotest)
exten => 3,2,Echo
exten => 3,3,Playback(demo-echodone)
exten => 3,4,Goto(mainmenu,s,6)

; EAGI Test
exten => 4,1,Answer()
exten => 4,2,Wait(1)
exten => 4,3,AGI(sai-repid.agi)
exten => 4,4,Wait(1)
exten => 4,5,Hangup

; Play Music-on-Hold
exten => 5,1,MusicOnHold(default)
exten => 5,2,Goto(mainmenu,s,6)
exten => #,1,Playback(sai-thanks)
exten => #,2,Hangup

exten => t,1,Goto(#,1)         ; If they take too long, give up
exten => i,1,Playback(invalid) ; "That's not valid, try again"

[default]
include => mainmenu
include => local
include => longdistance
include => joe-iax
include => npi-iax

exten => 205,1,Wait(2) ; Call 205 to Record new Sound Files
exten => 205,2,Record(/tmp/asterisk-recording:gsm)
exten => 205,3,Wait(2)
exten => 205,4,Playback(/tmp/asterisk-recording)
exten => 205,5,wait(2)
exten => 205,6,Hangup

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Rich Adamson
Sent: Saturday, December 20, 2003 8:37 AM
To: Asterisk-a-users-list
Subject: [Asterisk-Users] IVR sample config?



Can someone point me to some reasonable example / starting point to
implement a basic IVR menu? Looking for something rather simple like the
press 1 for sales, 2 for tech support, and probably an option to list
the voicemail directory kind of thing. Nothing elaborate needed, just
basic menu.

(Yes, I did look at the wiki and google searched for "ivr menu".)



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
 




More information about the asterisk-users mailing list