Technical data
How Numbers Are Processed
Dialogic
®
Diva
®
SIPcontrol
TM
Software 1.8 Reference Guide page 54
Common formats:
Examples
Note: In all examples, the hyphen ("-") is only used for clarification. It must not be included either in the dialed
numbers or in the configured expressions and formats.
The examples may be used for calling or called number normalization for both the inbound and outbound
directions.
Omit the prefix digits
Task: A leading "33" prefix should be removed from the number.
Example: 33-444-5555 should be converted to 444-5555.
Expression entry: ^33
Format entry: (none)
Note: If the number does not start with "33", it passes unchanged.
Add the prefix digits
Task: The number needs the leading prefix "9".
Example: 444-5555 should go out as 9-444-5555.
Expression entry: .*
Format entry: 9$&
Replace the international number type by prefix
Task: A call that is indicated as an international call should be placed with prefixes instead.
Example: The number +1-472-333-7777 should be dialed as 011-472-333-7777
Expression entry: ^\+
Format entry: 01
Replace the international dial prefix by number type
Task: A call that has an international dial prefix should be placed with an international number type instead of
the prefix.
Character Meaning
0-9,+ Inserts the respective character into the output
(?n(digits)) Inserts the digits given only if the n
th
sub-expression of the expression matched
$& Outputs what matched the whole expression
$n Outputs the n
th
matched sub-expression
+ Indicates an international number type, if it is the first character in the string
N Indicates a national number type, if it is the first character in the string
S Indicates a subscriber number type, if it is the first character in the string
$(S) Inserts the current calling (source) number
$(D) Inserts the called (destination) number
$(R) Inserts the first redirected number
$(R2) Inserts the second redirected number
$(Rn) Inserts the n
th
redirected number (up to the 9th)