View in ref guide.
Edit this option Publish this option Clear draft content
Published Option
click-to-dial.preprocessing-rules
Default Value: default
Valid Values: default, none, or a comma-separated list of pre-processing rule section names
Changes Take Effect: When the session is started or restarted.
Specifies the pre-processing rules to apply to the phone number before making a dial request. If the option is not defined, the default rule is applied. The possible values are:
- default — applies the default rules:
- If the phone number is 10 digits, add +1.
- If the phone number is 11 digits, add +.
- If the phone is greater than 11 digits and doesn't start with 011, add 011.
- none — turns off pre-processing.
- <pre-processing-rule-section-name(s)> — name of the pre-processing rule section(s). Within a rule section, you must set the following key/value pairs:
- expression — A regex that defines the condition to be matched.
- prefix — The prefix to be added to the phone number if the expression is matched.
- description — A short description of the rule.
Here's how the default rules are configured:
[crm-adapter]
click-to-dial.preprocessing-rules: preprocessing-rule-10-digit-US-numbers,
preprocessing-rule-11-digit-US-numbers, preprocessing-rule-international-numbers
[preprocessing-rule-10-digit-US-numbers]
expression: ^[0-9]{10}$
prefix: +1
description: "If it is 10 digits add +1"
[preprocessing-rule-11-digit-US-numbers]
expression: ^[0-9]{11}$
prefix: +
description: "If it is 11 digits, add +"
[preprocessing-rule-international-numbers]
expression: ^(?!011)[0-9]{8,}$
prefix: 011
description: "If it is greater than 11 digits and doesn't start with 011, add 011"
Note: Adapter runs each rule in sequence until it finds a match and adds the prefix. No further rules are executed.
Draft Option
No draft option