Pārlūkot izejas kodu

tm: copy on_reply and on_failure routes to new branch on DNS based failover

Alex Hermann 13 gadi atpakaļ
vecāks
revīzija
5d652fa27c
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      modules/tm/t_fwd.c

+ 3 - 0
modules/tm/t_fwd.c

@@ -1019,6 +1019,9 @@ int add_uac_dns_fallback(struct cell *t, struct sip_msg* msg,
 			/* copy the dns handle into the new uac */
 			dns_srv_handle_cpy(&t->uac[t->nr_of_outgoings].dns_h,
 								&old_uac->dns_h);
+			/* copy the onreply and onfailure routes */
+			t->uac[t->nr_of_outgoings].on_failure = old_uac->on_failure;
+			t->uac[t->nr_of_outgoings].on_reply = old_uac->on_reply;
 
 			if (cfg_get(tm, tm_cfg, reparse_on_dns_failover)){
 				/* Reuse the old buffer and only replace the via header.