[OpenSIPS-Devel] [OpenSIPS/opensips] 10e26d: Fix calling trace_dialog() after t_newtran().
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Aug 17 17:48:33 CEST 2016
Branch: refs/heads/1.11
Home: https://github.com/OpenSIPS/opensips
Commit: 10e26d1cc627ecff86ce33536575a3aa5b6d3bee
https://github.com/OpenSIPS/opensips/commit/10e26d1cc627ecff86ce33536575a3aa5b6d3bee
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2016-08-17 (Wed, 17 Aug 2016)
Changed paths:
M modules/siptrace/siptrace.c
Log Message:
-----------
Fix calling trace_dialog() after t_newtran().
The tracing relies on the REQUEST_IN callback - and this callback is triggered by t_newtran() before we decide (at script level) to do any tracing, so it will a try triggering (with no action).
The fix is to check (in trace_dialog()) if the tranaction exists (meaning the REQUEST_IN callback was already triggered) and if so, we trigger it again after setting all the tracing flags (to force the callback to actually do the job).
More information about the Devel
mailing list