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. And see here for current known issues.

New Member

Help building translations rule

I am trying to fix a configuration on CME 4. I inherited a network at a non-profit using donated gear. We need to have our toll free out pulsed on all calls except calls to 911, calls to 911 need to out pulse the main 424 number. Our extensions start with 7, DIDs have NPA of 424. Here are the translation rules, and dial peer configurations. 

 

voice translation-rule 1
 rule 1 /^715$/ /4241234567/
 rule 2 /^7..$/ /8771234567/
!
voice translation-rule 2
 rule 1 /^911$/ /911/
 rule 2 /^9\(.......\)$/ /1424\1/
 rule 3 /^9\(..........\)$/ /1\1/
 rule 4 /^9\(.*\)/ /\1/

voice translation-profile PSTN_Incoming
 translate called 5
!
voice translation-profile PSTN_Outgoing
 translate calling 1
 translate called 2


dial-peer voice 10 voip
 description incoming calls from SIP trunk
 translation-profile incoming PSTN_Incoming
 voice-class codec 1
 session protocol sipv2
 session target sip-server
 incoming called-number .%
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 201 voip
 translation-profile outgoing PSTN_Outgoing
 destination-pattern 9T
 voice-class codec 1
 voice-class sip dtmf-relay force rtp-nte
 session protocol sipv2
 session target sip-server
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 202 voip
 translation-profile outgoing PSTN_Outgoing
 destination-pattern 9[2-9]..[2-9]......
 voice-class codec 1
 voice-class sip dtmf-relay force rtp-nte
 session protocol sipv2
 session target sip-server
 dtmf-relay rtp-nte
 no vad
!
dial-peer voice 203 voip
 translation-profile outgoing PSTN_Outgoing
 destination-pattern 9[0-1][2-9]..[2-9]......
 voice-class codec 1
 voice-class sip dtmf-relay force rtp-nte
 session protocol sipv2
 session target sip-server
 dtmf-relay rtp-nte
 no vad

 

Debug of a test call to 911

 

Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_translate_internal: number=706 type=unknown plan=unknown numbertype=calling
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_match: No match; number=706 rule precedence=1
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_match_internal: Matched with rule 2 in ruleset 1
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_match: No match; number=706 rule precedence=1
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_match_internal: Matched with rule 2 in ruleset 1
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/regxrule_match: No match; number=706 rule precedence=1
Nov  5 23:36:15.875: //-1/5ABCFBD0957E/RXRULE/sed_subst: Successful substitution; pattern=706 matchPattern=^7.. replacePattern=8771234567 replaced pattern=8771234567
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_translate_internal: xlt_number=8771234567 xlt_type=unknown xlt_plan=unknown
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_translate_internal: number=911 type=unknown plan=unknown numbertype=called
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
Nov  5 23:36:15.879: //-1/5ABCFBD0957E/RXRULE/sed_subst: Successful substitution; pattern=911 matchPattern=^911$ replacePattern=911 replaced pattern=911

 

Any help would be appreciated

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

If you want a different

If you want a different calling number only for calls made to 911, why don't you create a separate dial-peer for 911 and apply the translation profile there for the calling number?

2 REPLIES
Cisco Employee

If you want a different

If you want a different calling number only for calls made to 911, why don't you create a separate dial-peer for 911 and apply the translation profile there for the calling number?

ask your voip provider what

ask your voip provider what should be calling and called numbers to make succesful outgoing call.

and make

clea logg

deb ccsip mess

make call

und all

sh logg

 

60
Views
0
Helpful
2
Replies
CreatePlease login to create content