rem: DBG("registered(): '%.*s' not found in usrloc\n", aor.len, ZSW(aor.s));
add: DBG("registered(): '%.*s' not found in usrloc\n", uid.len, ZSW(uid.s));
context: int registered(struct sip_msg* _m, char* _t, char* _s){	str uri, aor;	urecord_t* r;        ucontact_t* ptr;	int res;	if (_m->new_uri.s) uri = _m->new_uri;	else uri = _m->first_line.u.request.uri;		if (extract_aor(&uri, &aor) < 0) {		LOG(L_ERR, "registered(): Error while extracting address of record\n");		return -1;	}		ul.lock_udomain((udomain_t*)_t);	res = ul.get_urecord((udomain_t*)_t, &aor, &r);	if (res < 0) {		ul.unlock_udomain((udomain_t*)_t);		LOG(L_ERR, "registered(): Error while querying usrloc\n");		return -1;	}	if (res == 0) {		ptr = r->contacts;		while (ptr && !VALID_CONTACT(ptr, act_time)) {			ptr = ptr->next;		}		if (ptr) {			ul.unlock_udomain((udomain_t*)_t);			DBG("registered(): '%.*s' found in usrloc\n", aor.len, ZSW(aor.s));			return 1;		}	}	ul.unlock_udomain((udomain_t*)_t);	DBG("registered(): '%.*s' not found in usrloc\n", aor.len, ZSW(aor.s));	return -1;}