09-19-2018 01:59 AM - edited 03-17-2019 01:30 PM
Can anyone advise why the config below fails to block a specific mobile number calling into a DID number via the a SIP trunk which terminates on a cisco cube;
voice translation-rule 30
rule 1 reject /07415618475/
voice translation-profile Block-incoming
translate calling 30
dial-peer voice 502 voip
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
incoming called-number 0207670....
Debug attached
09-19-2018 05:45 AM
Post your configuration.
09-19-2018 08:15 AM
Config below for translations/dial-peers ...Thanks
voice translation-rule 10
rule 1 /^02076704\(...\)$/ /64\1/
rule 2 /^02076705\(...\)$/ /05\1/
rule 3 /^0203948\(....\)$/ /8\1/
rule 4 /^02035495\(...\)$/ /65\1/
rule 5 /^0207837\(....\)$/ /2\1/
!
voice translation-rule 11
rule 1 /^\(.....\)$/ /+442076794466/
!
voice translation-rule 19
rule 1 /^9\(..........\)/ /\1/
rule 2 /^900\(.*\)$/ /00\1/
!
voice translation-rule 25
rule 1 // /9/
!
voice translation-rule 30
rule 1 reject /07415618475/
!
!
voice translation-profile Block-incoming
translate calling 30
!
voice translation-profile INTL-OUT-0/0/0
translate calling 11
translate called 19
!
voice translation-profile PSTN-IN-0/0/0
translate calling 25
translate called 10
!
voice translation-profile PSTN-INTEST-0/0/0
translate calling 25
translate called 10
!
voice translation-profile PSTN-OUT-0/0/0
translate called 19
dial-peer voice 100 voip
description *** inbound LAN side dial-peer ***
session protocol sipv2
incoming called-number 902076704[6-9][0-9][0-9]
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 101 voip
description *** outbound WAN side dial-peer ***
translation-profile outgoing PSTN-OUT-0/0/0
destination-pattern 9T
session protocol sipv2
session target ipv4:88.215.55.5
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay rtp-nte
dtmf-interworking rtp-nte
clid restrict
!
dial-peer voice 102 voip
description *** outbound WAN side dial-peer ***
translation-profile outgoing PSTN-OUT-0/0/0
preference 1
destination-pattern 9T
session protocol sipv2
session target ipv4:88.215.63.7
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay rtp-nte
dtmf-interworking rtp-nte
clid restrict
!
dial-peer voice 103 voip
description *** inbound LAN side dial-peer ***
session protocol sipv2
incoming called-number 9020767057[0-4][0-9]
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 200 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 02076704[6-9][0-9][0-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 201 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 020767057[0-4][0-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 202 voip
description *** inbound WAN side dial-peer ***
session protocol sipv2
incoming called-number 02076704[6-9][0-9][0-9]
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay sip-notify
dtmf-interworking rtp-nte
!
dial-peer voice 203 voip
description *** inbound WAN side dial-peer ***
session protocol sipv2
incoming called-number 020767057[0-4][0-9]
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay sip-notify
dtmf-interworking rtp-nte
!
dial-peer voice 204 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
preference 1
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 205 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
preference 1
destination-pattern 020767057[0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 206 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
preference 2
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.12
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 207 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
preference 2
destination-pattern 020767057[0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.12
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 208 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.6.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 209 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 020767057[0-4][0-9]
session protocol sipv2
session target ipv4:10.112.6.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 1000 voip
description *** test inbound LAN side dial-peer ***
session protocol sipv2
incoming called-number 90203948998[0-9]
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 1002 voip
description *** test outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 0203948998[0-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 1003 voip
description *** test inbound WAN side dial-peer ***
session protocol sipv2
incoming called-number 0203948998[0-9]
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay sip-notify
dtmf-interworking rtp-nte
!
dial-peer voice 1010 voip
description *** outbound WAN side dial-peer for international ***
translation-profile outgoing INTL-OUT-0/0/0
destination-pattern 900[1-9]T
session protocol sipv2
session target ipv4:88.215.55.5
voice-class codec 3
voice-class sip asserted-id pai
voice-class sip profiles 1
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay rtp-nte
dtmf-interworking rtp-nte
!
dial-peer voice 104 voip
description *** inbound LAN side dial-peer BT Circuit***
session protocol sipv2
incoming called-number 902035495[0-9][0-9][0-9]
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 300 voip
description *** outbound LAN side dial-peer BT Circuit***
translation-profile outgoing PSTN-IN-0/0/0
preference 3
destination-pattern 02035495[0-9][0-9][0-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 302 voip
description *** inbound WAN side dial-peer BT Circuit ***
session protocol sipv2
incoming called-number 02035495[0-9][0-9][0-9]
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay sip-notify
dtmf-interworking rtp-nte
!
dial-peer voice 304 voip
description *** outbound LAN side dial-peer BT Circuit ***
translation-profile outgoing PSTN-IN-0/0/0
preference 1
destination-pattern 02035495[0-9][0-9][0-9]
session protocol sipv2
session target ipv4:10.112.5.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 306 voip
description *** outbound LAN side dial-peer BT Circuit ***
translation-profile outgoing PSTN-IN-0/0/0
preference 2
destination-pattern 02035495[0-9][0-9[0-9]
session protocol sipv2
session target ipv4:10.112.5.12
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 308 voip
description *** outbound LAN side dial-peer BT Circuit ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 02035495[0-9][0-9[0-9]
session protocol sipv2
session target ipv4:10.112.6.11
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 401 voip
description *** BT Line inbound WAN side dial-peer ***
session protocol sipv2
incoming called-number 0207837[4-8][3-8][5-8][8-9]
voice-class codec 3
voice-class sip bind control source-interface GigabitEthernet0/0/1
voice-class sip bind media source-interface GigabitEthernet0/0/1
dtmf-relay sip-notify
dtmf-interworking rtp-nte
!
dial-peer voice 403 voip
description *** outbound LAN side dial-peer ***
translation-profile outgoing PSTN-IN-0/0/0
destination-pattern 0207837[4-8][3-8][5-8][8-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 402 voip
description *** BT Line inbound LAN side dial-peer ***
session protocol sipv2
incoming called-number 0207837[4-8][3-8][5-8][8-9]
voice-class codec 3
dtmf-relay rtp-nte
!
dial-peer voice 502 voip
translation-profile incoming Block-incoming
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
incoming called-number 02076704627
09-20-2018 06:10 AM
Apply these:
translation-profile incoming Block-incoming
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
to dial-peers 200, 204,206,208
09-20-2018 06:24 AM
Added to dial-peer suggested and still no call blocking invoked and ideas?
dial-peer voice 200 voip
description *** outbound LAN side dial-peer ***
translation-profile incoming Block-incoming
translation-profile outgoing PSTN-IN-0/0/0
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
destination-pattern 02076704[6-9][0-9][0-9]
session protocol sipv2
session target ipv4:10.112.6.10
voice-class codec 3
dtmf-relay rtp-nte
dial-peer voice 204 voip
description *** outbound LAN side dial-peer ***
translation-profile incoming Block-incoming
translation-profile outgoing PSTN-IN-0/0/0
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
preference 1
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.11
voice-class codec 3
dtmf-relay rtp-nte
dial-peer voice 206 voip
description *** outbound LAN side dial-peer ***
translation-profile incoming Block-incoming
translation-profile outgoing PSTN-IN-0/0/0
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
preference 2
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.5.12
voice-class codec 3
dtmf-relay rtp-nte
dial-peer voice 208 voip
description *** outbound LAN side dial-peer ***
translation-profile incoming Block-incoming
translation-profile outgoing PSTN-IN-0/0/0
call-block translation-profile incoming Block-incoming
call-block disconnect-cause incoming call-reject
destination-pattern 02076704[6-9][0-4][0-9]
session protocol sipv2
session target ipv4:10.112.6.11
voice-class codec 3
dtmf-relay rtp-nte
regards
Rich
09-20-2018 06:32 AM
09-20-2018 06:48 AM
Are these captured in the logs in the above thread or are their any new debugs you would like me to capture?
cisco-ani=sip:07415618475@88.215.55.5;user=phone - Matches incoming calling number
and dial-peers have all call block translations etc..
09-20-2018 11:52 AM
Could you please share the output of sh dialplan number <intended number>
09-20-2018 01:03 PM
09-21-2018 01:42 AM
09-21-2018 02:57 AM
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