マルチレベル IVR の例を作成したいと考えています。従業員 ID の入力を求められるウェルカム メニューを考えてみましょう。その後、2 番目のメニューがあり、前のメニューに戻るオプションがあります。それを行う方法はありますか?
マルチレベル 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]
....
employeeid が 1 ~ 8 で、9 が前のメニューに戻るためのものであるとします。1 ~ 8 を入力すると、オーディオ ファイルを再生して終了します。