Selaa lähdekoodia

tm: set msg for log_prefix before running failure_route

- reported by GH #1531

(cherry picked from commit eb2f25ca0810f966d089da3aa1e32e3e98a4ab16)
(cherry picked from commit cc1ff15335a81971aa891231cbea7c8fd03261e0)
Daniel-Constantin Mierla 7 vuotta sitten
vanhempi
commit
fd1e6aa946
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/modules/tm/t_reply.c

+ 2 - 0
src/modules/tm/t_reply.c

@@ -993,6 +993,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();
@@ -1007,6 +1008,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;
 	}