Voice translation rule

Unanswered Question
Feb 4th, 2007

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
thisisshanky Sun, 02/04/2007 - 21:43

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.

paulhardy Mon, 02/05/2007 - 15:27

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

Paolo Bevilacqua Mon, 02/05/2007 - 15:55

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

paulhardy Mon, 02/05/2007 - 17:52

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

Paolo Bevilacqua Tue, 02/06/2007 - 03:56

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.

paulhardy Tue, 02/06/2007 - 20:02

Does anybody here have any ideas on the tcl script required??

Paul

Paolo Bevilacqua Wed, 02/07/2007 - 03:17

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.

paulhardy Wed, 02/07/2007 - 14:20

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

Actions

This Discussion