help • 15 Numbers and Number Mappings • Placeholder • Special placeholders • Placeholders for number replacement
15.5.2.2 Placeholders for number replacement
The following special placeholders are provided for number replacement:
Placeholder
Type of number
Explanation
[cc]
Public number
Indicates the country code.
Example: +[cc]* in a call permission indicates authorization for national calls (i.e., calls within the same country). This means that this call permission can also be used for cross-national locations.
[ac]
Public number
Indicates the area code.
Example: +[cc][ac]* in a call permission indicates authorization for local calls (i.e., calls within the same city). This means that this call permission can also be used for inter-location calls.
[ext]
Number
Extension
Example: 225
[sn]
Number
Phone number (subscriber number)
Example: 4777
[ldcp]
Number
Long distance call prefix
Example: 0
[icp]
Number
International call prefix
Example: 00
[plap]
Number
Public Line Access Prefix
Example: 0
[fplap]
Number
Public Line Access of Superior Telecommunication System (Foreign Public Line Access)
Example: 9
[cbcp]
Number
Call by Call Prefix
Example: 01013
[empty]
-
Has no function and can be used to improve display.
[pbxrealm]
URI
The realm that was configured.
Example: company.net
[*]
-
Display of the key * (keypad), since * is already in use as a placeholder.
Further examples of number replacement
The following table lists examples of possible uses of placeholders in number replacement.
Original
Replacement
Explanation
sip:231*@*.company.com
sip:123*@*.lanphone.com
The placeholders are identified by their position in relation to @:
*before the @
Beginning at the @, all characters to the left are replaced.
Here: Everything to the left of the @ up to the string "sip:231" is inserted between the string "sip:123" and the @.
*after the @
Beginning at the @, all characters to the right are replaced.
Here: Everything to the right of the @ up to the string "company.com" is inserted between the @ and the string "lanphone.com".
ATTENTION: It is not possible to insert more than one * before or after the @.
sip:231*@*.company.com
123*
If no @is present, the placeholder is classified as "before the @".
Here: Everything to the left of the @ up to the string "sip:231" is inserted between the string "sip:123" and the @.
The placeholder after the @ has no match in this example, and is not further replaced.
sip:231*@*.company.com
sip:231@*.outlook.com
Here, everything between the string "sip:231" and the @ is ignored.
Everything between the @ and the string ".company.com" is inserted between the @ and the string ".outlook.com".
+4415
+44800283015
The number '+4915' is replaced by '+49800283015'
+4415*
+44800283015
All numbers beginning with ‘+4415' are replaced with '+44800283015'.
+4415*
+44800283015*
Any numbers starting with '+4415' will be replaced by numbers beginning with ‘+44800283015’, i.e. +44151234567 will be replaced by +448002830151234567.