View in ref guide.
Edit this option Publish this option Clear draft content
Published Option
screenpop.preprocessing-rule
Default Value: default
Valid Values: default, none, or a pre-processing rule section name.
Changes Take Effect: When the session is started or restarted.
Introduced: 9.0.0
Specifies the pre-processing rule to apply to the Automatic Number Identification (ANI) before showing the screen pop. If the option is not defined, the default rule is applied. The possible values are:
- default — applies the default rule, which removes +1 from the beginning of the ANI.
- none — turns off pre-processing.
- <pre-processing-rule-section-name> — name of the pre-processing rule section. Within this rule section, you must set the following key/value pairs:
- expression — A regex that defines the condition to be matched.
- replacement — The string to replace the matched substring. If you set this value to empty, this removes the matched section.
- description — A short description of the rule.
Here's how the default rule would be configured:
[crm-adapter]
screenpop.preprocessing-rule: preprocessing-rule-remove-prefix
[preprocessing-rule-remove-prefix]
expression: ^\\+1
replacement:
description: "Remove +1 from the beginning of the number"
Draft Option
No draft option