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

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.

parent 978d7df4
...@@ -366,6 +366,13 @@ refresh_subscribe(nua_handle_t *nh, nua_dialog_usage_t *du, sip_time_t now) ...@@ -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); 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, msg = nua_creq_msg(nua, nh, cr, 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