phpivr configuration example
To achieve this simple task, we need:
- sound file with greeting - welcome.gsm
- a sound file with describing the available menu (it can be combined with a greeting) - main-menu.gsm
- a sound file with a request to hear the menu again and make your choice - please-make-your-choice.gsm
Put the recorded files into the folder /var/lib/asterisk/sounds/ivr and set them corresponding rights
in phpivr.conf write
{
"common" : {
"name" : "Main menu of my company IVR"
,"options" : "say=ivr/welcome|say=ivr/main-menu,prompt,loop=1|transfer=1000"
,"inputs" : {
"0" : "transfer=1000"
,"1" : "transfer=1001"
,"2" : "transfer=1002"
}
,"invalidinput_act" : "say=ivr/please-make-your-choice|menu=common"
}
}
"common" : {
"name" : "Main menu of my company IVR"
,"options" : "say=ivr/welcome|say=ivr/main-menu,prompt,loop=1|transfer=1000"
,"inputs" : {
"0" : "transfer=1000"
,"1" : "transfer=1001"
,"2" : "transfer=1002"
}
,"invalidinput_act" : "say=ivr/please-make-your-choice|menu=common"
}
}
From here it should be noted that while playing a welcome message, pressing any key will cause it to completion, and immediately will playing main-menu. Also you can omit the option loop=1 because the count of playback by default is 1, but It written by me for a better understanding of the written material.
That's all the settings. Enjoy.
See Also
Page visited: 7720 times
Created by: grygoriim, Last modification: Thu 30 of Dec, 2010 (10:39 UTC)
Featured -
Search:
Loading

Page Changes















