Below is the solution, using Yate PBX for blocking calls by caller name. I tested by calling my OBi110's SP2 with a softphone. This is the only way I knew how to set the caller name. I included 2 rules in the regexroute. "^V\([0-9]\{14\}\)$" will check for exactly a V followed by 14 digits. "^V\([0-9]\{14\}\)" will check for a string beginning with a V followed by 14 digits. I did this in case there are blanks or unprintable characters at the end of the name. Pick which one you want or use both. The OBi110 will fork Line calls to the phone port and Yate. If there is a match, Yate will answer the call with a SIT tone ending the ringing on the OBi110. If there isn't a match, Yate will reject the call and the OBi110 phone port will continue to ring. If Yate isn't active, all calls will ring the OBi110 phone port.
Download Yate and run setup:
http://voip.null.ro/tarballs/yate6/yate-6.0.0-1-setup.exeTake all the default settings.
Don't check any boxes for desktop ICONs.
Those are for the Yate Client, not Yate Server.
Using File Explorer go to: c:\Program Files (x86)\Yate
Right click on yate-console and create a desktop shortcut.
You only need to create 1 conf file.
Place this file in: c:\Program Files (x86)\Yate\conf.d
Folder conf.d also contains sample configuration files.
Copy the code into Notepad and save as the file name above code.
Do NOT save as txt file
Select file type "All Files".
The Yate folder is restricted.
Assuming you are the administrator on your computer, you will be prompted when saving a file.
You can delete files.
You won't be able to modify an existing file.
You need to change the permissions on the Yate folder to make mods.
You can maintain the files in another location then delete old and copy the modified file.
Here is the config file:
regexroute.conf
[default]
${callername}^V\([0-9]\{14\}\)$=tone/info
${callername}^V\([0-9]\{14\}\)=tone/info
^.*$=error=noauth
Start Yate by double clicking on shortcut you created above.
Yate is also installed as a service "Yet Another Telephone Engine". Alternately you can start Yate by starting the service. Change the service to "Auto" to automatically start Yate when computer is powered on. Start testing with the Yate console shortcut. The console will show activity including any errors.
OBi110 Setup:
Service Providers -> ITSP Profile B -> SIP -> ProxyServer: 127.0.0.1
Service Providers -> ITSP Profile B -> SIP -> X_SpoofCallerID: Checked
Voice Services -> SP2 Service -> AuthUserName: anything
Voice Services -> SP2 Service -> X_RegisterEnable: unchecked
Voice Services -> SP2 Service -> X_ServProvProfile: B
Physical Interfaces -> Line Port -> InboundCallRoute: ph,sp2(0@xx.xx.xx.xx)
Replace xx.xx.xx.xx with the IP address of the computer running Yate.
If you already have an SIP trunk defined on SP2, you can use it. Just enable X_SpoofCallerID.