Re: Voice Translation Rule Character "%"

From: WorkerBee (ciscobee@gmail.com)
Date: Mon Apr 21 2008 - 09:14:01 ART


Thanks Frog,

I have tested it and the '%' means the preceding digits occur zero or more time.
It is actually the same function as '*'.

So '*' == '%'

Definition
=======

.* Any digit followed by none or more ocurrences. This is
effectively anything, including null.

.% Indicates that the preceding digit occurred zero or more times.
This functions the same as the "*" used in regular expression.

Finally, I found the cisco document here explaining '%'

    http://www.cisco.com/en/US/docs/ios/12_2/voice/configuration/guide/vvfpeers.html

This is another document w/o '%' and explain all the wildcard.

    http://www.cisco.com/warp/public/788/voip/voice_transla_rules.html

Thanks.

On Mon, Apr 21, 2008 at 6:39 PM, Radioactive Frog <pbhatkoti@gmail.com> wrote:
> Hi WorkerBee,
>
> Rule 0 ^1212.% 212
> this rule translates 4 digit starts with 1212 code to 212 , strips out first
> "1" digit and only sends 212 to gatekeeper or softswitch for call routing.
> it seems long distance call to me.
>
> Rule 1 ^1617.% 617
> this rule translates 4 digit starts with 1617 code to 617 , strips out first
> "1" digit and only sends 617 to gatekeeper or softswitch for call routing.
>
> Rule 2 ^011331.% 331
> this rule translates 6 digit starts with 011331 code to 331 , strips out
> first international access code (or in north america 011 is a access call)
> "011" digit and only sends 331 to gatekeeper or softswitch for call routing.
>
>
> Rule 3 ^01144.% 44 <----------- UK country code....
> same as above...
>
>
> The same thing could be achive using KISS technology thoguh.... un-necessary
> its make complicated for confusing other fellows.
>
> Just use:
>
> voice translation-rule 1
> Rule 0 ^1212 212
>
>
>
> HTH...
>
> Frog

Pass the CCIE in six weeks, Guaranteed!
http://www.certscience.com/CCIE



This archive was generated by hypermail 2.1.4 : Thu May 01 2008 - 08:25:51 ART