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

Dial-peer/Translation profile question

In my lab I have a CUCM 7.1.2 server with an H323 (HQ) gateway. This gateway is configured to send VOIP calls to the PSTN CME router for testing. The problem I'm having is when I dial 1+10-digits from a phone at HQ. The call is completing to the PSTN router when I don't think it should. I have a translation rule on the HQ router to strip the 9 from the dial string but the call is completing even when the translation profile is not applied in the dial peer.

voice translation-rule 1

rule 1 /\(^9\)\([2-9]..[2-9]......\)/ /\2/

rule 2 /\(^9\)\(1[2-9]..[2-9]......\)/ /\2/

rule 3 /^9911/ /911/


voice translation-profile CALLED_NUM
translate called 1

dial-peer voice 10 voip
translation-profile outgoing CALLED_NUM
destination-pattern 9..........
session target ipv4:10.1.1.10
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad

dial-peer voice 11 voip
destination-pattern 91..........
session target ipv4:10.1.1.10
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
I included my 10-digit dial-peer and my 1 + 10-digit dial-peer above. Now dial-peer 11 should match because it has the more exact match (2-digits) but the translation profile in dial-peer 10 is being applied to the outgoing dial string. If I were to dial 916175551212 with the above config, the called digits on the PSTN CME router will be "16175551212" and the call would be completed successfully. If I were to remove the translation profile from dial-peer 10 and redial, the called digits on the PSTN router become "916175551212" and the call fails.
So it seems like the translation profile in dial-peer 10 is being applied but why? What am I missing?
Thanks,
-mike
Everyone's tags (4)
1 REPLY
Community Member

Re: Dial-peer/Translation profile question

another way to write that rule is:

rule 2 /^91\([2-9]..[2-9]......\)/ /1\1/

also test the rule:

test voice translation-rule 1 18008675309

303
Views
0
Helpful
1
Replies
CreatePlease to create content