rem: if (xpidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st) < 0) {
add: if (xpidf_add_address(&body, BUF_LEN - body.len, &_p->uri, &none, st) < 0) {
context: static int send_xpidf_notify(struct presentity* _p, struct watcher* _w){	xpidf_status_t st;	presence_tuple_t *tuple = _p->tuples;	/* Send a notify, saved Contact will be put in	 * Request-URI, To will be put in from and new tag	 * will be generated, callid will be callid,	 * from will be put in to including tag	 */	if (start_xpidf_doc(&body, BUF_LEN) < 0) {		LOG(L_ERR, "send_xpidf_notify(): start_xpidf_doc failed\n");		return -1;	}	if (xpidf_add_presentity(&body, BUF_LEN - body.len, &_p->uri) < 0) {		LOG(L_ERR, "send_xpidf_notify(): xpidf_add_presentity failed\n");		return -3;	}	if (!tuple) {		 LOG(L_ERR, "send_xpidf_notify() NO TUPLE\n");		 st = XPIDF_ST_CLOSED;		 if (xpidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st) < 0) {             LOG(L_ERR, "send_xpidf_notify(): xpidf_add_address failed\n");             return -3;         }	}	while (tuple) {		switch(tuple->state) {		case PS_ONLINE: st = XPIDF_ST_OPEN; break;		default: st = XPIDF_ST_CLOSED; break;		}		if (xpidf_add_address(&body, BUF_LEN - body.len, &_p->uri, st) < 0) {			LOG(L_ERR, "send_xpidf_notify(): xpidf_add_address failed\n");			return -3;		}		tuple = tuple->next;	}	if (end_xpidf_doc(&body, BUF_LEN - body.len) < 0) {		LOG(L_ERR, "send_xpidf_notify(): end_xpidf_doc failed\n");		return -5;	}	if (create_headers(_w) < 0) {		LOG(L_ERR, "send_xpidf_notify(): Error while adding headers\n");		return -6;	}	tmb.t_request_within(&method, &headers, &body, _w->dialog, 0, 0);	return 0;}