<html><body><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 data-mce-bogus="1"></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;" data-mce-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 id="img268520" style="max-width: 99.9%; -moz-user-select: none;" src="cid:002e5d9f-d491-48fd-a4d4-530139dc1ea9@icloud.com"                                                                                                                                     data-inline-image="true" class="_auto-scale" data-mce-src="cid:002e5d9f-d491-48fd-a4d4-530139dc1ea9@icloud.com"                                                                                                                                     data-mce-style="max-width: 99.9%; -moz-user-select: none;"><br></p><p><br></p><p>Hope this helps,</p><p><br></p><p>-Ryan<br></p><br><div style="color: #000000;" data-mce-style="color: #000000;"><hr style="display: inline-block; width: 98%;" data-mce-style="display: inline-block; width: 98%;"><div id="divRplyFwdMsg" dir="ltr"><span data-mce-style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" style="font-size: 11pt; color: #000000; font-family: Calibri, sans-serif;" 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> <a href="mailto:cisco-voip@puck.nether.net" data-mce-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" data-mce-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/" data-mce-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" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-href="https://supportforums.cisco.com/document/71966/blocking-calls-based-calling-party-id" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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;" data-mce-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" data-mce-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" data-mce-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" data-mce-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" data-mce-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><style class="existing-message-styles" type="text/css">.msg-quote p {margin-top: 0px; margin-bottom: 0px;}
</style></div></blockquote></div></body></html>