| | | | |
|---|
action | string | none | | Directly defines what needs to be done in this rule: 'transfer' – transfer the call to the number (s) from transfer_dst. The maximum possible number of forwarding numbers is 10. To simultaneously forward to a larger number of numbers, use the simple_transfer action; 'simple_transfer' - transfer the call (make a call forwarding) to the number (s) from the transfer_dst parameter. With this type of forwarding, the incoming call rules for the internal numbers listed in transfer_dst are not executed; 'hangup' - hang up the phone; 'play_sound' – play the greeting (sound and sound_type parameters); 'play_silence' – silence in background format (silence_time parameter); 'jump_to_context' – switch to another context (context and context_option parameters); 'play_digits' – play digits (the digits and play_digits_method parameters); 'play_digits_from_variable' – play the numbers contained in the variable (the play_digits_variable and play_digits_method parameters); 'record_digits' - write a set of digits to a variable (record_digits_variable, record_digits_max, and record_digits_sound parameters); 'set_variable' – set a variable in the channel (set_variable_name and set_variable_value parameters); 'transfer_from_variable' - transfer the call to the number contained in the variable (transfer_variable parameter); 'call_interactive' - Call Interactive function: make an HTTP request to a specific URL (call_interactive_url and call_interactive_method parameters); 'set_caller_id_number' - set the caller number for further redirects from the IVR (caller_id_number parameter); 'set_caller_id_name' - set the name of the caller for further forwarding from the IVR (caller_id_name parameter); 'quality_rate' - set a rule for evaluating the quality of the conversation (the main parameters for this action are sound and max_rate); 'voice_helper' - set the voice navigation rule (the main parameters for this action: sound, voice_helper_digits_max, voice_helper_rules, voice_helper_timeout). A description of the rule and parameters, as well as usage examples, are available on a separate page “Convert speech to text” 'start_record' – start recording the caller. Recording will stop when recording is enabled on any other extension. 'set_queue_priority' - sets the priority of the call for subsequent queuing.
|
digits | string | none | | Speak the specified numbers (using the play_digits_method method), required when action= 'play_digits' |
sound | long | none | 0 | The ID of the sound file to play is required when action= 'play_sound' |
sound_type | string | none | | Required if the sound ID is present. It can take the following values: |
play_digits_method | string | none | | Required when the digits option is set. May be: |
interval | long | none | 0 | The rule is executed only in this time interval |
caller_id_action | string | none | | Defines the method for analyzing the call source caller_id: 'matches' – must match (caller_id must be set); 'not_matches' – must not match (caller_id must be set); 'anonymous' - the source is hidden; 'any' – any source
|
caller_id | string | none | | The rule will only work for calls whose source is determined by this field. The field is filled in as a PCRE regular expression. For example: "^(\+|)7812" will match all sources starting with "+7812" or "7812" |
context_option | string | none | | Defines the context option to go to when action= 'jump_to_context' |
silence_time | long | none | 0 | The time (in milliseconds) when there are no sounds from the PBX, required when action= 'play_silence' |
context | long | none | 0 | Specifies the ID of the other context to jump to, required when action= 'jump_to_context' |
transfer_dst | string | none | | Forwards to the specified number. If you need to forward to several numbers at the same time (simultaneous call), then these numbers are listed separated by a space (required for action= 'transfer') |
set_variable_name | string | none | | The name of the variable to be set. It must start with a Latin letter, and may contain Latin letters, numbers, and underscores. Required for action='set_variable' |
set_variable_value | string | none | | The value of the variable to be set. Required for action='set_variable' |
match_variable_name | string | none | | The name of the IVR variable whose value will be compared with the value specified by the match_variable_value parameter. If the values match, the rule is executed. The variable being compared can be set by the system (see the section "Preset variables in IVR"), or set by a context option rule of the set_variable type |
match_variable_value | string | none | | The value that will be compared with the value of the variable whose name is set by the match_variable_name parameter. If the values match, the rule is executed. Required if the match_variable_name parameter is set |
transfer_variable | string | none | | The name of the variable whose value will be used as the forwarding number. If the variable is not set, the action is not performed. The variable can be set using the set_variable, record_digits action, or using the Call Interactive function. Required when action='transfer_from_variable' |
play_digits_variable | string | none | | The name of the variable whose value will be used for playing numbers. If the variable is not set, the action is not performed. The variable can be set using the set_variable, record_digits action, or using the Call Interactive function. Required when action='play_digits_from_variable' |
record_digits_variable | string | none | | The name of the variable in which the entered digits will be written. Required when action='record_digits' |
record_digits_max | string | none | | The maximum number of entered digits to be written to the variable. Required when action='record_digits' |
max_rate | long | none | 5 | Maximum conversation score (this parameter is only used for the quality_rate action) |
record_digits_sound | long | none | 0 | ID of the sound file that can be played before writing the entered digits to the variable |
call_interactive_url | string | none | | The URL to which the HTTP request will be made by the Call Interactive function. Must start with http:// or https://. Required for action= 'call_interactive' |
call_interactive_method | string | none | | The method that will be used for the HTTP request by the Call Interactive function. It can take the value 'GET' or 'POST'. Required for action= 'call_interactive' |
call_interactive_timeout | long | none | 0 | The time, in seconds, during which the system will wait for a response to the HTTP request of the Call Interactive function. If the called URL did not return a response after this time, the following rule is executed |
caller_id_number | string | none | | The number of the caller for further forwarding. This parameter can contain the names of variables previously set in other actions, as well as preset IVR variables (see the corresponding subsection). Variable names are specified in the format ${variable name}. Required when action='set_caller_id_number' |
caller_id_name | string | none | | The name of the caller for further forwarding. This parameter can contain the names of variables previously set in other actions, as well as preset IVR variables (see the corresponding subsection). Variable names are specified in the format ${variable name}. Required when action='set_caller_id_name' |
id | long | none | 0 | Unique ID of the rule (within the internal number) |
name | string | none | | The name of the rule, not necessarily unique |
final | boolean | none | |