cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2854
Views
0
Helpful
10
Replies

Voice Translation Rules

SKasper1975
Level 1
Level 1

Hello,

i have an problem with voice translation rules

incoming and outgoing calls work but on the the phone and in the debug isdn q931 the calling party number is shown without the 0

here the debug:

001430: Feb 18 19:52:44.301: ISDN BR0/1/0 Q931: RX <- SETUP pd = 8  callref = 0x01
        Sending Complete
        Bearer Capability i = 0x8090A3
                Standard = CCITT
                Transfer Capability = Speech
                Transfer Mode = Circuit
                Transfer Rate = 64 kbit/s
        Channel ID i = 0x89
                Exclusive, B1
        Calling Party Number i = 0x2183, '1751896976'
                Plan:ISDN, Type:National
        Called Party Number i = 0xC1, '5480080'
                Plan:ISDN, Type:Subscriber(local)
        High Layer Compat i = 0x9181
001431: Feb 18 19:52:44.349: ISDN BR0/1/0 Q931: TX -> CALL_PROC pd = 8  callref = 0x81
        Channel ID i = 0x89
                Exclusive, B1
001432: Feb 18 19:52:44.365: ISDN BR0/1/0 Q931: TX -> ALERTING pd = 8  callref = 0x81
        Progress Ind i = 0x8188 - In-band info or appropriate now available
001433: Feb 18 19:52:54.233: ISDN BR0/1/0 Q931: RX <- DISCONNECT pd = 8  callref = 0x01
        Cause i = 0x8090 - Normal call clearing
001434: Feb 18 19:52:54.233: ISDN BR0/1/0 Q931: TX -> RELEASE pd = 8  callref = 0x81
        Cause i = 0x8090 - Normal call clearing
001435: Feb 18 19:52:54.321: ISDN BR0/1/0 Q931: RX <- RELEASE_COMP pd = 8  callref = 0x01

here my rules and the dial peers:

voice translation-rule 3
rule 1 /\(^.+\)/ /00\1/ type national national
rule 2 /\(^.+\)/ /000\1/ type international international
rule 3 /\(^.+\)/ /0\1/ type any subscriber
!
voice translation-rule 4
rule 2 /^5480080/ //
rule 3 /^548008/ //
rule 15 // //
!
voice translation-rule 5
rule 1 /.*/ /5480080/ type any subscriber
!
voice translation-rule 6
rule 1 /^0/ /\1/
!
voice translation-rule 30
rule 1 /^.+/ /00/
!
voice translation-rule 2000
rule 1 /54800866/ /66/
!
voice translation-rule 2001
!
voice translation-rule 2002
rule 1 /^7/ //
!
!
voice translation-profile PRI-AMT-OUT
translate calling 5
translate called 6
!
voice translation-profile PROFILE_ALL_BRI
translate calling 4
!
voice translation-profile Profl
!
voice translation-profile VM_Profile
translate called 2000
!
voice translation-profile XFER_TO_VM_PROFILE
translate redirect-called 2002

dial-peer voice 1 pots
description ** CCA Analog Fax **
translation-profile incoming PROFILE_ALL_BRI
destination-pattern 54800822
port 0/0/0
no sip-register
!
dial-peer voice 2 pots
description ** CCA Analog Fax **
port 0/0/1
no sip-register
!
dial-peer voice 3 pots
description ** CCA Analog Fax **
port 0/0/2
no sip-register
!
dial-peer voice 4 pots
description ** CCA Analog Fax **
port 0/0/3
no sip-register
!
dial-peer voice 5 pots
description ** MOH Port **
destination-pattern ABC
port 0/4/0
no sip-register
!
dial-peer voice 50 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number .%
direct-inward-dial
port 0/1/0
!
dial-peer voice 100 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number .%
direct-inward-dial
port 0/2/0
!
dial-peer voice 101 pots
description ** incoming dial peer **
incoming called-number .%
direct-inward-dial
port 0/2/1
!
dial-peer voice 2000 voip
description ** cue voicemail pilot number **
translation-profile outgoing XFER_TO_VM_PROFILE
destination-pattern 66
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
voice-class sip outbound-proxy ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2001 voip
description ** cue auto attendant number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 81
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
voice-class sip outbound-proxy ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2012 voip
description ** cue prompt manager number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 80
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
voice-class sip outbound-proxy ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 53 pots
description ** outgoing dial peer **
translation-profile outgoing PRI-AMT-OUT
preference 1
destination-pattern 0T
progress_ind alert enable 8
port 0/1/0
forward-digits all
no sip-register
!
dial-peer voice 54 pots
description ** outgoing dial peer **
translation-profile outgoing PRI-AMT-OUT
preference 2
destination-pattern 0T
progress_ind alert enable 8
port 0/1/1
forward-digits all
no sip-register
!
dial-peer voice 51 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number .%
direct-inward-dial
port 0/1/1
!
dial-peer voice 55 pots
description ** outgoing dial peer **
translation-profile outgoing PRI-AMT-OUT
preference 3
destination-pattern 0T
progress_ind alert enable 8
port 0/2/0
forward-digits all
no sip-register
!
dial-peer voice 2006 voip
description ** cue auto attendant2 number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 82
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
voice-class sip outbound-proxy ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2002 voip
description ** cue voicemail PSTN number **
translation-profile outgoing VM_Profile
destination-pattern 54800866$
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
voice-class sip outbound-proxy ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad

