I want to create an example for a multi-level IVR. Let's say a welcome menu, where you are asked to enter your employeeid. Then there is a second menu after that, and you have the option to go back to the previous menu. Any idea how to do that ?
Here's a pseudo-code example that doesn't work, because I don't know yet how to create a multi-level IVR.
[TestMenu]
exten => start,1,Answer()
same => n,Log(NOTICE, call starts)
same => n,Background(welcomeintro) // welcome menu
same => n,Background(welcomeoption) // options that your have
same => n,WaitExten(5)
exten => 0,1,Playback(digits/0) ; if enter 0, play back the welcome menu
same => n,Goto(TestMenu,start,1) // ??? is it ok ? and suppose that I want to skip to Background(welcomeoption) part directly ?
// if 1 is enterred, lets ask for employeeid
exten => 1,1,Playback(digits/1) ;
same => n,Playback(askemployeeid)
same => n,goto ????
exten => i,1,Playback(pbx-invalid) ; invalid
same => n,Goto(TestMenu,start,1)
exten => t,1,Playback(byebye) ; timeout
same => n,Hangup()
[employeeid]
....
Suppose that the employeeid is 1-8 and 9 is for going back to the previous menu. When 1-8 is entered, it will play a audio file and quit.