User Tools

Site Tools


asterisk_rules50

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
asterisk_rules50 [2019/02/13 10:53]
root
asterisk_rules50 [2020/06/22 13:14] (current)
zog
Line 1: Line 1:
-=====Rules=====+=====Dial plan.=====
  
-Behavior of the ICS CUBE telephony module ​is defined by ruleswhich process ​and route income ​and outcome ​calls. ​+The "Dial plan" module is located in the "​IP ​telephony" menu. When you open the module, ​the "Dial plan", "​Forwarding" ​and "​Queues"​ tabs will be displayed in the main window, and the "Dial plan" tab will be active. This module is designed to control the processing and routing logic of incoming ​and outgoing ​calls.
  
-All calls are divided into dial plans (groups) of income (externaland internal and outcome ​rules. In the “Incoming” ​group are calls that are received by ICS CUBE from external ​tranks.+{{:​asterisk_rules1.png?​650|}} 
 + 
 +==== Dial plan. ==== 
 + 
 +This tab displays sets of telephony rules, as well as the search bar and function buttons (add, delete, disable, edit, play) that are activated when a rule or set is selected. 
 + 
 +All calls are divided into two groups ​by default: "​Incoming calls" and "​Outgoing and internal calls"​. The "​Incoming calls" set includes calls that are sent to the ICS CUBE from external ​trunks. The "​Outgoing ​and internal ​calls" set includes outgoing ​and incoming calls from the internal phone numbers of the ICS CUBE. 
 + 
 +Rules in sets are executed one after the other, in turn, from top to bottom. 
 + 
 +{{:​asterisk_rules2.png?​|}} 
 + 
 +If necessary, you can add, disable, delete ​rules, or change their order by dragging a row to the desired position in the list of existing sets, or add your own rule setsRules that can be added to the set are as follows: 
 + 
 +|accept call|It is intended for receiving a call, further rules will not be taken into account| 
 +|hang up|It is intended for ending a call, further rules will not be taken into account| 
 +|wait for the dial for|It is intended for setting the waiting time for the user to dial an additional number with the ability to play a message, for example, for the voice menu| 
 +|forward call|It is intended for redirecting a call to specific numbers, to a rule set, to a queue, or to voice mail| 
 +|transform number|It is intended for converting a caller'​s number or a dialed number| 
 +|call via telephony provider|It is intended for routing a call through a specific provider and converting the dialed number| 
 + 
 +In all rules, except for "​Accept call", you can specify ​the trigger conditions of the rule that apply to the caller'​s number or the dialed number. 
 + 
 +{{:​asterisk_rules3.png?​|}} 
 + 
 +To set conditions on the "​Conditions"​ tab, you need to fill in the following fields: select the option to compare the caller'​s number and/or the dialed number. In the "​Equal"​ field, you can select a number, a group of numbers, or specify an external number manually. In the "​Starts from" field, you can specify a combination of digits at the beginning of the number, and you can also set the length of the number using the corresponding fields. You can also set a specific provider for the caller'​s number from which the call is coming from and apply it to calls redirected from such numbers by setting the appropriate flag. 
 + 
 +{{:​asterisk_rules4.png?​|}} 
 + 
 +In all rules, except for "​Accept call" and "Hang up", you can specify the time of action: the "​Duration"​ object created on the ICS CUBE or the days of the week and hours. 
 + 
 +=== Accept call. === 
 + 
 +The "​Accept call" rule is intended for receiving a call, and all rules that follow it will not be taken into account. To add this rule, click "​Add"​ - "​Accept call". A dialog box will open where you will be asked to choose which numbers to accept the call to: "all known numbers",​ "​specified numbers only", or "all known numbers except"​. 
 + 
 +{{:​asterisk_rules5.png?​|}} 
 + 
 +=== Hang up. === 
 + 
 +The "Hang up" rule is intended for ending a call, and all rules that follow it will not be taken into account. To add this rule, click "​Add"​ - "Hang up". A dialog box will open where you will be asked to specify the conditions for triggering this rule. 
 + 
 +=== Wait for the dial for. === 
 + 
 +The "Wait for the dial for" rule is intended for waiting for a number to be dialed. To add this rule, click "​Add"​ - "Wait for the dial for", a dialog box will open with two tabs "​Action"​ and "​Conditions",​ and the "​Action"​ tab will be active. 
 + 
 +{{:​asterisk_rules6.png?​|}} 
 + 
 +The "Wait for the dial for" field is used to specify the waiting time in seconds for the user to enter a number. 
 + 
 +The "Play message"​ flag activates the function buttons for uploading, playing, and deleting the ringtone used when waiting, as well as the "​Description"​ field (by default, this field will contain the file name after downloading). 
 + 
 +=== Forward call. === 
 + 
 +The "​Forward call" rule is designed to redirect a call to other numbers, rule sets, queues, or voice mail. To add this rule, click "​Add"​ - "​Forward call", a dialog box will open with two tabs "​Action"​ and "​Conditions",​ and the "​Action"​ tab will be active. 
 + 
 +{{:​asterisk_rules7.png?​|}} 
 + 
 +//Call to numbers.// To redirect a call to other numbers, select a number or group from the list of phone numbers in the ICS CUBE. The call will be made to all the specified numbers at the same time. You can specify the response waiting time in the corresponding field by activating it with the "Wait answer"​ flag before the server proceeds to check the next rule. The "​Forward if no answer"​ flag is activated if one specific number is indicated. In this case, if this number is not answered and this number has the redirection rule established,​ the call will be redirected to the numbers specified in the redirection menu. 
 + 
 +//Forward to context.// To redirect a call to a different rule set, you need to select the rule set in the corresponding field. Transition to the next rule will occur after the system goes through all the rules of the specified set, if the call is not received ​or terminated. 
 + 
 +//Forward to queue.// To redirect a call to a queue, you need to select the queue in the appropriate field. If the queue settings specify which rule set to go to, the call will go to the first rule of this specified set. 
 + 
 +//Forward to voicemail.//​ To redirect a call to voicemail, select the phone number of the ICS CUBE in the appropriate field. The following rules will not be observed. 
 + 
 +=== Transform number. === 
 + 
 +The "​Transform number"​ rule is intended for converting the dialed number or the caller'​s number. To add this rule, click "​Add"​ - "​Transform number",​ a dialog box will open with two tabs "​Action"​ and "​Conditions",​ and the "​Action"​ tab will be active. 
 + 
 +{{:​asterisk_rules8.png?​|}} 
 + 
 +You need to choose which number to apply the rule to - the source (dialer number) or destination (dialed number), and specify how many digits from the beginning of the number to replace and by which ones in the appropriate fields. 
 + 
 +=== Call via telephony provider. === 
 + 
 +The "Call via telephony provider"​ rule is intended for redirecting a call through a specific telephony provider with the ability to convert the dialed number. To add this rule, click "​Add"​ - "Call via telephony provider",​ a dialog box will open with two tabs "​Action"​ and "​Conditions",​ and the "​Action"​ tab will be active. 
 + 
 +{{:​asterisk_rules9.png?​|}} 
 + 
 +The "Use telephony provider"​ field is mandatory, it shall be used to specify the ICS CUBE or a tunnel created at the ICS CUBE. You can also specify how many digits ​from the beginning of the number should be replaced and by which ones in the corresponding fields. 
 + 
 +The "Retry if busy" flag activates the field for specifying the timeout through which the call will be made again if the provider is unavailable. 
 + 
 +==== Forwarding. ==== 
 + 
 +This tab displays telephony redirection cases when the called party does not answer. These rules are designed to redirect calls if the called party is not answering or busy. The tab also contains a search bar and function buttons (add, delete, disable, edit) that are activated when redirection option is selected. 
 + 
 +{{:​asterisk_rules10.png?​|}} 
 + 
 +To add redirection option, click the "​Add"​ button. A dialog box will open where you will be asked to specify the required parameters: the called number and the numbers to which the call will be redirected. You can also specify a group of numbers as telephone numbers in both fields, which will mean numbers that are in this group. The "​Call"​ field may also contain an external ​number that was not created on the ICS CUBE. 
 + 
 +{{:​asterisk_rules11.png?​|}} 
 + 
 +The "​Description"​ field is intended for specifying the text that will be displayed in the ICS CUBE interface next to the rule name. 
 + 
 +The "Wait for an answer"​ flag activates the field for specifying the waiting time in seconds. 
 + 
 +The "​Handle is busy" flag indicates that the redirection rule will also be applied when the specified numbers are busy. 
 + 
 +Redirection rules for non-response can also be viewed in the "​Forwrding"​ tab in the module for each user. 
 + 
 +{{:​asterisk_rules12.png?​|}} 
 + 
 +If there is a phone number for the user and there are redirection rules set in the ICS CUBE where this number is specified in the "If dosen'​t answer"​ field, then all such redirection cases will be displayed in the tab. At the same time, those redirection cases, in which this number is indicated as the only one, will be available for editing. 
 + 
 +**Important! By default, the following rule is applied in the ICS CUBE telephony module: when manually forwarding an incoming call to another subscriber'​s internal number, if you press *, the forwarding will be interrupted.** 
 + 
 +==== Queues. ==== 
 + 
 +This tab displays telephony queues. Queues are designed to hold calls until a number answers, or the source hangs up. The tab also contains a search bar and function buttons (add, delete, edit, play) that are activated when redirection option is selected. 
 + 
 +{{:​asterisk_rules13.png?​|}} 
 + 
 +To add a queue, click the "​Add"​ button. A dialog box will open where you will be asked to specify the required parameters: name of the queue and phone numbers to which the call will be made. You can also specify a group of numbers as phone numbers, then the call will be redirected to the numbers that are in this group. 
 + 
 +{{:​asterisk_rules14.png?​|}} 
 + 
 +The "​Strategy"​ field is used to specify the distribution of calls in the queue: 
 +  * //Ring all.// The call is made to the entire list of specified numbers at the same time. 
 +  * //Round robin.// The call starts with the first specified number, and if there is no response, the next number is called. 
 +  *// Fewest calls.// The call starts with the number that received the least amount of calls. 
 +  * //Random.// Phone numbers will be sorted randomly. 
 + 
 +The "​Timeout"​ field specifies call length (in seconds) to the user's phone before it is considered that the user did not respond. 
 + 
 +The "Exit time from queue" field is used to specify the time after which the call will get back to the original list of rules and will be processed by the next rule. 
 + 
 +{{:​asterisk_rules15.png?​|}} 
 + 
 +The "Play message"​ flag activates the function buttons for uploading, playing, and deleting the ringtone used when waiting, as well as the "​Description"​ field (by default, this field will contain the file name after downloading). 
 + 
 +The "​Announce queue" field is used for selecting notifications about the status of a subscriber in the queue. You can select notifications about the waiting time and/or number in the queue, as well as disable notifications. If you select the types of notifications sent to the subscriber when waiting, the field for indicating notification frequency becomes active. 
 + 
 +The "Leave queue" flag activates two fields: the one that is used to specify the combination of digits entered to exit and the one that is used to specify the set of rules applied when exiting. In this case, the call will go to the first rule in the specified rule set.
  
-In the “Outcoming and internal calls” group are outcome calls and income calls from internal numbers. 
-Rules are applied one by one, from top to down! 
  
-{{ip-telafon_rules.jpg}} 
  
-Income call from provider, the call is going to the voice menu (the rule “wait for the dial...”),​ during which the music is playing, and there is 15 seconds to dial the additional number. ​ 
  
-If necessary, you can add a new dial plan and all the rules that are needed. ​ 
  
  
asterisk_rules50.1550044382.txt.gz · Last modified: 2019/02/13 10:53 by root