Module: sip-router
Branch: master
Commit: 350f4f8971a679f0d6566361b2a7bb17956a6a7e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=350f4f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Jun 15 18:54:59 2013 +0200
tm: copy tm routing blocks ids for new branches added by dns failover
- patch by Jasmin Schnatterbeck, part of FS#313
---
modules/tm/t_fwd.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/tm/t_fwd.c b/modules/tm/t_fwd.c
index 86c5daa..e0b2642 100644
--- a/modules/tm/t_fwd.c
+++ b/modules/tm/t_fwd.c
@@ -1001,6 +1001,11 @@ static int add_uac_from_buf( struct cell *t, struct sip_msg
*request,
t->uac[branch].location_ua.s[location_ua->len]=0;
memcpy( t->uac[branch].location_ua.s, location_ua->s, location_ua->len);
}
+
+ t->uac[branch].on_reply = t->on_reply;
+ t->uac[branch].on_failure = t->on_failure;
+ t->uac[branch].on_branch_failure = t->on_branch_failure;
+
membar_write(); /* to allow lockless ops (e.g. prepare_to_cancel()) we want
to be sure everything above is fully written before
updating branches no. */