Module: kamailio
Branch: 5.0
Commit: 25defde62284bd23fc41ec4276bb11c0c6ece687
URL:
https://github.com/kamailio/kamailio/commit/25defde62284bd23fc41ec4276bb11c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2017-07-19T13:25:04+03:00
tm: copy branch flags in the new branch created by the dns failover
(cherry picked from commit 632304b90f9af7151c99f98ec63ddbecca31df9c)
---
Modified: src/modules/tm/t_fwd.c
---
Diff:
https://github.com/kamailio/kamailio/commit/25defde62284bd23fc41ec4276bb11c…
Patch:
https://github.com/kamailio/kamailio/commit/25defde62284bd23fc41ec4276bb11c…
---
diff --git a/src/modules/tm/t_fwd.c b/src/modules/tm/t_fwd.c
index 5cc649ebdd..ae9a6c3a91 100644
--- a/src/modules/tm/t_fwd.c
+++ b/src/modules/tm/t_fwd.c
@@ -1018,6 +1018,8 @@ int add_uac_dns_fallback(struct cell *t, struct sip_msg* msg,
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;
+ /* copy branch flags */
+ t->uac[t->nr_of_outgoings].branch_flags = old_uac->branch_flags;
if (cfg_get(tm, tm_cfg, reparse_on_dns_failover)){
/* Reuse the old buffer and only replace the via header.