cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

241
Views
0
Helpful
2
Replies

CISCO AS5300 Translation-Rule

Hello There,

I am having some problem on my CISCO AS5300 with 1 E1 digital line, and everything start making problem at the time to create voice translation-rule since cisco only allow me to create 15rule that's why I create 4 translation-rule. Them I create 4 voice translation-profile with the translation rule. The big problem is voice-port only allow me to add one translation-profile. So every incoming call will only match the translation rule that is configured in voice-port.

Attach I include what I have exactly on my config.

voice translation-rule 1
rule 1 /^24217#54911\(........\)/ /15\1/
rule 2 /^24217#549\(351\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(379\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(370\)\(.......\)/ /0\115\2/
rule 5 /^24217#549\(221\)\(.......\)/ /0\115\2/
rule 6 /^24217#549\(380\)\(.......\)/ /0\115\2/
rule 7 /^24217#549\(261\)\(.......\)/ /0\115\2/
rule 8 /^24217#549\(299\)\(.......\)/ /0\115\2/
rule 9 /^24217#549\(343\)\(.......\)/ /0\115\2/
rule 10 /^24217#549\(376\)\(.......\)/ /0\115\2/
rule 11 /^24217#549\(280\)\(.......\)/ /0\115\2/
rule 12 /^24217#549\(362\)\(.......\)/ /0\115\2/
rule 13 /^24217#549\(387\)\(.......\)/ /0\115\2/
rule 14 /^24217#549\(383\)\(.......\)/ /0\115\2/
rule 15 /^24217#54/ /0/
!
voice translation-rule 2
rule 1 /^24217#549\(266\)\(.......\)/ /0\115\2/
rule 2 /^24217#549\(381\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(388\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(342\)\(.......\)/ /0\115\2/
rule 5 /^24217#549\(385\)\(.......\)/ /0\115\2/
rule 6 /^24217#549\(220\)\(.......\)/ /0\115\2/
rule 7 /^24217#549\(221\)\(.......\)/ /0\115\2/
rule 8 /^24217#549\(223\)\(.......\)/ /0\115\2/
rule 9 /^24217#549\(230\)\(.......\)/ /0\115\2/
rule 10 /^24217#549\(236\)\(.......\)/ /0\115\2/
rule 11 /^24217#549\(237\)\(.......\)/ /0\115\2/
rule 12 /^24217#549\(260\)\(.......\)/ /0\115\2/
rule 13 /^24217#549\(261\)\(.......\)/ /0\115\2/
rule 14 /^24217#549\(263\)\(.......\)/ /0\115\2/
rule 15 /^24217#549\(264\)\(.......\)/ /0\115\2/
!
voice translation-rule 3
rule 1 /^24217#549\(266\)\(.......\)/ /0\115\2/
rule 2 /^24217#549\(280\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(291\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(294\)\(.......\)/ /0\115\2/
rule 5 /^24217#549\(297\)\(.......\)/ /0\115\2/
rule 6 /^24217#549\(298\)\(.......\)/ /0\115\2/
rule 7 /^24217#549\(299\)\(.......\)/ /0\115\2/
rule 8 /^24217#549\(336\)\(.......\)/ /0\115\2/
rule 9 /^24217#549\(341\)\(.......\)/ /0\115\2/
rule 10 /^24217#549\(342\)\(.......\)/ /0\115\2/
rule 11 /^24217#549\(343\)\(.......\)/ /0\115\2/
rule 12 /^24217#549\(345\)\(.......\)/ /0\115\2/
rule 13 /^24217#549\(348\)\(.......\)/ /0\115\2/
rule 14 /^24217#549\(351\)\(.......\)/ /0\115\2/
rule 15 /^24217#549\(353\)\(.......\)/ /0\115\2/
!
voice translation-rule 4
rule 1 /^24217#549\(358\)\(.......\)/ /0\115\2/
rule 2 /^24217#549\(362\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(364\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(370\)\(.......\)/ /0\115\2/
rule 5 /^24217#549\(376\)\(.......\)/ /0\115\2/
rule 6 /^24217#549\(379\)\(.......\)/ /0\115\2/
rule 7 /^24217#549\(380\)\(.......\)/ /0\115\2/
rule 8 /^24217#549\(381\)\(.......\)/ /0\115\2/
rule 9 /^24217#549\(383\)\(.......\)/ /0\115\2/
rule 10 /^24217#549\(385\)\(.......\)/ /0\115\2/
rule 11 /^24217#549\(387\)\(.......\)/ /0\115\2/
rule 12 /^24217#549\(388\)\(.......\)/ /0\115\2/
rule 13 /^24217#549\(....\)\(......\)/ /0\115\2/
rule 14 /^24217#549\(264\)\(.......\)/ /0\115\2/
!

voice translation-profile global1
translate called 1
!
voice translation-profile global2
translate called 2
!
voice translation-profile global3
translate called 3
!
voice translation-profile global4
translate called 4
!

voice-port 1:16
translation-profile outgoing global1

!

dial-peer voice 3 voip
translation-profile outgoing global1
session protocol sipv2
session target ipv4:XXX.XXX.XXX.XXX
session transport udp
!
dial-peer voice 30 pots
translation-profile outgoing global1
port 1:16
!

Any idea how to implement all of this translation-rule please?

Thank You so Much,

2 REPLIES 2
Highlighted
Beginner

Hi Abel,

Hi Abel,

You can only apply one voice translation-rule per profile in one direction under a voice-port. However, it is possible to configure more than 15 voice translation-rule on cisco IOS once you upgrade to 15.x.

I presume you are using cisco ios 12.4x currently. You can check all IOS for AS5300 at below link:

https://software.cisco.com/download/release.html?mdfid=279677868&flowid=77807&softwareid=280805680&release=15.1.4M10&relind=AVAILABLE&rellifecycle=MD&reltype=latest

Regards,

Kunal

Cisco Employee

Hi Abel,

Hi Abel,

I think you can also check if you can shrink that as well like:

I see that you have ex:

rule 2 /^24217#549\(351\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(379\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(370\)\(.......\)/ /0\115\2/

24217#549\(3  that is staying the same

And:

rule 2 /^24217#549\(280\)\(.......\)/ /0\115\2/
rule 3 /^24217#549\(291\)\(.......\)/ /0\115\2/
rule 4 /^24217#549\(294\)\(.......\)/ /0\115\2/
rule 5 /^24217#549\(297\)\(.......\)/ /0\115\2/
rule 6 /^24217#549\(298\)\(.......\)/ /0\115\2/
rule 7 /^24217#549\(299\)\(.......\)/ /0\115\2/

24217#549\(2 - is staying the same. Just last 2 digits in this section are changing

and all of them you translate to 0115.......

It would significantly shrink the rules.

Ex:

voice translation-rule 1

rule 1 /^24217#54911\(........\)/ /15\1/

rule 2 /^24217#549\(3..\)\(.......\)/ /0\115\2/

rule 3 /^24217#549\(2..\)\(.......\)/ /0\115\2/

rule 4 /^24217#549\(....\)\(......\)/ /0\115\2/

Also, you can use reject-rules in case if something specific (by prefix) you need to reject.

Hope this helps!

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here