cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1249
Views
0
Helpful
16
Replies

call manager express voice translation rules help !!!!

cmelbourne
Level 1
Level 1

We have a cme on cisco 2811 router.

we need voice translation rules setup for 30 numbers.

the provider sends the full number into us so for example 016520547 for the main number and the example number of the main office phone is 2234. in cme it only allows a maximum of 15 rules in each voice translation, how do i setup around 35 or 40 rules as i cant see a wildcard to work with this. under the voice translation profile we can only assign a single translate called or calling and then in the dial-peer for the SIP trunk we can only use a single transation profile as well.

any ideas?

16 Replies 16

Marwan ALshawi
VIP Alumni
VIP Alumni

can u tell me what u want to achive exactly and with more detailed example

because we might solve it with diffrent wany not pnly translation-rul

thank you

hi,

basically we have a SIP trunk to a service provider (VOIP).

we have an IP Phone with an extension number of 2234. the DDI number for this for outgoing and incoming calls needs to be 016520547

this would be fine if it was only a few phones like this and we could then just make a rule like below

voice translation-rule 1

rule 1 \2234\ \016520547\

however if you do this then you can only have 15 or 16 rules in the voice translation rule itself and we have around 40 ip phones i think each with there own extension number 22xx and each with there own ddi number all starting with 0165205xx

do you know of any way we can do this.

the service provider carries the full ddi number into our system.

so if we use a rule for each ip phone that would be fine but it only allows 1-15 rules.

we only have a single dial-peer

see below details of config.

voice translation-rule 1

rule 1 /016520540/ /2234/ (this only allows 16 rules)

!

voice translation-rule 2

rule 1 /2234/ /016520540/ (this only allows 16 rules)

!

!

voice translation-profile ddi-map

translate called 1

!

voice translation-profile out-ddi

translate calling 2

dial-peer voice 200 voip

description SIP TRUNK

translation-profile incoming ddi-map

translation-profile outgoing out-ddi

service ses

max-conn 4

destination-pattern .T

session protocol sipv2

session target ipv4:8x.xx.xx.xx

session transport udp

dtmf-relay sip-notify rtp-nte

codec g711ulaw

clid network-provided

u can achive it in several ways

i have just tested the followinf for u

make number exapntion for incoming calls and a translation rul for out going calls that translate ur ip phon calling number to apear as DID

for example let say a call came to 016520533

will be chamged to 2233 and forwarded to that number

and if for example phon 2244 mad a call his number will apear as 016520544

the config as bellow

num-exp 0165205.. 22..

verification:

Router#show dialplan number 016520533

Macro Exp.: 2233

No match, result=-1

and do the following translation

and make a translation profile for CALING

and apply it to ur outgoing dial-peer

voice translation-rule 1

rule 1 /22\(..\)/ /0165205\1/

verfication:

Router#test voice translation-rule 1 2233

Matched with rule 1

Original number: 2233 Translated number: 016520533

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none

i think this will solve ur problem

if u have any more questions just post it here

good luck

please, if helpful rate

dual_line
Level 1
Level 1

Try using the command 'num-exp' from global configuration mode.

eg. num-exp 016520547 2234

Full information on this command can be found here:

http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_n1.html#wp1017713

Please rate post if this information is useful.

hi,

will give this a go.

do i need to take out all the voice translation rules now and do i need to assign the num-exp to a particular dial peer for outbound and inbound rules?

do the config i have sent u and mostly will work

and about num-exapantion

do it in global config mode

no in any dial peer

and u have to have default incomfing dial-peer

letssay voip dial peer with the SIP

config for ur company

dhould contain somthing like

destination-pattren [the DID]

incoming-called number .

the incoming called number witht he dot will match any incoming number[ called defualt incomin dial perr]

for example

dial-peer voice 200 voip

description SIP TRUNK

translation-profile outgoing out-ddi [ replace this outgoing with the one i sent u also outgoing ]

service ses

max-conn 4

incoming called-numer .

destination-pattern .T

session protocol sipv2

session target ipv4:8x.xx.xx.xx

session transport udp

dtmf-relay sip-notify rtp-nte

codec g711ulaw

clid network-provided

if u want u can use incoming translation profile for the 1 phon u had already but for all other phones do as the sent config

good luck

hi,

thanks but that example wont work

see below the extensions and ddi numbers

ext no. ddi no.

2234 016520540

2235 016520541

2236 016520542

etc....

can we not get rid of the voice translation rules and just use num-exp instead?

avoid the translation things now and try the following command on each DN number config it self

lets say ur DN 4 has the following:

ephone-dn 4 dual-line

number 2234 secondary 016520540 no-reg both

and let me know

good luck

be careful from any conflicting num-expantion or translation

this will creat a vitualt voice port for the seconday number

so will be useful for ur case

i mean the sondary number

hi

i will try this when the service provider has brought up the link again, they have took it down at the minute.

does the number 2234 secondary 016520540 no-reg both mean that the ip phone is 2234 and the ddi number is 016520540 without using any voice translation or num-exp commands?

this will associate a virtual port with that number with this DN and any ip phon use this DN will use this virtual port

so any call to the 2234 or 016520540 will go to that ip phon with that dn

did u try it ?

hi,

that worked perfectly.

i have a secondary dialtone which is 9 for an outside line but the VOIP Provider has said we need to strip this as the number they are getting from us is 901xxxxxxx

what is the voice translation rule to strip the 9 for outgoing calls and keep the rest of the number the same

Hi, I would say that you don't need to create a translation-pattern to strip the 9. You can do this on the outbound SIP dial-peer:

dial-peer voice 200 voip

description SIP TRUNK

translation-profile outgoing out-ddi

service ses

max-conn 4

incoming called-numer .

destination-pattern .T

session protocol sipv2

session target ipv4:8x.xx.xx.xx

On the destination-pattern use 9.T so whenever users dial 9 it will be matched and stripped.

HTH

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: