rem: if (insert(_m, _c, _d, _a, _ua) < 0) {
add: if (insert(_m, _c, _d, _u, _ua) < 0) {
context: static inline int contacts(struct sip_msg* _m, contact_t* _c, udomain_t* _d, str* _a, str* _ua){	int res;	urecord_t* r;	ul.lock_udomain(_d);	res = ul.get_urecord(_d, _a, &r);	if (res < 0) {		rerrno = R_UL_GET_R;		LOG(L_ERR, "contacts(): Error while retrieving record from usrloc\n");		ul.unlock_udomain(_d);		return -2;	}	if (res == 0) { /* Contacts found */		if (update(_m, r, _c, _ua) < 0) {			LOG(L_ERR, "contacts(): Error while updating record\n");			build_contact(r->contacts);			ul.release_urecord(r);			ul.unlock_udomain(_d);			return -3;		}		build_contact(r->contacts);		ul.release_urecord(r);	} else {		if (insert(_m, _c, _d, _a, _ua) < 0) {			LOG(L_ERR, "contacts(): Error while inserting record\n");			ul.unlock_udomain(_d);			return -4;		}	}	ul.unlock_udomain(_d);	return 0;}