Installation guide
Sms4Domino Help
- 81 -
Phone number preprocessing
Phone number preprocessingPhone number preprocessing
Phone number preprocessing
Introduction
IntroductionIntroduction
Introduction
End users may specify the phone number in different ways. The number 0474 96 11 11 in
Belgium (country code 32) may be written as
+32474961111
0032/(474) 96 11 11
0474-96.11.11
For the correct matching of future inbound SMS messages with the outbound SMS it is essential
to convert SMS numbers to a standard representation. Sms4Domino uses the international
number format as a standard representation. This is composed of the plus (+) sign, the country
code (1, 2 or 3 digits) followed by the local number.
End users may specify a badly formatted number (e.g. containing letters or too short). In case of
obvious errors the SMS request should not be routed to the modem but must be returned
immediately as a non delivery failure.
The administrator may impose restrictions on the allowed destinations . In the current release
these restrictions are imposed at the level of the interface and will be applied to all users .
Details
DetailsDetails
Details
The preprocessing of phone numbers is executed in a number of consecutive steps:
Standardisation of the phone number.
Automatic convertion to the international number format. Optional reject of
mall-formed numbers. The automatic convertion is based on the open source code
of Google. It is recommended to activate this processing step. In most cases this is
the only required standardisation step.
Ad-hoc convertion using a set of regular expressions.
Validation of the result. The resulting number should match a regular expression
Imposing restrictions on the resulting number. This is implemented using whitelist or
blacklist regular expressions