rem: if (add_contact(d, &user, &contact, exp_i, q_f) < 0) {
add: if (add_contact(d, &user, &contact, exp_i, q_f, rep_i) < 0) {
context: static int ul_add(FILE* pipe, char* response_file){	char table_s[MAX_TABLE];	char user_s[MAX_USER];	char contact_s[MAX_CONTACT];	char expires_s[MAX_EXPIRES];	char q_s[MAX_Q];	udomain_t* d;	float q_f;	int exp_i;	str table, user, contact, expires, q;	if (!read_line(table_s, MAX_TABLE, pipe, &table.len) || table.len == 0) {		fifo_reply(response_file,			   "400 ul_add: table name expected\n");		LOG(L_ERR, "ERROR: ul_add: table name expected\n");		return 1;	}		if (!read_line(user_s, MAX_USER, pipe, &user.len) || user.len  == 0) {		fifo_reply(response_file,			   "400 ul_add: aor name expected\n");		LOG(L_ERR, "ERROR: ul_add: aor expected\n");		return 1;	}		if (!read_line(contact_s, MAX_CONTACT, pipe, &contact.len) || contact.len == 0) {		fifo_reply(response_file,			   "400 ul_add: contact expected\n");		LOG(L_ERR, "ERROR: ul_add: contact expected\n");		return 1;	}		if (!read_line(expires_s, MAX_EXPIRES, pipe, &expires.len) || expires.len == 0) {		fifo_reply(response_file,			   "400 ul_add: expires expected\n");		LOG(L_ERR, "ERROR: ul_add: expires expected\n");		return 1;	}		if (!read_line(q_s, MAX_Q, pipe, &q.len) || q.len == 0) {		fifo_reply(response_file,			   "400 ul_add: q expected\n");		LOG(L_ERR, "ERROR: ul_add: q expected\n");		return 1;	}		table.s = table_s;	user.s = user_s;	contact.s = contact_s;	expires.s = expires_s;	q.s = q_s;		fifo_find_domain(&table, &d);		if (d) {		if (atoi(&expires, &exp_i) < 0) {			fifo_reply(response_file, "400 Invalid expires format\n");			return 1;		}				if (atof(&q, &q_f) < 0) {			fifo_reply(response_file, "400 Invalid q format\n");			return 1;		}		lock_udomain(d);				if (add_contact(d, &user, &contact, exp_i, q_f) < 0) {			unlock_udomain(d);			LOG(L_ERR, "ul_add(): Error while adding contact (\'%.*s\',\'%.*s\') in table \'%.*s\'\n",			    user.len, user.s, contact.len, contact.s, table.len, table.s);			fifo_reply(response_file, "500 Error while adding contact\n"				" (\'%.*s\',\'%.*s\') in table \'%.*s\'\n",				user.len, user.s, contact.len, contact.s, table.len, table.s);			return 1;		}		unlock_udomain(d);				fifo_reply(response_file, "200 Added to table\n"				"(\'%.*s\',\'%.*s\') to \'%.*s\'\n",			   user.len, user.s, contact.len, contact.s, table.len, table.s);		return 1;	} else {		fifo_reply(response_file, "400 Table \'%.*s\' not found in memory, use save(\'%.*s\') or lookup(\'%.*s\') in the configuration script first\n", 			table.len, table.s, table.len, table.s, table.len, table.s);		return 1;	}}