Re: [cisco-voip] IOS SIP Profile match calling number less then 10 digits

2018-11-28 Thread Evgeny Izetov
Could try something like this:

voice translation-rule 1
rule 1 /^[2-9]..[2-9]..$/ /&/
rule 2 /.*/ /4045551212/

So the logic is, if it's 10 digits then leave it be, anything else gets
masked.

If your extensions are always 4 digits then could just add this as the last
rule:

rule 10 /^$/ /4045551212/

On Wed, Nov 28, 2018, 5:54 PM Jason Aarons (Americas) <
jason.aar...@dimensiondata.com wrote:

>
>
> I have a few phones missing an External Phone Number Mask, was thinking
> about adding a IOS translation rule on outbound dial peer that if less than
> less than 10 digits change calling number to our main number. Any got a
> sample?
>
> SIP carrier is passing some extensions out to PSTN by accident.
>
> Get Outlook for Android 
>
>
>
> This email and all contents are subject to the following disclaimer:
> "http://www.dimensiondata.com/emaildisclaimer;
> 
> ___
> cisco-voip mailing list
> cisco-voip@puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
___
cisco-voip mailing list
cisco-voip@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip


[cisco-voip] IOS SIP Profile match calling number less then 10 digits

2018-11-28 Thread Jason Aarons (Americas)
   I have a few phones missing an External Phone Number Mask, was thinking 
about adding a IOS translation rule on outbound dial peer that if less than 
less than 10 digits change calling number to our main number. Any got a sample?

SIP carrier is passing some extensions out to PSTN by accident.

Get Outlook for Android

This email and all contents are subject to the following disclaimer:

"http://www.dimensiondata.com/emaildisclaimer;
___
cisco-voip mailing list
cisco-voip@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-voip