Skip to content

Commit

Permalink
tm: set msg for log_prefix before running failure_route
Browse files Browse the repository at this point in the history
- reported by GH #1531
  • Loading branch information
miconda committed May 23, 2018
1 parent f3109d4 commit eb2f25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/tm/t_reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ int run_failure_handlers(struct cell *t, struct sip_msg *rpl,
t->on_failure=0;
/* if continuing on timeout of a suspended transaction, reset the flag */
t->flags &= ~T_ASYNC_SUSPENDED;
log_prefix_set(faked_req);
if (exec_pre_script_cb(faked_req, FAILURE_CB_TYPE)>0) {
/* run a failure_route action if some was marked */
keng = sr_kemi_eng_get();
Expand All @@ -1002,6 +1003,7 @@ int run_failure_handlers(struct cell *t, struct sip_msg *rpl,
}
exec_post_script_cb(faked_req, FAILURE_CB_TYPE);
}
log_prefix_set(NULL);
/* update message flags, if changed in failure route */
t->uas.request->flags = faked_req->flags;
}
Expand Down

0 comments on commit eb2f25c

Please sign in to comment.