CallerIDBlock: Version 1.1 release notes

It’s been a while since we looked at the Blocking Calls on Lync Server and Skype for Business Based on Caller ID.

Since then, we had an update related to the script Missed call notification when the call is blocked by CallerIDBlock MSPL Script, but the MSPL Script remained the same (created by VoIPNorm’s UC Blog – Blocking Calls in Lync Based on Caller ID), with some minor changes to work on Lync Server 2013 and Skype for Business Server 2015.

The first thing we noticed was that the script was using the full path for the BlockedTelephoneNumbers.txt file. While this will work, we could improve it by changing it from:

path=”\\<Lync Share Path>\CallerIDBlock\BlockedTelephoneNumbers.txt



Now we don’t need to worry to update the path in the script when we deploy it, but we need to make sure that both files are in the same folder.

Another change was that previously we were processing all the SIP Requests, but to block a call we only need to process the INVITE. So we changed the following line from:

<lc:requestFilter methodNames=”ALL” strictRoute=”true”/>


<lc:requestFilter methodNames=”INVITE” strictRoute=”true”/>

We can also remove the following line, since all SIP Requests handled by CallerIDBlock script will be INVITE:

if(sipRequest.Method == “INVITE”){

To obtain the updated version please go to:

MSPL: Blocking Calls on Lync Server/Skype for Business 2015 Based on CallerID


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.