Explorar o código

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

Alex Hermann %!s(int64=13) %!d(string=hai) anos
pai
achega
5d652fa27c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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.