cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
856
Views
0
Helpful
7
Replies

CME translation-rule help

hi all,

looking for some best practice guidence with translation rules on a 2911 running CME 8.6

here is the scenario

- CISCO2911

- running CME 8.6

- VWIC2-2MFT-T1/E1 card connected to 30 channel E1/PRI ISDN30

- client has a 50 number DID range point to the ISDN30

- client wants each DID to be sent to each corresponding ephone-dn e.g

the CME users, phones, exts and outbound calling are all working perfect

my goal is i am trying to find the best way to interpret the incoming DID calls using translation rules currently i am doing the following

NOTE: Number of Digits presented down the ISDN is 6

!

voice translation-rule 10

rule 1 /^902649/ /7849/

!

voice translation-profile INBOUND_DID

translate called 10

!

!

dial-peer voice 2 pots

description ** E1 Incoming Dial Peer **

translation-profile incoming INBOUND_DID

incoming called-number .T

direct-inward-dial

port 0/0/0:15

!

then on the user

!

ephone-dn 1 dual-line

number 7800 secondary 0207XXXXXXX       (using XXX to hide real number)

!

ephone 1

button 1:1

!

now what this does is says translate the 6 recieved digits from the ISDN and translate them to ext 7849 in this example and this is fine and it works and the users phone ext rings perfect.

however by problem is you can only have up to 15 rules per translation rule but i have 50 DID numbers so this exceeds the aloud limit

i know using regular expressions there must be a better way of interpreting the range

if anyone could give me some pointers they would be greatly appreciated

thanks in advance.

1 Accepted Solution

Accepted Solutions

1- For num-exp , you have to check that the last two digits which are change . If you are sure use the below command

num exp 6.. 78..      Please find the below link for the num-exp

http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/dial_peer/dp_confg.html

2-For the translation rule explansion the DID number will be  transformed using the last two digit + 78  to the ext which consists of  digits. For example   DID 902649  will match the translation rule then will match only the last digit which are 49 and will be add to 78 .The output will be 7849 which is your ext , after that the DID no will be directly to your ext.

Thank you

please rate all posts , if this help you

View solution in original post

7 Replies 7

bernhardczapp
Level 4
Level 4

voice translation-rule 10

rule 1 /^9026/ /78/

Would be the easiest translation

Sent from Cisco Technical Support Android App

thanks for taking the time to respond to confirm my understanding

rule 1 /^9026/ /78/

means match 9026XX any 2 digits and translate them to 78XX any 2 digits ?

if this is the case how will it know which 2 digits or in this case which ext to send it too

-----

also one more question

do i require the use of "no-reg primary" under the ephone-dn e.g

!

ephone-dn 1 dual-line

number 7800 secondary 0207XXXXXXX  no-reg primary

!

i have read that this means it defines the number and doesn't register but i do not understand this statement if someone could clarify that would helpful

thanks again.

For NO-Reg , i can give you an example

1- When i get DID numbers from ITSP  where as the ITSP uses sip for integration . After the integration i need to use the DID as secondary number and not be registered on  the ITSP , so i use the ITSP.

2- you can use this command , when i create the MWI (message waiting indicator ) DN . I put these command to not register on the call manager.

Thank you

please rate if this will help

islam.kamal
Level 10
Level 10

For this issue you can use

1-num-exp , it will act as DID conversion between your DID and your ext

num-exp 649 7849

902649

902649

902649

2- if you have sequence DID  what i need  

902649

902650

and so on

rule 1 /.*\(..)/ /78\1/

means you will map last two digits to the digit . For example

902650  will map to 7850

902651  will map to 7851

and so on  but you must check your ext (you have to check the DID numbers which you have from your ITSP and you will build your ext based .you will use 78xx  (XX will represent the last two digits).

Thank you

please rate

islam,

thank you for taking the time to respond to my post

i am having a hardtime understanding your post so to clarify

my understanding is that i have two options to resolve my problem

1. use - num-exp

e.g num-exp 902649 7849 (do this for each ext i have in the range)

2. if i have a range of DID's like i do use a translation rule 

e.g rule 1 /.*\(..)/ /78\1/

which will map last 2 digits to ext

-- can you break down the explanation for the regular expression or refer me to a good resource so i can read up and    understand as i have limited knowledge on this subject and currently option 1 seems like the easiest route

many thanks,

1- For num-exp , you have to check that the last two digits which are change . If you are sure use the below command

num exp 6.. 78..      Please find the below link for the num-exp

http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/dial_peer/dp_confg.html

2-For the translation rule explansion the DID number will be  transformed using the last two digit + 78  to the ext which consists of  digits. For example   DID 902649  will match the translation rule then will match only the last digit which are 49 and will be add to 78 .The output will be 7849 which is your ext , after that the DID no will be directly to your ext.

Thank you

please rate all posts , if this help you