Commit 44f3fbc9 authored by Pekka Pessi's avatar Pekka Pessi

Fixed route handling in SUBSCRIBE in the file nua/nua_subnotref.c.

There was a problem using dialog route set when there was an initial route
original SUBSCRIBE.

darcs-hash:20060425133318-65a35-ad4519229baa29c0ef185248e8a9c6053a30d2be.gz
parent 978d7df4
......@@ -366,6 +366,13 @@ refresh_subscribe(nua_handle_t *nh, nua_dialog_usage_t *du, sip_time_t now)
cr->cr_msg = msg_ref_create(du->du_msg);
{
/* Remove initial route */
sip_t *sip = sip_object(cr->cr_msg);
if (sip->sip_route)
msg_header_remove(cr->cr_msg, (msg_pub_t*)sip, (void *)sip->sip_route);
}
msg = nua_creq_msg(nua, nh, cr, 1,
SIP_METHOD_SUBSCRIBE,
NUTAG_USE_DIALOG(1),
......
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