Commit f93d2fcf authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua_stack.c: if nua_register() fails to provide To, use From.

darcs-hash:20080507140557-db55f-75b259cc148c1e8fe77a6e62abf1890c40956df9.gz
parent b6600c7b
......@@ -2280,6 +2280,12 @@ int nua_client_init_request(nua_client_request_t *cr)
sip_add_dup(msg, sip, (sip_header_t *)nua->nua_from) < 0)
return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
if (sip->sip_to == NULL && cr->cr_method == sip_method_register &&
sip_add_dup_as(msg, sip, sip_to_class,
(sip_header_t *)sip->sip_from) < 0) {
return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
}
if (cr->cr_dialog) {
ds->ds_leg = nta_leg_tcreate(nua->nua_nta,
nua_stack_process_request, nh,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment