Reglas y Patrones de Marcado
From VoIP.ms Wiki
Contents |
Reglas y Patrones de Marcado
Este articulo explica la diferencia entre el uso de las reglas de Marcado ( Desde la configuración de las llamadas salientes en el troncal) y los patrones de marcado (Desde las rutas de salida) desde una distribución común de asterisk(*)
Reglas de Marcado
La regla mas común de marcado, que podemos encontrar en la configuración de salida del troncal (ya sea SIP o IAX) es el siguiente:
1+NXXNXXXXXX
Agrega un "1" a cualquier patron como "NXXNXXXXXX"
Lo importante a comprender , es que las reglas aplicarán siempre y cuando los patrones esten definidos, si no existen, la regla no aplicará y la llamada terminará en un error como " Esta llamada no puede ser completada como la marcó".
Por ejemplo, si desea marcar solamente 7 digitos:
1555+NXXXXXX
Remplaze "555" por el codigo de area de su preferencia.
Patrones de Marcado
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 trunk it will use, however if you have multiple trunks with the same patterns (which is commonly used), then you will have to select the Trunk 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 happen 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.
Como forzar una extensión a traves de un troncal específico
As 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.
Como?
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 remove 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 extension.
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.