Skip to content

Commit

Permalink
[siptrace] set context for all failure route requests
Browse files Browse the repository at this point in the history
	The siptrace context pointer was handled via the processing
context. In failure route the context was not set thus not knowing
if the tracing was activated or not. Because of this internally
generated requests were not traced. Now each time a request is
sent the context is set from tm callback parameter.

(cherry picked from commit 086b3caf8b87e4916bbfca134c2d119d3ee78e5c)
  • Loading branch information
ionutrazvanionita committed Apr 6, 2017
1 parent de086eb commit 39d7778
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/siptrace/siptrace.c
Expand Up @@ -1738,6 +1738,7 @@ static void trace_onreq_out(struct cell* t, int type, struct tmcb_params *ps)
* shared to avoid conflicts on conn_id field */
info = *(trace_info_p)(*ps->param);
dest = ps->extra2;
SET_SIPTRACE_CONTEXT(*ps->param);

if (dest) {
if ( dest->proto != PROTO_UDP ) {
Expand Down

0 comments on commit 39d7778

Please sign in to comment.