i hope anybody can help me.

2 Accepted Solutions

Accepted Solutions

The translation rules should add the 0.  We might need a debug dialpeer command.

debug voip dialpeer inout

Can you post that output?

View solution in original post

Can you add an extra dial-peer?

dial-peer voice 5000 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number 5480080
direct-inward-dial
port 0/1/0

View solution in original post

10 Replies 10

Steven Smith
Level 7
Level 7

I assume you are trying to add a 0 with voice translation rule 3.  But, I don't see rule 3 applied anywhere.

On incoming calls, I see...

dial-peer voice 50 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number .%
direct-inward-dial
port 0/1/0

Which looks for...

translation-profile incoming PROFILE_ALL_BRI

That does...

voice translation-profile PROFILE_ALL_BRI
translate calling 4

I think what you need to do to fix this...

config t

voice translation-profile PROFILE_ALL_BRI

translate calling 3

sorry my english is bad. im a german guy.

i work remote on the uc so i can't see the display on the phone i called.

the debug shows the calling party number already without the 0 on the beginning.

There is a difference between debug and the number on  the display?

It may be that the display is consistent with the  number 0?

The debug shows no 0 on the call.  I assume the phone shows the same, no 0.  To fix this, try this.

config t

voice translation-profile PROFILE_ALL_BRI

translate calling 3



i tried this but no changes.

number screens without 0

The translation rules should add the 0.  We might need a debug dialpeer command.

debug voip dialpeer inout

Can you post that output?

here the debug:

001865: Feb 18 21:07:16.421: //-1/6D582FB38F8A/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=20008
001866: Feb 18 21:07:16.429: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001867: Feb 18 21:07:16.429: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001868: Feb 18 21:07:16.429: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001869: Feb 18 21:07:16.429: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=001751896976, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
001870: Feb 18 21:07:16.429: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001871: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001872: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001873: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001874: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=001751896976, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
001875: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001876: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001877: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001878: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001879: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=001751896976, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
001880: Feb 18 21:07:16.433: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001881: Feb 18 21:07:16.437: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001882: Feb 18 21:07:16.437: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001883: Feb 18 21:07:16.437: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001884: Feb 18 21:07:16.437: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=001751896976, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
001885: Feb 18 21:07:16.437: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001886: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=5480080, Peer Info Type=DIALPEER_INFO_SPEECH
001887: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=5480080
001888: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001889: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
001890: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=20014
001891: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001892: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001893: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001894: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
001895: Feb 18 21:07:16.465: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001896: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
001897: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976
001898: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001899: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
001900: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=53
     2: Dial-peer Tag=54
     3: Dial-peer Tag=55
001901: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=11, Peer Info Type=DIALPEER_INFO_SPEECH
001902: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=11
001903: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
001904: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
001905: Feb 18 21:07:16.469: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=20002
001906: Feb 18 21:07:19.717: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=11$, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
001907: Feb 18 21:07:19.721: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
001908: Feb 18 21:07:19.721: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
001909: Feb 18 21:07:19.721: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=14$, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
001910: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
001911: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
001912: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=13$, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
001913: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
001914: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
001915: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=12$, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
001916: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
001917: Feb 18 21:07:19.725: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
001918: Feb 18 21:07:19.757: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
001919: Feb 18 21:07:19.757: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
001920: Feb 18 21:07:19.757: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1

002159: Feb 18 21:10:28.121: %ISDN-6-CONNECT: Interface BRI0/1/0:1 is now connected to 1751896976 N/A
002160: Feb 18 21:10:39.213: %ISDN-6-DISCONNECT: Interface BRI0/1/0:1  disconnected from 1751896976 , call lasted 11 seconds
002161: Feb 18 21:10:39.237: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=81, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
002162: Feb 18 21:10:39.237: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=2001
002163: Feb 18 21:10:39.237: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
002164: Feb 18 21:10:39.253: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
002165: Feb 18 21:10:39.253: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
002166: Feb 18 21:10:39.253: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1

Can you add an extra dial-peer?

dial-peer voice 5000 pots
description ** incoming dial peer **
translation-profile incoming PROFILE_ALL_BRI
incoming called-number 5480080
direct-inward-dial
port 0/1/0

i made it.

in the debug screens the number right.

003330: Feb 18 21:42:22.577: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=001751896976, Peer Info Type=DIALPEER_INFO_SPEECH
003331: Feb 18 21:42:22.577: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=001751896976

Called Number=001751896976

i think the problem is fixed

So, the problem was it was matching an outbound dial-peer on an inbound call.  So, there is a bit more you need to do.

You need to add other dialpeers for the other ports that you have.

You need to add other dialpeers for the other numbers that you have. 

SKasper1975
Level 1
Level 1

Thanks for help.

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: