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

translation rule help

rwawrig
Beginner
Beginner

Hi,

I need to translate the incoming calling number regarding the number length.

If the number have 8 or 9 digits, I need a 0 in front. If the length is less or bigger, the number should be unchanged.

I read doku, tried some expressions, but no success. Any idea how to do it ?

Thx

4 REPLIES 4

jasyoung
Rising star
Rising star

voice translation-rule 1

rule 1 /^\(........\)$/ /0\1/

rule 2 /^\(.........\)$/ /0\1/

and ...is working!!! Thanks a lot :)

The voice translation rules are so cool comparing with simple translation rules I used until now.

Thanks again

cheers

That's fine, but it cannot be used with a MGCP gateway, I suppose?

Frantisek Opravil

Try perhaps translation patterns in CCM.

There instead of dots for single digits you should use X. And in general translation patterns behave a bit differently, but I guess you'll get the point.

Getting Started

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: