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

VOIP dial peer won't strip digits

Xian Li
Level 1
Level 1

Hi,

I have a voip dial peer won't strip called digits. For example, I want to keep the last 4 digits and strip any digits in front. Lets say the incoming number is 12345678 as a example, and I want the voip dial peer 12 to strip 1234 and only keep 5678. Here is the configuration:

voice translation-rule 1
rule 1 /^.*\(....\)$/ /\1/

 

voice translation-profile sip-incoming
translate called 1

 

dial-peer voice 12 voip
translation-profile outgoing sip-incoming
destination-pattern 12345678
session target call-manager-ip
voice-class codec 1

 

And then I make a test call on 12345678 from outside, I can see the call hits the my CUBE router and voip dial peer 12, but the called number after matching the dial peer becomes empty. Here is the debug voip dialpeer inout:

Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=12345678, Called Number=12345678, Peer Info Type=DIALPEER_INFO_SPEECH
Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=12345678
Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
dialstring=12345678, saf_enabled=1, saf_dndb_lookup=1, dp_result=0
Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=12
2: Dial-peer Tag=10
Oct 23 05:14:44.581: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=XXXXXXXX, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH

 

Any idea why?

 

Thank you

7 Replies 7

Jaime Valencia
Cisco Employee
Cisco Employee

If you're sending the call to CUCM, why not just set the significant digits to 4?

HTH

java

if this helps, please rate