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

SIP Dial-peer translation-rule

Ventana.Hills
Level 1
Level 1

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

Chris Deren
Hall of Fame
Hall of Fame

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

voice translation-profile MyRULE
 translate called 1

and then apply to desired dial peer.

View solution in original post

7 Replies 7

Chris Deren
Hall of Fame
Hall of Fame

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

voice translation-profile MyRULE
 translate called 1

and then apply to desired dial peer.

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 ?

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

HTH

java

if this helps, please rate

I fixed it.

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

 

My appreciations


 

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/.
 

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

 

Ventana.Hills
Level 1
Level 1

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

 

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

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: