cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1291
Views
0
Helpful
4
Replies

Blocking numbers on a Cube

martynch1
Level 1
Level 1

I'm looking to block a couple of mobiles numbers when they hit our Cube as we are getting nuisance calls, I think it’s done by creating translation rules, I'm just unsure who to achieve this.

We already have translation rule for an outbound rule which is


voice translation-rule 1

rule 1 /^\([267-9]......\)$/ /01623\1/

voice translation-profile OutboundCalledPartyforShortDIAL

translate called 1

And this is applied to dial-peer 10

 

dial-peer voice 10 voip

description *** CUCM to CUBE (Inbound) ***

translation-profile incoming OutboundCalledPartyforShortDIAL

session protocol sipv2

session transport tcp

destination dpg 90

incoming uri via CUCM

voice-class sip bind control source-interface GigabitEthernet0/0/1

voice-class sip bind media source-interface GigabitEthernet0/0/1

dtmf-relay rtp-nte sip-kpml sip-notify

codec g711alaw

no vad

 

So I think I need to create another rule as follows:


voice translation-rule 2

rule 1 reject /0797XXXXXX1/

rule 1 reject /0797XXXXXX2/

voice translation-profile CALLBLOCK

translate calling 2

 

But this is where I come unstuck if I try and add this to dial-peer 10 it just replaces the rule, do I need to create another Dial peer like below, if so how do the calls hit this dial-peer, are they like ACL's and step down the dial-peers?

 

dial-peer voice 11 voip

description *** CUCM to CUBE (Inbound) ***

translation-profile incoming CALLBLOCK

session protocol sipv2

session transport tcp

destination dpg 90

incoming uri via CUCM

dtmf-relay rtp-nte sip-kpml sip-notify

codec g711alaw

no vad 

 

Thanks all

Martyn

4 Replies 4

tyroneclark871
Level 1
Level 1

Hi, there is a simpler way...

 

voice translation-rule 2
rule 1 reject /0797XXXXXX[12]/

voice translation-profile BLOCK
translate calling 2

dialpeer voice 11 voip
incoming called-number .
call-block translation-profile incoming BLOCK
call-block disconnect-cause incoming call-reject

Hope this helps!

 

Thanks for your response, so my thinking was along the correct lines then?

 

Do dial-peers work in the same was as an acl, would I need to put the blocked dial-peer above the the original, so if it matches it blocks, if not then it moves on?

 

Thanks

 

 

 

Hi,

 

I would suggest placing the more specific matches higher up, but to answer your question; dial-peers are similar but the hierarchy for dial-peers doesnt really affect the funtionality. See dial-peer document below for more specific information pertaining to dial-peers and call legs. 

 

https://www.cisco.com/c/en_intl/support/docs/voice/call-routing-dial-plans/12164-dialpeer-call-leg.html

Sorry for the delay, I will give the document a read.

Thanks