Normalization of incoming phone number
Last updated
Last updated
When connecting multiple providers to MikoPBX, you may encounter situations where customer phone numbers come in different formats:
In 7-digit format - 2293042
With a "+" sign, for example, +79257184444
With "8", for example, 89257184444
There is a need to standardize all these formats.
Go to the Routing → Telephony Providers section. Open the provider's account for editing. Copy the Provider ID from the address bar, through which subscribers call your company. Please note that in our example, we are using a single provider. If you have multiple providers configured, you need to perform the following steps for each provider.
In our example, the Provider ID looks like: SIP-1687941868
Go to the System → System file customization section.
Open the configuration file extensions.conf for editing.
Add the folowwing code in the end of file:
In the code above, you need to create the context with the correct name. Format for creating the context:
ID-PROVIDER - the value you saved in the first step of this instruction. In our example, it's SIP-1687947415.
Please note that if you have multiple providers in MikoPBX, you need to create the code fragment above for each provider, taking into account the uniqueness of each provider's ID.
If you want to add normalization for all providers at once, you can create the "add-trim-prefix-clid-custom" context. For example, to add a "7" to all 10-digit caller IDs: