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

(cherry picked from commit 00a3ab3)
  • Loading branch information
bogdan-iancu committed Mar 12, 2019
1 parent d7ac87c commit 739f75999e5887ceed2892c2611e3acce86e60fc
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/tm/t_reply.c
@@ -1610,6 +1610,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 739f759

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