Tts_engine, - ?string: the TTS engine to use for this menu Transfer_sound, - ?string: the sound to play on transferĬonfirm_macro, - ?string: phrase macro name to confirm inputĬonfirm_key, - ?string: the key used to confirm a digit entry Invalid_sound, - ?string: the sound to play when an invalid entry/no entry is madeĮxit_sound, - ?string: played when the menu is terminated Short_greeting_sound, - ?string: the short version of the menu prompt played on subsequent loops Greeting_sound, - ?string: the menu prompt played the first time the menu is played Main, - ?IVRMenu: the top level menu or nil if this is the top level one If the user enters nothing (or something other than a digit, like the * key) error.wav is played, and the process is repeated another two times. This example causes FreeSWITCH to play prompt.wav and listen for between 2 and 5 digits, ending with the # key. If you do not answer the call you, the audio will still play, but no digits will be collected. The session has to be answered before any digits can be processed.If the user forgets to press one of the terminators, but has made a correct entry, the digits are returned after the next timeout.When the maximum number of allowable digits is reached, the function returns immediately, even if a terminator was not entered.This function returns an empty string when all timeouts and retry counts are exhausted.(Optional) In the event of a failure, this function will transfer the session to an extension in the dialplan. If not specified, digit_timeout is set to timeout. When provided, resets the timeout clock after each digit is entered, thus giving users with limited mobility the ability to slowly enter digits without causing a timeout. (Optional) The inter-digit timeout (in milliseconds). (Optional) The channel variable used to store the received digits. The regular expression used to validate received digits. Specify an empty string if this feature is not used. Received digits are discarded while this file plays. ![]() The audio file to play when a digit not matching the digit_regex is received. This file is replayed after each timeout, up to max_attempts. Playback stops if digits arrive while playing. The time (in milliseconds) to wait for a digit.Ī string containing a list of digits that cause this function to terminate. The number of times this function waits for digits and replays the prompt_audio_file when digits do not arrive. ![]() Session:execSome API aren't documented, so please feel free to improve the documentation and complete the API examples. This page provides the documentation of the Lua FreeSWITCH API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |