add: w_calculate_hooks(dialog);
context: int request(str* m, str* ruri, str* to, str* from, str* h, str* b, transaction_cb c, void* cp){	str callid, fromtag;	dlg_t* dialog;	int res;	if (check_params(m, to, from, &dialog) < 0) goto err;	generate_callid(&callid);	generate_fromtag(&fromtag, &callid);	if (new_dlg_uac(&callid, &fromtag, DEFAULT_CSEQ, from, to, &dialog) < 0) {		LOG(L_ERR, "request(): Error while creating temorary dialog\n");		goto err;	}	if (ruri) {		dialog->rem_target.s = ruri->s;		dialog->rem_target.len = ruri->len;		dialog->hooks.request_uri = &dialog->rem_target;	}	res = t_uac(m, h, b, dialog, c, cp);	dialog->rem_target.s = 0;	free_dlg(dialog);	return res; err:	if (cp) shm_free(cp);	return -1;}