07-04-2018 07:38 AM - edited 03-17-2019 01:08 PM
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
07-04-2018 08:41 AM
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!
07-04-2018 12:04 PM
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
07-05-2018 01:04 AM
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.
07-11-2018 08:12 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