<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Here is a quick drawing I just threw together; the technique can bit a little confusing to conceptualize at first so I always find drawings help. This does involve a bit of CSS/XLATE trickery and as such; can create a 'fragile' dial-plan. If you implement
something like this, I'd advise documenting the flow you create very well and make sure it is a consideration anytime dial-plan changes are made.<br>
</p>
<p><br>
</p>
<p><img tabindex="0" crossorigin="anonymous" id="img268520" style="max-width: 99.9%; -moz-user-select: none;" contenttype="image/jpeg" size="51363" src="cid:54d2e61e-7a47-4333-9617-f49dcadd76ae"><br>
</p>
<p><br>
</p>
<p>Hope this helps,</p>
<p><br>
</p>
<p>-Ryan<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> cisco-voip <cisco-voip-bounces@puck.nether.net> on behalf of Ryan Huff <ryanhuff@outlook.com><br>
<b>Sent:</b> Monday, July 25, 2016 4:17 PM<br>
<b>To:</b> Telecom<br>
<b>Cc:</b> cisco-voip@puck.nether.net<br>
<b>Subject:</b> Re: [cisco-voip] Block call based on ANI and DNIS at the same time</font>
<div> </div>
</div>
<div>
<div>In other words, when you do route to next hop by calling party id; rather than route ALL calls to the next hop, only route calls that do not match a particular number/pattern (called party). </div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">This technique will capitalize on the most specific route wins matching algorithm. So if the number matches a specific pattern "do not route" else match a "!" pattern that does route.</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">On the patterns that you match where you do not route, you can do all sorts of interesting things. Something like a simple reorder tone; or in the case of an aggressive auto dialing bot, you could play of vacant circuit SIT tone
(the three tones of happiness). Or you could forward it to unity connections system call handler that plays a nice little message asking the caller to not call back.<br>
<br>
Sent from my iPhone</div>
<div><br>
On Jul 25, 2016, at 4:07 PM, Ryan Huff <<a href="mailto:ryanhuff@outlook.com">ryanhuff@outlook.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>I am NOT trying to intentionally plug my blog here; however this is a very good article that addresses your very query.</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature"><a href="https://ryanthomashuff.com/2014/11/call-blocking-by-caller-id/">https://ryanthomashuff.com/2014/11/call-blocking-by-caller-id/</a></div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">The only thing you would do, is modify slightly so that the technique only applied to a particular called number/pattern.</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">Hope this helps,</div>
<div id="AppleMailSignature"><br>
</div>
<div id="AppleMailSignature">-Ryan<br>
</div>
<div><br>
On Jul 25, 2016, at 3:36 PM, Telecom <<a href="mailto:telecom3390@me.com">telecom3390@me.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
Hi all!</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
I am trying to figure out if it is possible to block calls from an ANI but only to a specific DNIS while allowing calls to other extensions to proceed from that ANI? </div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
The scenario:</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<a href="tel:800-555-5555" value="+18005555555" target="_blank" style="color:#1155cc">800-555-5555</a> calls our extension 1000. However, extension 1000 is an executive and shouldn't be getting those calls.
<a href="tel:800-555-5555" value="+18005555555" target="_blank" style="color:#1155cc">
800-555-5555</a> is a valid number associated with a vendor of ours, and calls to other internal numbers are OK, but not to extn. 1000. </div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
I am familiar with the "<a href="https://supportforums.cisco.com/document/71966/blocking-calls-based-calling-party-id" target="_blank" style="color:#1155cc">Route Next Hop By Calling Party Number</a>" and have tested that functionality but it seems to apply
to all extensions and I don't see a way to filter based on called extension as well as ANI at the same time. </div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
We are using CUCM 9.x with an MGCP gateway. </div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
We have also asked the vendor not to call extn 1000 but it is taking them a while to remove that number from their autodialers I guess as calls are still arriving.</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
Thanks for any ideas</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
<br>
</div>
<div style="color:#222222; font-family:arial,sans-serif; font-size:12.8px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:1; word-spacing:0px; background-color:#ffffff">
Mike S.</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>cisco-voip mailing list</span><br>
<span><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a></span><br>
<span><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span><br>
</div>
</blockquote>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>cisco-voip mailing list</span><br>
<span><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a></span><br>
<span><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>