[cisco-voip] Need to apply all translation rules..!!
Wes Sisk
wsisk at cisco.com
Tue Aug 24 13:03:13 EDT 2004
Hi Tamer,
12.2(11)T and later include some useful updates to translation rules.
See "Translation Rules and Translation Profiles" Table 4 Translation Rule
Examples in this doc:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122
t/122t11/ftgwrepg.htm
Here is an example:
c2610#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IS4-M), Version 12.3(10.2), MAINTENANCE
INTERIM SOFTWARE
c2610#sh run
<snip>
voice translation-rule 1
rule 1 /^8766/ /9110/
rule 2 /^8767/ /4934/
!
voice translation-profile swap_prefix
translate called 1
!
dial-peer voice 58 pots
translation-profile outgoing swap_prefix
</snip>
--OR--
To force matching only numbers 5 digits or longer:
!
voice translation-rule 1
rule 1 /^8766\(.\)/ /9110\1/
rule 2 /^8767\(.\)/ /4934\1/
!
!
voice translation-profile swap_prefix
translate called 1
!
!
dial-peer voice 58 pots
translation-profile outgoing swap_prefix
!
c2610#test voice translation 1 87660
Matched with rule 1
Original number: 87660 Translated number: 91100
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
c2610#test voice translation 1 87663
Matched with rule 1
Original number: 87663 Translated number: 91103
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
c2610#test voice translation 1 87663230853825823
Matched with rule 1
Original number: 87663230853825823 Translated number: 91103230853825823
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
c2610#
c2610#test voice translation 1 8766
c2610#
/Wes
> -----Original Message-----
> From: Tamer Mohamed Bayomy [mailto:tamer.bayomy at xceedcc.com]
> Sent: Sunday, August 22, 2004 2:25 PM
> To: Voll, Scott; cisco-voip at puck.nether.net; amendoza at niku.com;
> lelio at uoguelph.ca; sat at orion.interexc.com;
> Peter.Lewandowski at cygatemaldata.se; medley at mac.com;
> vandy.hamidi at markettools.com; philip.walenta at berbee.com;
> wsisk at cisco.com; YEHAVI at vms.HUJI.AC.IL
> Subject: [cisco-voip] Need to apply all translation rules..!!
>
>
> Hello,
>
> I am having a Cisco 2650XM and need to add around 20 translation rules
> to single POTS.
>
> I have created 20 Rules namely:
>
> Translation-Rule 1
> Translation-Rule 2
>
> in which, each of them have 10 rules (Which is the maximum allowed per
> Translation Tag)
>
> Now when I try to apply the Rule to the POTS, I find I can ONLY APPLY
> ONE Rule, whereas I NEED to apply all 2 (Or rather, all 20).
>
> Is there any way I could achieve this? (Below my rules are shown)
>
> -------------------------------------------------------------
>
> translation-rule 1
> Rule 1 ^87660 91100
> Rule 2 ^87661 91101
> Rule 3 ^87662 91102
> Rule 4 ^87663 91103
> Rule 5 ^87664 91104
> Rule 6 ^87665 91105
> Rule 7 ^87666 91106
> Rule 8 ^87667 91107
> Rule 9 ^87668 91108
> Rule 10 ^87669 91109
> !
> translation-rule 2
> Rule 1 ^87670 49340
> Rule 2 ^87671 49341
> Rule 3 ^87672 49342
> Rule 4 ^87673 49343
> Rule 5 ^87674 49344
> Rule 6 ^87675 49345
> Rule 7 ^87676 49346
> Rule 8 ^87677 49347
> Rule 9 ^87678 49348
> Rule 10 ^87679 49349
> !
> !
> dial-peer voice 3 pots
> destination-pattern .T
> translate-outgoing called 1 <=== I need all 2 Rules applied on the pots
> Forward-digit all port 0/0:15
>
> ----------------------------------------------------------
>
> Pls help.
> Thanx.
> Tamer
>
More information about the cisco-voip
mailing list