Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

SIP Dial-peer translation-rule

I am trying to build a Translation-rule for CUBE.

 

how do I create a rule for:

range 2183222030-9 Inbound CUBE to CUCM leg.

2183222030 is the company main number.

CUCM DIDs are 2...$

 

I would like if possible, if someone dial example 2193222034, the inbound dial-peer with destination-pattern 2... to pick up, then translate the last 2...$ into 2034. 

 

How do I write the RULE?

Or is it even possible?

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

voice translation-rule 1 rule

voice translation-rule 1
 rule 1 /^2183412)/ /2/

voice translation-profile MyRULE
 translate called 1

and then apply to desired dial peer.

7 REPLIES
Hall of Fame Super Silver

voice translation-rule 1 rule

voice translation-rule 1
 rule 1 /^2183412)/ /2/

voice translation-profile MyRULE
 translate called 1

and then apply to desired dial peer.

New Member

Thanks George,I hope I did

Thanks George,

I hope I did not make it sound like if someone calls 2183212030 to be forwarded to 2...$

 

I meant if:

range 2183222031-9 Inbound CUBE to CUCM leg. The inbound dial-peer with destination-pattern 2... to pick up, then translate the last 2...$ into 2034

 

Employees and their phone numbers:

Sierra 2183222031

Sam 2183222032

Bravo 2183222033

Jennifer 2183222034

 

Now if someone calls Jennifer's number 2183222034 from their cell phone,

I would like for it to directly ring Jennifer's phone, (extension 2034), same for Sam, Bravo, Sierra and so on.

 

Is this the same translation-rule ?

Cisco Employee

Why dont you simply set the

Why dont you simply set the significant digits to 4 ?????

HTH

java

if this helps, please rate

www.cisco.com/go/pdi
New Member

I fixed it.I used rule 1 /^.*

I fixed it.

I used rule 1 /^.*\(....\)/ /\1/, to set the significant 4 digits.

 

My appreciations


 

New Member

voice translation-rule 1 rule

voice translation-rule 1
 rule 1 /^2183412)/ /2/

voice translation-profile MyRULE
 translate called 1

and then apply to desired dial peer.

 

AND

 

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

New Member

Chris,I made a translation

Chris,

I made a translation-rule to strip all but the last 4 digits and applied it to the Incoming Dial-peer. It is working as expected.

voice translation-rule 2030
 rule 1 /^.*\(....\)/ /\1/
!
!
voice translation-profile CUBE2phones
 translate called 2030
 

The Inbound calls work fine with the translation-rule on the incoming dial-peer but the Outbound calls do not work (when the translation-rule is on the incoming dial-peer).

 

The Outbound dial-peer work Only when there is no translation rule on the incoming dial-peer.

 

Both the debug voice dialpeer inout and debug ccsip messages indicate that I am CUBE strips all digits and only send the last 4 digits to the PSTN.

 

Here is the LOG: What do I need to change please?

 

O-CUBE(config)#do sh run | be dial-p
dial-peer voice 10 voip
 description Inbound to CUBE from ITSP ffor all incoming calls
 translation-profile incoming CUBE2phones
 session protocol sipv2
 session transport udp
 incoming called-number .
 no vad
!
dial-peer voice 200 voip
 description Outbound to Vitelity[ITSP]
 destination-pattern 1[2-9]..[2-9]......
 session protocol sipv2
 session target ipv4:XX.XX.XX.XX [ITSP IP]
 session transport udp
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 300 voip

description Outbound to Vitelity[ITSP]
 destination-pattern [2-9]..[2-9]......
 session protocol sipv2
 session target ipv4:XX.XX.XX.XX [ITSP IP]
 session transport udp
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 15 voip
 description Outbound DP to CUCM for Inbound Calls for all Extensions2...
 destination-pattern 2...$
 session protocol sipv2
 session target ipv4:CUCM
 session transport udp
 dtmf-relay rtp-nte
 no vad

 

New Member

Also used this rule to strip

Also used this rule to strip all numbers but only the last 4 digits.

 

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

894
Views
0
Helpful
7
Replies