[cisco-voip] Translation-rule
ccieid1ot
ccieid1ot at gmail.com
Tue May 12 22:58:41 EDT 2009
Use voice translation rule. Your current setup isn't working because
you have destination-pattern 2199999991, yet you want to translate
that as calling.
Calling is the ANI number or Caller ID.
sample
voice translation-rule 1
rule 1 /^2199999991/ /1&/
voice translation-rule 2
rule 2 /^258102211123 /1&/
voice translation-profile 219
translate called 1
translate calling 2
dial-peer voice 1 pots
translation-profile outgoing 219
...blah blah
or
voice translation-rule 2
rule 2 /^258102211123 /1&/
voice translation-profile CALLID
translate calling 2
dial-peer voice 1 pots
destination-pattern 2199999991
translation-profile outgoing CALLID
port 0/0:D
prefix 1
no digit-strip
On Tue, May 12, 2009 at 11:40 AM, Allan T. Parreno
<allan.parreno at jblfmu.edu.ph> wrote:
>
> hello,
>
> I have this translation-rule configuration in my AS5350 router, I want to
> pair 12199999991 as calling party and 1258102211123 as called party,
> 16199999992 as calling party and 1230092343121 as called party, 13199998891
> as calling party and 1009223456354 called party.
>
> My DID provider was not sending a prefix 1 in called party number, that is
> why I need to translate it in translation-rule 1
>
> translation-rule 1
> Rule 1 any 12199999991
> Rule 2 any 16199999992
> Rule 1 any 13199998891
>
> translation-rule 2
> Rule 1 any 1258102211123
>
> translation-rule 3
> Rule 1 any 1230092343121
>
> translation-rule 4
> Rule 1 any 1009223456354
>
> dial-peer voice 1 pots
> application session
> destination-pattern 2199999991
> translate-outgoing calling 1
> translate-outgoing called 2
> no digit-strip
> direct-inward-dial
> port 3/0:D
> forward-digits all
> !
> dial-peer voice 2 pots
> application session
> destination-pattern 6199999992
> translate-outgoing calling 1
> translate-outgoing called 3
> no digit-strip
> direct-inward-dial
> port 3/0:D
> forward-digits all
> !
> dial-peer voice 3 pots
> application session
> destination-pattern 3199998891
> translate-outgoing calling 1
> translate-outgoing called 4
> no digit-strip
> direct-inward-dial
> port 3/0:D
> forward-digits all
> !
>
> Thank you in advance.
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
More information about the cisco-voip
mailing list