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
Los patrones de marcado se encuentran en las Rutas de Salida, cualquier número marcado desde una extensión del asterisk(*) debe corresponder a un patrón de marcado, el patrón de marcado más común es el siguiente:
NXXNXXXXXX
Lo importante a comprender, es que en la "Ruta de Salida" podemos elegir desde que troncal se enviará la llamada, sin embargo si usted tiene diferentes troncales (lo cual es común), usted tendrá que seleccionar la prioridad de los troncales (La cual se encuentra en la esquina derecha).
Ahora, si usted tiene multiples troncales y necesita forzar el uso de un troncal en especifico por extensión, usted puede lograr esta configuración utilizando las reglas y patrones de marcado.
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.