2
0

demo_ivr.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <include>
  2. <!-- demo IVR setup -->
  3. <!-- demo IVR, Main Menu -->
  4. <menu name="demo_ivr"
  5. greet-long="phrase:demo_ivr_main_menu"
  6. greet-short="phrase:demo_ivr_main_menu_short"
  7. invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
  8. exit-sound="voicemail/vm-goodbye.wav"
  9. confirm-macro=""
  10. confirm-key=""
  11. tts-engine="flite"
  12. tts-voice="rms"
  13. confirm-attempts="3"
  14. timeout="10000"
  15. inter-digit-timeout="2000"
  16. max-failures="3"
  17. max-timeouts="3"
  18. digit-len="4">
  19. <!-- The following are the definitions for the digits the user dials -->
  20. <!-- Digit 1 transfer caller to the public FreeSWITCH conference -->
  21. <entry action="menu-exec-app" digits="1" param="bridge sofia/$${domain}/888@conference.freeswitch.org"/>
  22. <entry action="menu-exec-app" digits="2" param="transfer 9196 XML default"/> <!-- FS echo -->
  23. <entry action="menu-exec-app" digits="3" param="transfer 9664 XML default"/> <!-- MOH -->
  24. <entry action="menu-exec-app" digits="4" param="transfer 9191 XML default"/> <!-- ClueCon -->
  25. <entry action="menu-exec-app" digits="5" param="transfer 1234*256 enum"/> <!-- Screaming monkeys -->
  26. <entry action="menu-sub" digits="6" param="demo_ivr_submenu"/> <!-- demo sub menu -->
  27. <!-- Using a regex in the digits tag lets you define a dial pattern for the caller
  28. You may define multiple regexes if you need a different pattern for some reason -->
  29. <entry action="menu-exec-app" digits="/^(10[01][0-9])$/" param="transfer $1 XML features"/>
  30. <entry action="menu-top" digits="9"/> <!-- Repeat this menu -->
  31. </menu>
  32. <!-- Demo IVR, Sub Menu -->
  33. <menu name="demo_ivr_submenu"
  34. greet-long="phrase:demo_ivr_sub_menu"
  35. greet-short="phrase:demo_ivr_sub_menu_short"
  36. invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
  37. exit-sound="voicemail/vm-goodbye.wav"
  38. timeout="15000"
  39. max-failures="3"
  40. max-timeouts="3">
  41. <!-- The demo IVR sub menu prompt basically just says, "press star to return to previous menu..." -->
  42. <entry action="menu-top" digits="*"/>
  43. </menu>
  44. <!-- TTS sample; non-functional but it demonstrates say: and TTS -->
  45. <!--
  46. <menu name="demo3"
  47. greet-long="say:Press 1 to join the conference, Press 2 to join the other conference"
  48. greet-short="say:Press 1 to join the conference, Press 2 to join the other conference"
  49. invalid-sound="say:invalid extension"
  50. exit-sound="say:exit sound"
  51. timeout ="15000"
  52. max-failures="3">
  53. <entry action="menu-exit" digits="*"/>
  54. <entry action="menu-play-sound" digits="1" param="say:You pressed 1"/>
  55. <entry action="menu-exec-app" digits="2" param="transfert 1000 XML default"/>
  56. <entry action="menu-exec-app" digits="3" param="transfert 1001 XML default"/>
  57. </menu>
  58. -->
  59. </include>