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

Bogdan Andrei IANCU noreply at github.com
Tue Mar 12 03:33:53 EDT 2019


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 739f75999e5887ceed2892c2611e3acce86e60fc
      https://github.com/OpenSIPS/opensips/commit/739f75999e5887ceed2892c2611e3acce86e60fc
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  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)





More information about the Devel mailing list