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

Specific incoming Call Blocking on Cube

richardcowe7
Level 1
Level 1

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

 

 

10 Replies 10

Chris Deren
Hall of Fame
Hall of Fame

Post your configuration.

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

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

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

Have you checked with debugs if you are getting the correct ANI that you are trying to block from the IOS perspective ? Also, are you hitting the correct dial-peer(s) that has the call block ?

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..

Could you please share the output of sh dialplan number <intended number>

Are you matching correct dial-peers which have the block translations ? Grab the following -

debug voice ccapi inout
debug voip trans
debug ccsip mess

Hi Nipun,

 

New debugs attached as requested;

 

debug voice ccapi inout
debug voip trans
debug ccsip mess

 

Calling number - 07415618475

Called number - 020 7670 4627

 

regards

 

Rich

Resolved by adding translation-profile to incoming wan dial-peer.

 

 

 

many thanks for everyone's inputs

 

Rich