call manager express voice translation rules help !!!!

Unanswered Question
Aug 7th, 2008
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Thu, 08/07/2008 - 01:40
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

cmelbourne Thu, 08/07/2008 - 02:39
User Badges:

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


Marwan ALshawi Thu, 08/07/2008 - 03:08
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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


cmelbourne Thu, 08/07/2008 - 03:01
User Badges:

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?

Marwan ALshawi Thu, 08/07/2008 - 03:40
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

cmelbourne Thu, 08/07/2008 - 03:55
User Badges:

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?


Marwan ALshawi Thu, 08/07/2008 - 04:28
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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


Marwan ALshawi Thu, 08/07/2008 - 04:48
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

cmelbourne Thu, 08/07/2008 - 04:48
User Badges:

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?

Marwan ALshawi Thu, 08/07/2008 - 04:51
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

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

Marwan ALshawi Thu, 08/07/2008 - 16:39
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

did u try it ?

cmelbourne Fri, 08/08/2008 - 01:20
User Badges:

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

dezoconnor Fri, 08/08/2008 - 02:04
User Badges:
  • Silver, 250 points or more

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


Marwan ALshawi Fri, 08/08/2008 - 02:17
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

THIS IS VOIP DIAL PEER NOT POTS


what u said apply on POTS dial PEERs



unless he use forward digit 6

while the six digits will count from right to left


6 for example u can put any number u want


Marwan ALshawi Fri, 08/08/2008 - 02:09
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

i am glad its working :)


for that case do the following translation

make the profile for called number then

apply it on the outgoing direction


the translation rule as:

voice translation-rule 1

rule 1 /9\(01......\)/ /\1/


while u can add or remove from the DOTs based on the number of digits u have


this is the verification of the rule


Router#test voice translation-rule 1 901234567

Matched with rule 1

Original number: 901234567 Translated number: 01234567


good luck


please, dont forget rate the helpful pots





Actions

This Discussion