[sr-dev] git:master:67b06aed: tm: Copy on_branch_failure to new branch on DNS failover

Alex Hermann alex at speakup.nl
Tue Aug 30 13:47:56 CEST 2016


Module: kamailio
Branch: master
Commit: 67b06aedb014b3ee5c26326e94df7f319b4f0fd6
URL: https://github.com/kamailio/kamailio/commit/67b06aedb014b3ee5c26326e94df7f319b4f0fd6

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date: 2016-08-02T12:13:34+02:00

tm: Copy on_branch_failure to new branch on DNS failover

---

Modified: modules/tm/t_fwd.c

---

Diff:  https://github.com/kamailio/kamailio/commit/67b06aedb014b3ee5c26326e94df7f319b4f0fd6.diff
Patch: https://github.com/kamailio/kamailio/commit/67b06aedb014b3ee5c26326e94df7f319b4f0fd6.patch

---

diff --git a/modules/tm/t_fwd.c b/modules/tm/t_fwd.c
index 51335ee..1586ec3 100644
--- a/modules/tm/t_fwd.c
+++ b/modules/tm/t_fwd.c
@@ -1022,6 +1022,7 @@ int add_uac_dns_fallback(struct cell *t, struct sip_msg* msg,
 			/* 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;
+			t->uac[t->nr_of_outgoings].on_branch_failure = old_uac->on_branch_failure;
 
 			if (cfg_get(tm, tm_cfg, reparse_on_dns_failover)){
 				/* Reuse the old buffer and only replace the via header.




More information about the sr-dev mailing list