02-04-2007 08:50 PM - last edited on 03-25-2019 07:33 PM by ciscomoderator
Hi
Fisrtly can you confirm that this translation will work and secondly is there a short cut so i can do all 4 rules in a single rule.
Cheers
Paul
02-04-2007 09:43 PM
Paul,
There are different ways of working out translation rules. If you can explain what you are trying to translate from and to, may be we can help.
Sankar.
02-05-2007 03:27 PM
Here are the translation rules i am looking to do
!
voice translation-rule 10000
rule 1 /^10\([0-4]..\)/ /0211114\1/
rule 2 /^12\(0..\)/ /0222224\1/
rule 3 /^12[1-3]\(..\)/ /02333322\1/
All rules are translating 5 digit numbering to PSTN numbers
rule 1 has to translate extensions 10000 -> 10499 through to 0211114000 -> 0211114499
rule 2 has to translate extensions 12000 -> 12099 through to 0222224000 -> 0222224099
rule 3 has to translate extensions 12100 -> 12399 through to 0233332200 -> 0233332499
I am pretty sure I have done rules 1 and 2 correctly. Rule 3 is the one I am concerned about. As you can see the numbers arent matching exactly. (ext 12399 -> 023333499) 1 becomes 2 and 2 beomes 3 and 3 becomes 4 in the third digit from the right.
Any help on this would be greatly appreciated.
Thanks
Paul
02-05-2007 03:55 PM
Hi Paul,
you are right, rule 3 wouldn't work if written as above. Here is the rewritten config, it takes 5 rules.
voice translation-rule 10000
rule 1 /^10\([0-4]..\)/ /0211114\1/
rule 2 /^12\(0..\)/ /0222224\1/
rule 3 /^121\(..\)/ /02333322\1/
rule 4 /^122\(..\)/ /02333323\1/
rule 5 /^123\(..\)/ /02333324\1/
And here the output from the very helpful command "test voice translation-rule"
ccme#test voice translation-rule 10000 12100
Matched with rule 3
Original number: 12100 Translated number: 0233332200
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
ccme#test voice translation-rule 10000 12297
Matched with rule 4
Original number: 12297 Translated number: 0233332397
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
ccme#test voice translation-rule 10000 12399
Matched with rule 5
Original number: 12399 Translated number: 0233332499
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
02-05-2007 05:52 PM
Thanks for the reply
I was afraid of that answer. Is there now way to get it into one line. The translations limitation is 15 rules per translations and I am hitting that on every translation i have. I need to linit the rules somehow. I have thousands of rules to create.
Any ideas.
Cheers
Paul
02-06-2007 03:56 AM
No, if the patterns are like you shown, I don't think you can make it with less rules.
One possibility would be using IVR TCL script to manipulate the numbers, of course it requires knowledge of that programming environment.
02-06-2007 08:02 PM
Does anybody here have any ideas on the tcl script required??
Paul
02-07-2007 03:17 AM
I was thinking something else about this problem. It is true that the number of rules withing a translation-rule is limited, but the number of dial-peers can be very high.
So, if you create multiple dial-peers matching different patterns of the possible numbers, you will be able to associate different translation-rules to them, and actually have more rules in place.
02-07-2007 02:20 PM
Thanks for that. I am already implemeting over 1 hundred dial peers each matching different translation rules. It is starting to get unitdy. The customer wants to keep 5 digit numbering plan and has hundreds of branches.
I am still looking or a more practical way forward if there is one.
But thanks again for all your suggestions.
Paul
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: