Module: kamailio Branch: master Commit: eb2f25ca0810f966d089da3aa1e32e3e98a4ab16 URL: https://github.com/kamailio/kamailio/commit/eb2f25ca0810f966d089da3aa1e32e3e98a4ab16
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2018-05-23T20:42:51+02:00 tm: set msg for log_prefix before running failure_route - reported by GH #1531 --- Modified: src/modules/tm/t_reply.c --- Diff: https://github.com/kamailio/kamailio/commit/eb2f25ca0810f966d089da3aa1e32e3e98a4ab16.diff Patch: https://github.com/kamailio/kamailio/commit/eb2f25ca0810f966d089da3aa1e32e3e98a4ab16.patch --- diff --git a/src/modules/tm/t_reply.c b/src/modules/tm/t_reply.c index 9958e70333..8b94cec624 100644 --- a/src/modules/tm/t_reply.c +++ b/src/modules/tm/t_reply.c @@ -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(); @@ -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; } _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev