Dialing Rules and Patterns
From VoIP.ms Wiki
| [draft revision] | [quality revision] |
(→Dialing Rules) |
|||
| (21 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
| - | = | + | {| class="wikitable" |
| + | |+ | ||
| + | |- | ||
| + | ! Article en Français !! Artículo en Español | ||
| + | |- | ||
| + | | [https://wiki.voip.ms/article/R%C3%A8gles_et_motifs_de_composition Français] || | ||
| + | [https://wiki.voip.ms/article/Reglas_y_Patrones_de_Marcado Español] | ||
| + | |} | ||
| - | |||
==Dialing Rules== | ==Dialing Rules== | ||
| - | The most common dialing rule that we can | + | The most common dialing rule that we can find in the '''[http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk] outgoing settings''' (either SIP or IAX) is the following: |
| + | |||
| + | (N Represents a Number 2-9 and X Represents Any Number) | ||
'''1+NXXNXXXXXX''' | '''1+NXXNXXXXXX''' | ||
| - | What | + | What it does is adding the "1" to any pattern like "NXXNXXXXXX" |
| - | '' | + | ''It is important to understand that the rules will apply as long as the pattern exists, if it doesn't exist the rule will never apply and the call will end in a typical " This call can not be placed as dialed".'' |
| - | For example, if you want to dial 7 digits only: | + | '''For example, if you want to dial 7 digits only:''' |
'''1555+NXXXXXX''' | '''1555+NXXXXXX''' | ||
| - | Replace the 555 digits in the | + | Replace the 555 digits in the previous line for the area code of your choice. |
| + | |||
| + | ==Useful VoIP.ms Rules== | ||
| + | |||
| + | '''4443''' - For calling Echo Test to test call connectivity to our servers and call quality. | ||
| + | |||
| + | '''4747''' - For DTMF Testing. | ||
| + | |||
| + | '''***XXX''' - To test MOH (Music on Hold) Categories. | ||
| + | |||
| + | '''*xx''' - To access Voicemail Options with our service like *97 and *98. | ||
| + | |||
| + | '''0441+NXXNXXXXXX or 0331+NXXNXXXXXX''' - Used to manually dial a Premium (0441) or a Value (0331) Canadian Route. | ||
| + | |||
| + | '''011+.''' or '''00+.''' - For International Calling. | ||
| + | |||
| + | '''044+.''' and '''033+.''' - To Manually dial (044) Premium International Routes or (033) Value International Routes. Good for Testing a call via different routes on the go. | ||
==Dialing Patterns== | ==Dialing Patterns== | ||
| - | The Dialing patterns can be found in the '''Outbound route''', whatever you dial from any extension must match a dialing pattern, the most common dialing pattern found here is the following: | + | The Dialing patterns can be found in the '''[http://wiki.voip.ms/article/Trixbox#Outbound_Routes Outbound route]''', whatever you dial from any [http://wiki.voip.ms/article/Trixbox#Extensions extension] must match a dialing pattern, the most common dialing pattern found here is the following: |
'''NXXNXXXXXX''' | '''NXXNXXXXXX''' | ||
| - | ''The important thing to understand, is that the outbound route will select the | + | ''The important thing to understand, is that the [http://wiki.voip.ms/article/Trixbox#Outbound_Routes outbound route] will select the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunks] it will use'', however if you have multiple [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunks] with the same patterns (which is commonly used), then you will have to select the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunks] priority (which is found at the top right of the outbound route screen, as a list of the [http://wiki.voip.ms/article/Trixbox#Outbound_Routes Outbound routes] names with arrows to move up and down as priority). |
| - | Now, what | + | Now, what happens if you have multiple [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunks] and you need to force that one [http://wiki.voip.ms/article/Trixbox#Extensions extension] does come up from an specific [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]? It is a simple play of rules and patterns. |
| - | =How to | + | =How to configure one [http://wiki.voip.ms/article/Trixbox#Extensions extension] through a specific [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]= |
| - | As has been explained, the | + | As it has been explained, the [http://wiki.voip.ms/article/Trixbox#Extensions extension] does not "choose" on which [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk] to come out, this is done by the outbound route, what we need to do is to play with the patterns from the [http://wiki.voip.ms/article/Trixbox#Outbound_Routes Outbound routes] and dialing rules for the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunks] set. |
| - | What we can chose is the outbound route (which contains the specific trunk) | + | What we can chose is the [http://wiki.voip.ms/article/Trixbox#Outbound_Routes outbound route] (which contains the specific [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]). |
How? | How? | ||
| Line 43: | Line 67: | ||
The trunk1 and trunk2 dialing rules will be the same = 1+NXXNXXXXXX | The trunk1 and trunk2 dialing rules will be the same = 1+NXXNXXXXXX | ||
| - | Now on the outbound route we can determine the specific pattern that will help us to "choose" either trunk from when dialing from an specific extension. | + | Now on the outbound route we can determine the specific pattern that will help us to "choose" either [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk] from when dialing from an specific [[http://wiki.voip.ms/article/Trixbox#Extensions extension]]. |
We can set to the outbound route1 the pattern: | We can set to the outbound route1 the pattern: | ||
| Line 53: | Line 77: | ||
''' 2|.''' | ''' 2|.''' | ||
| - | This means any pattern with a "2" in front will be recognized by that route and use the specific trunk, the pattern also | + | This means any pattern with a "2" in front will be recognized by that route and use the specific [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk], the pattern also removes the 2 so this number is not sent and the rule in the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk] 1+ remains. |
| - | In this manner we dial a regular US/CAN number (10 digits) this way from the | + | In this manner we dial a regular US/CAN number (10 digits) this way from the [http://wiki.voip.ms/article/Trixbox#Extensions extensions]. |
'''25626846308''' | '''25626846308''' | ||
| - | ''Note the 2 before the ten digits, this will be | + | ''Note the 2 before the ten digits, this will be stripped out and substitute by 1 according to the dialing rules set in the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]. By doing this we ensure the use of the trunk1 (which is being chosen in the outbound route).'' |
Now, in the outbound route2 we add the patterns: | Now, in the outbound route2 we add the patterns: | ||
| Line 67: | Line 91: | ||
'''3|.''' | '''3|.''' | ||
| - | This way, when dialing within the extension we only need to add a 3 (that will match the specific route) and use the specific trunk. | + | This way, when dialing within the [http://wiki.voip.ms/article/Trixbox#Extensions extension] we only need to add a 3 (that will match the specific route) and use the specific [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]. |
'''like 35626846308''' | '''like 35626846308''' | ||
| - | The number 3 will be removed and substitute by the "1" according to the dialing rules in the | + | The number 3 will be removed and substitute by the "1" according to the dialing rules in the [http://wiki.voip.ms/article/Trixbox#Trunk_Configuration trunk]. |
| + | |||
| + | Additionally you can play with the dial rules on the devices that uses the [http://wiki.voip.ms/article/Trixbox#Extensions extension], so the 2 or 3 or number chosen is sent automatically without the need of dialing. | ||
| - | + | [[category:guides]] | |
Latest revision as of 17:14, 29 May 2024
| Article en Français | Artículo en Español |
|---|---|
| Français |
Contents |
Dialing Rules
The most common dialing rule that we can find in the trunk outgoing settings (either SIP or IAX) is the following:
(N Represents a Number 2-9 and X Represents Any Number)
1+NXXNXXXXXX
What it does is adding the "1" to any pattern like "NXXNXXXXXX"
It is important to understand that the rules will apply as long as the pattern exists, if it doesn't exist the rule will never apply and the call will end in a typical " This call can not be placed as dialed".
For example, if you want to dial 7 digits only:
1555+NXXXXXX
Replace the 555 digits in the previous line for the area code of your choice.
Useful VoIP.ms Rules
4443 - For calling Echo Test to test call connectivity to our servers and call quality.
4747 - For DTMF Testing.
***XXX - To test MOH (Music on Hold) Categories.
*xx - To access Voicemail Options with our service like *97 and *98.
0441+NXXNXXXXXX or 0331+NXXNXXXXXX - Used to manually dial a Premium (0441) or a Value (0331) Canadian Route.
011+. or 00+. - For International Calling.
044+. and 033+. - To Manually dial (044) Premium International Routes or (033) Value International Routes. Good for Testing a call via different routes on the go.
Dialing Patterns
The Dialing patterns can be found in the Outbound route, whatever you dial from any extension must match a dialing pattern, the most common dialing pattern found here is the following:
NXXNXXXXXX
The important thing to understand, is that the outbound route will select the trunks it will use, however if you have multiple trunks with the same patterns (which is commonly used), then you will have to select the trunks priority (which is found at the top right of the outbound route screen, as a list of the Outbound routes names with arrows to move up and down as priority).
Now, what happens if you have multiple trunks and you need to force that one extension does come up from an specific trunk? It is a simple play of rules and patterns.
How to configure one extension through a specific trunk
As it has been explained, the extension does not "choose" on which trunk to come out, this is done by the outbound route, what we need to do is to play with the patterns from the Outbound routes and dialing rules for the trunks set.
What we can chose is the outbound route (which contains the specific trunk).
How?
Lets say we have trunk1 and trunk2 for this example. Lets say also we have outbound route1 and outbound route2 for this example. Also lets say we have the extension1.
The trunk1 and trunk2 dialing rules will be the same = 1+NXXNXXXXXX
Now on the outbound route we can determine the specific pattern that will help us to "choose" either trunk from when dialing from an specific [extension].
We can set to the outbound route1 the pattern:
NXXNXXXXXX
but also (this is the trick) we can add something like X|. (being X any number of your choice)
2|.
This means any pattern with a "2" in front will be recognized by that route and use the specific trunk, the pattern also removes the 2 so this number is not sent and the rule in the trunk 1+ remains.
In this manner we dial a regular US/CAN number (10 digits) this way from the extensions.
25626846308
Note the 2 before the ten digits, this will be stripped out and substitute by 1 according to the dialing rules set in the trunk. By doing this we ensure the use of the trunk1 (which is being chosen in the outbound route).
Now, in the outbound route2 we add the patterns:
NXXNXXXXXX
3|.
This way, when dialing within the extension we only need to add a 3 (that will match the specific route) and use the specific trunk.
like 35626846308
The number 3 will be removed and substitute by the "1" according to the dialing rules in the trunk.
Additionally you can play with the dial rules on the devices that uses the extension, so the 2 or 3 or number chosen is sent automatically without the need of dialing.