rem: if (mem_insert_ucontact(_r, _c, _e, _q, _cid, _cs, _flags, _rep, _con, _ua, _recv) < 0) {
add: if (mem_insert_ucontact(_r, _c, _e, _q, _cid, _cs, _flags, _rep, _con, _ua, _recv, sock) < 0) {
context: int insert_ucontact_rep(urecord_t* _r, str* _c, time_t _e, qvalue_t _q, str* _cid, 			int _cs, unsigned int _flags, int _rep, struct ucontact** _con, str* _ua, str* _recv){	if (mem_insert_ucontact(_r, _c, _e, _q, _cid, _cs, _flags, _rep, _con, _ua, _recv) < 0) {		LOG(L_ERR, "insert_ucontact(): Error while inserting contact\n");		return -1;	}	notify_watchers(_r, *_con, (_e > 0) ? PRES_ONLINE : PRES_OFFLINE);	if (exists_ulcb_type(UL_CONTACT_INSERT))		run_ul_callbacks( UL_CONTACT_INSERT, *_con);	if (db_mode == WRITE_THROUGH) {		if (db_insert_ucontact(*_con) < 0) {			LOG(L_ERR, "insert_ucontact(): Error while inserting in database\n");			mem_delete_ucontact(_r, *_con);			return -2;		}		(*_con)->state=CS_SYNC;	}	return 0;}