ivr.conf.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <configuration name="ivr.conf" description="IVR menus">
  2. <menus>
  3. <!-- demo IVR setup -->
  4. <!-- demo IVR, Main Menu -->
  5. <menu name="demo_ivr"
  6. greet-long="phrase:demo_ivr_main_menu"
  7. greet-short="phrase:demo_ivr_main_menu_short"
  8. invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
  9. exit-sound="voicemail/vm-goodbye.wav"
  10. timeout ="10000"
  11. inter-digit-timeout="2000"
  12. max-failures="3"
  13. max-timeouts="3"
  14. digit-len="4">
  15. <entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/888@conference.freeswitch.org"/>
  16. <entry action="menu-exec-app" digits="2" param="transfer 9996 XML default"/> <!-- FS echo -->
  17. <entry action="menu-exec-app" digits="3" param="transfer 9999 XML default"/> <!-- MOH -->
  18. <entry action="menu-sub" digits="4" param="demo_ivr_submenu"/> <!-- demo sub menu -->
  19. <entry action="menu-exec-app" digits="5" param="transfer 1234*256 enum"/> <!-- Screaming monkeys -->
  20. <entry action="menu-exec-app" digits="/^(10[01][0-9])$/" param="transfer $1 XML features"/>
  21. <entry action="menu-top" digits="9"/> <!-- Repeat this menu -->
  22. </menu>
  23. <!-- Demo IVR, Sub Menu -->
  24. <menu name="demo_ivr_submenu"
  25. greet-long="phrase:demo_ivr_sub_menu"
  26. greet-short="phrase:demo_ivr_sub_menu_short"
  27. invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
  28. exit-sound="voicemail/vm-goodbye.wav"
  29. timeout="15000"
  30. max-failures="3"
  31. max-timeouts="3">
  32. <entry action="menu-top" digits="*"/>
  33. </menu>
  34. </menus>
  35. </configuration>
  36. <!-- TTS sample; non-functional but it demonstrates say: and TTS -->
  37. <!--
  38. <menu name="demo3"
  39. greet-long="say:Press 1 to join the conference, Press 2 to join the other conference"
  40. greet-short="say:Press 1 to join the conference, Press 2 to join the other conference"
  41. invalid-sound="say:invalid extension"
  42. exit-sound="say:exit sound"
  43. timeout ="15000"
  44. max-failures="3">
  45. <entry action="menu-exit" digits="*"/>
  46. <entry action="menu-playback" digits="1" param="say:You pressed 1"/>
  47. <entry action="menu-call-transfer" digits="2" param=
  48. "1000"/>
  49. <entry action="menu-call-transfer" digits="3" param="1001"/>
  50. </menu>
  51. -->