Items:String NCID_String {tcp=">[192.0.0.100:3333:'REGEX((.*))']", autoupdate="false"} //192.0.0.100 is NCID and 3333 is the default port
Rule:
rule "NCID"
when
Item NCID_String changed
then
caller_id_buffer=NCID_String.state.toString().split("\\*") //splits the string into an array of values
if (caller_id_buffer.get(0) == "CID: ") { //CID is reported when it's a person who hasn't been blacklisted or otherwise filtered out, HUP is a rejected caller
pushover(pushover_api,pushover_group,"Home Call from " + caller_id_buffer.get(12) + " (" + caller_id_buffer.get(8) + ")", "","","","",0,"")
}
end