Module: kamailio Branch: master Commit: eb2f25ca0810f966d089da3aa1e32e3e98a4ab16 URL: https://github.com/kamailio/kamailio/commit/eb2f25ca0810f966d089da3aa1e32e3e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/eb2f25ca0810f966d089da3aa1e32e3e... Patch: https://github.com/kamailio/kamailio/commit/eb2f25ca0810f966d089da3aa1e32e3e...
---
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; }