<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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>Glad it helped.</p>
<p><br>
</p>
<p><span>You can scale this fairly easy for other users too as I'm sure you've discovered, by just adding in different patterns for the ANI and DNIS that you want to block into the appropriate partitions ... etc.</span><br>
</p>
<p><br>
</p>
<p>Please do keep your call flow documented and very present for all concerned. All it takes is one administrator looking at the translation pattern table and saying, "Gosh -what is this
<i>!</i> pattern, lets delete that". As Mike mentioned, it is a bit overly complicated technical solution to a human problem -but we all have boss's
<img style="vertical-align: bottom;" alt="😉" id="OWAEmoji644609" class="EmojiInsert" src="cid:523faa94-6310-49ff-96a8-b8b7a3ddc9be">.</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p>Ryan</p>
<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" face="Calibri, sans-serif" color="#000000"><b>From:</b> Telecom <telecom3390@me.com><br>
<b>Sent:</b> Wednesday, July 27, 2016 1:24 PM<br>
<b>To:</b> Ryan Huff<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>I was able to get this working and I thank everyone for their help and feedback! It is a little tricky with all the xlates and css/partition combos, but diagramming it really does help and is the step I took to get it working in my environment.</div>
<div><br>
</div>
<div>I appreciate the help!</div>
<div><br>
On Jul 25, 2016, at 05:47 PM, Ryan Huff <ryanhuff@outlook.com> wrote:<br>
<br>
</div>
<div>
<blockquote type="cite">
<div class="msg-quote" 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" id="img268520" class="_auto-scale" style="max-width: 99.9%; -moz-user-select: none;" src="cid:002e5d9f-d491-48fd-a4d4-530139dc1ea9@icloud.com"><br>
</p>
<p><br>
</p>
<p>Hope this helps,</p>
<p><br>
</p>
<p>-Ryan<br>
</p>
<br>
<div style="color:#000000">
<hr style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><span color="#000000" face="Calibri, sans-serif" style="font-size:11pt; color:#000000; font-family: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> <a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] Block call based on ANI and DNIS at the same time</span>
<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 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 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" 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>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>