Skip to content
Browse files

Fix t_reply_with_body() when called after t_newtran()

Force an update of the cloned request (from transaction) with info from the real request before internally running t_reply_with_body(). As t_reply_with_body() works with the cloned request, we need to be sure it is up-2-date; and t_newtran() does a partial cloning of the requests - so, if the transaction already exists better update its cloned request to be sure it has all data.
Credits for detailed reporting to @rrb3942
Closes #1632
  • Loading branch information
bogdan-iancu committed Mar 12, 2019
1 parent 2b670e3 commit 00a3ab348b0400fc63d25f742916ec65602f7e3f
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/tm/t_reply.c
@@ -1738,6 +1738,8 @@ int w_t_reply_body(struct sip_msg* msg, str* code, str *text,
return -1;
} else {
update_cloned_msg_from_msg( t->uas.request, msg);
return t_reply_with_body(t, code_i, &code_s, &body_s, 0, 0);

0 comments on commit 00a3ab3

Please sign in to comment.
You can’t perform that action at this time.