class NumNormSubstitutionRule

ManagedElement
MtasFunction
MtasSupportFunctions
NumberNormalisation
NumNormProfile
NumNormSubstitutionRule


NumNormSubstitutionRule MO serves as a structural MO for
substitution rules data

Attributes
uint32[0..1]
noNotification
groupId = 0
Relevant only in TSP.
Independently from the permissions, this attribute can always be modified by the MO
owner and by the Super Administrator.
NumNormstring1to00256DT
key
mandatory
noNotification
restricted
numNormSubstitutionRule
NumNormSubstitutionRule key, defines the name of the substitution rule.
NumNormSubstitutionString1to000255DT[0..128] nonUnique ordered
numNormSubstitutionRuleData
The numNormSubstitutionRuleData defines the substitution rule data and has the following format:
Order:Substitution-rule-expression:Terminal-match, where

Order is an unsigned integer and it defines which substitute rule is being matched first. The lowest number has the highest priority in matching.

Subsitution-rule-expression is a POSIX 1003.2 extended regular expression. The regular expression is encapsulated with a starting "/" and an ending "/".

Terminal-match is a boolean flag indicating if the expression is terminal or not. If terminal-match, the matching results will be returned directly; otherwise, further matching will be performed.

Valid input expression: "(0|[1-9][0-9]*):/.*/:(true|false)"

Example: Terminal regular expressions for local, national, and international number. The $AC variable is used for the local numbers only:
0: /^00(.*)$/+\1/ :TRUE
If the number starts with '00', replace '00' with '+';
1: /^0(.*)$/+46\1/:TRUE
If the number starts with '0', replace '0' with '+46';
2: /^(.*)$/+46$AC\1/:TRUE
Otherwise prepend '+46$AC', where $AC = numNormContextSubAreaCode for the matching NumNormContext.

Example: Terminal regular expressions for OSN number:
0:/^123;phone-context=OSN Domain(.*)$/+\1/:FALSE
If number starts with '123', replace '123' with '123;Phone-context=OSN Domain'.
NumNormString0to00064DT[0..1]
numNormSubstitutionRuleIndex
Defines the string for the index to the substitution rules. The string must be set to the same value as the numNormContextSubRuleIndex attribute in the NumNormContext MO.
uint32[0..1]
noNotification
ownerId = 0
Relevant only in TSP.
Independently from the permissions, this attribute can always be modified by the MO
owner and by the Super Administrator.
integer[0..1]
noNotification
permissions = 9
Relevant only in TSP.
The operations allowed for the group members and for other administrators are represented
as a bitmap: groupRead(1), groupUpdate(2), groupManage(4), otherRead(8), otherUpdate(16),
otherManage(32). Read permission means to read the MO attributes and to see the children of the MO;
write permission allows to modify the MO attributes and manage permission allows to create and
delete children of the MO. The owner of the MO has all the permissions. The attribute can only be
modified by the owner of the MO or by the Super Administrator. By default, the MO is created with the
permissions determined by the defaultPermissions attribute of the owner administrator.
DN[0..1]
noNotification
shareTree = nodeName=jambala
Relevant only in TSP.
This attribute refers to a container object and implies that all administrators defined
under this shareTree value have the privileges set as share permissions over the container and its leaf object. Obsolete, must not be used.