11-07-2014 12:34 PM - edited 03-17-2019 12:51 AM
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?
Solved! Go to Solution.
11-08-2014 07:51 AM
voice translation-rule 1
rule 1 /^2183412)/ /2/
voice translation-profile MyRULE
translate called 1
and then apply to desired dial peer.
11-08-2014 07:51 AM
voice translation-rule 1
rule 1 /^2183412)/ /2/
voice translation-profile MyRULE
translate called 1
and then apply to desired dial peer.
11-08-2014 02:20 PM
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 ?
11-08-2014 03:44 PM
Why dont you simply set the significant digits to 4 ?????
11-09-2014 04:22 AM
I fixed it.
I used rule 1 /^.*\(....\)/ /\1/, to set the significant 4 digits.
My appreciations
11-09-2014 04:28 AM
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/.
11-09-2014 03:33 PM
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
11-09-2014 04:26 AM
Also used this rule to strip all numbers but only the last 4 digits.
rule 1 /^.*\(....\)/ /\1/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide