Number Manipulation Examples
Example with Localization and Provider Rules for CallerID(Source) and Destination
Lets say 868555666 calling to 868777888, the first number is source (CallerID) and another one is destination. Localization source rules is used to modify CallerID which comes to MOR and provider source rules is used to modify CallerID which will be sent to provider. They aren't used all the time, only when owner of system wants.
So for example provider accepting calls only in 9 number length and which begins with 8. MOR works only with E.164 startard callerID's if you want to run billing on them.
So first of all we'll need to make such Localization source rule for our situation:
Cut: 8 , Add: 370 , Min/Max 9/9.
So now callers number is 3708555666, not 868555666. MOR identifies caller from Lithuania (by country code 370), that means he can bill him.
Now we need to send a call to 868777888 , but our number must be in old format (868555666), so we need to apply such provider source rule:
Cut: 370, Add: 8 , Min/Max 11/11
Thats it, final caller's number will be 868555666 again.
Examples
Example 1 - Italy
Client has such situation:
My customers are mainly in Italy. To call to Italy they are not gonna put 0039 country code, while they do put 00 and country code when the want to call other countries.
Then, on the other side, my provider aspect numbers to Italy without 0039 country code, while to other countries they do aspect it before the called number.
NOTES:
- Numbers clients dial are 10 digits in length. More info about Italian number format: http://en.wikipedia.org/wiki/%2B39
- '+' is not used, it should be changed to '00'
To handle such situation such actions should be taken:
- Location 'Italy' should be created
- All devices from Italy should be assigned to this Location
- Rules in Location Italy:
- Name: 'Local Italy', Cut: (empty), Add: 39, Min: 6, Max: 10
- Name: 'International', Cut: 00, Add: (empty), Min: 11, Max: 16
- Provider Rules for Provider through which call will be terminated:
- Name: 'International', Cut: (empty), Add: 00, Min: 10, Max: 100
Example 2 - USA/Canada
Client has such situation:
- Local number is dialed in following formats: 1-XXX-XXX-XXXX or XXX-XXX-XXXX
- International numbers: 011 - country code - area code - number
Localization rules:
Now call should be sent to Provider which accepts number in following format:
- USA/Canada calls should start with 1
- International calls should start with 011
Provider Rules for this Provider should look like:
Example 3 - Brasil
- Local number dialed in format 0XXXXXXXXXX
- International: 00 + country code + area code + number