Difference between revisions of "Number Manipulation Examples"
Line 1: | Line 1: | ||
= Example with [[Localization]] and [[Provider Rules]] for CallerID(Source) and Destination = | = Example with [[Localization]] and [[Provider Rules]] for CallerID(Source) and Destination = | ||
Lets say 868555666 calling to 868777888 | Lets say 868555666 is calling to 868777888. The first number is source (CallerID) and the other one is the destination. [[Localization]] source rules are used to modify the CallerID which comes to MOR, and provider source rules are used to modify the CallerID that will be sent to the provider. They aren't used all the time, only when owner of system wants them to be. | ||
Take, for example, a provider that only accepts calls that are nine numbers in length and that begin with 8. MOR works only with E.164 standard callerID's if you want to run billing on them. | |||
First of all, we need to make a [[Localization]] '''source''' rule for our situation: | |||
Cut | Cut 8, add 370, Min/Max 9/9. | ||
So now | So now the caller's number is 3708555666, not 868555666. MOR identifies the caller as being from Lithuania (by country code 370), which 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 | Now we need to send a call to 868777888, but our number must be in the old format (868555666), so we need to apply a suitable provider source rule: | ||
Cut | Cut 370, add 8, Min/Max 11/11. | ||
That's it - the caller's final number will once again be 868555666. | |||
Line 23: | Line 23: | ||
== Example 1 - [[Image:ita.jpg]]Italy == | == Example 1 - [[Image:ita.jpg]]Italy == | ||
The client has the following situation: | |||
My customers are mainly in Italy. To call | My customers are mainly in Italy. To call Italy, they are not going to add the 0039 country code, | ||
while they do put 00 and country code when | while they do put 00 and the country code when they want to call other countries. | ||
Then, on the other side, my provider | Then, on the other side, my provider aspects numbers to Italy without the 0039 country code, | ||
while to other countries | while to other countries it does aspect the country code before the called number. | ||
'''NOTES:''' | '''NOTES:''' | ||
* | * The numbers that clients dial are 10 digits in length. For more info about the Italian number format, see: http://en.wikipedia.org/wiki/%2B39 | ||
* '+' is not used | * '+' is not used. It should be changed to '00'. | ||
To handle such situation | To handle such a situation, the following actions should be taken: | ||
* Location 'Italy' should be created | * Location 'Italy' should be created. | ||
* All devices from Italy should be assigned to this Location | * All devices from Italy should be assigned to this Location. | ||
* Rules in Location Italy: | * Rules in Location Italy: | ||
** Name: 'Local Italy', Cut: (empty), Add: 39, Min: 6, Max: 10 | ** Name: 'Local Italy', Cut: (empty), Add: 39, Min: 6, Max: 10. | ||
** Name: 'International', Cut: 00, Add: (empty), Min: 11, Max: 16 | ** Name: 'International', Cut: 00, Add: (empty), Min: 11, Max: 16. | ||
* [[Provider Rules]] for Provider through which call will be terminated: | * [[Provider Rules]] for Provider through which call will be terminated: | ||
** Name: 'International', Cut: (empty), Add: 00, Min: 10, Max: 100 | ** Name: 'International', Cut: (empty), Add: 00, Min: 10, Max: 100. | ||
== Example 2 - [[Image:usa.jpg]]USA/[[Image:can.jpg]]Canada == | == Example 2 - [[Image:usa.jpg]]USA/[[Image:can.jpg]]Canada == | ||
The client has the following situation: | |||
* | * A local number is dialed in following formats: 1-XXX-XXX-XXXX or XXX-XXX-XXXX. | ||
* International numbers: 011 - country code - area code - number | * International numbers: 011 - country code - area code - number. | ||
'''[[Localization]] rules''': | '''[[Localization]] rules''': | ||
Line 58: | Line 58: | ||
Now call should be sent to | Now the call should be sent to the provider which accepts numbers in following format: | ||
* USA/Canada calls should start with 1 | * USA/Canada calls should start with 1. | ||
* International calls should start with 011 | * International calls should start with 011. | ||
[[Provider Rules]] for this Provider should look like: | [[Provider Rules]] for this Provider should look like: | ||
Line 69: | Line 69: | ||
== Example 3 - [[Image:bra.jpg]]Brasil == | == Example 3 - [[Image:bra.jpg]]Brasil == | ||
* Local number dialed in format 0XXXXXXXXXX | * Local number dialed in format 0XXXXXXXXXX. | ||
* International: 00 + country code + area code + number | * International: 00 + country code + area code + number. | ||
[[Image:localization_brasil.png]] | [[Image:localization_brasil.png]] |
Revision as of 02:40, 3 May 2010
Example with Localization and Provider Rules for CallerID(Source) and Destination
Lets say 868555666 is calling to 868777888. The first number is source (CallerID) and the other one is the destination. Localization source rules are used to modify the CallerID which comes to MOR, and provider source rules are used to modify the CallerID that will be sent to the provider. They aren't used all the time, only when owner of system wants them to be.
Take, for example, a provider that only accepts calls that are nine numbers in length and that begin with 8. MOR works only with E.164 standard callerID's if you want to run billing on them.
First of all, we need to make a Localization source rule for our situation:
Cut 8, add 370, Min/Max 9/9.
So now the caller's number is 3708555666, not 868555666. MOR identifies the caller as being from Lithuania (by country code 370), which means he can bill him.
Now we need to send a call to 868777888, but our number must be in the old format (868555666), so we need to apply a suitable provider source rule:
Cut 370, add 8, Min/Max 11/11.
That's it - the caller's final number will once again be 868555666.
Examples
Example 1 - Italy
The client has the following situation:
My customers are mainly in Italy. To call Italy, they are not going to add the 0039 country code, while they do put 00 and the country code when they want to call other countries.
Then, on the other side, my provider aspects numbers to Italy without the 0039 country code, while to other countries it does aspect the country code before the called number.
NOTES:
- The numbers that clients dial are 10 digits in length. For more info about the Italian number format, see: http://en.wikipedia.org/wiki/%2B39
- '+' is not used. It should be changed to '00'.
To handle such a situation, the following 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
The client has the following situation:
- A 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 the call should be sent to the provider which accepts numbers 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.