[OpenSIPS/opensips] 739f75: Fix t_reply_with_body() when called after t_newtran()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSIPS/opensips] 739f75: Fix t_reply_with_body() when called after t_newtran()

Bogdan Andrei IANCU
  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 739f75999e5887ceed2892c2611e3acce86e60fc
      https://github.com/OpenSIPS/opensips/commit/739f75999e5887ceed2892c2611e3acce86e60fc
  Author: Bogdan-Andrei Iancu <[hidden email]>
  Date:   2019-03-12 (Tue, 12 Mar 2019)

  Changed paths:
    M modules/tm/t_reply.c

  Log Message:
  -----------
  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 00a3ab348b0400fc63d25f742916ec65602f7e3f)



_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel