Browse code

tm: copy tm routing blocks ids for new branches added by dns failover

- patch by Jasmin Schnatterbeck, part of FS#313

Daniel-Constantin Mierla authored on 15/06/2013 16:54:59
Showing 1 changed files
... ...
@@ -1001,6 +1001,11 @@ static int add_uac_from_buf( struct cell *t, struct sip_msg *request,
1001 1001
 		t->uac[branch].location_ua.s[location_ua->len]=0;
1002 1002
 		memcpy( t->uac[branch].location_ua.s, location_ua->s, location_ua->len);
1003 1003
 	}
1004
+
1005
+	t->uac[branch].on_reply = t->on_reply;
1006
+	t->uac[branch].on_failure = t->on_failure;
1007
+	t->uac[branch].on_branch_failure = t->on_branch_failure;
1008
+
1004 1009
 	membar_write(); /* to allow lockless ops (e.g. prepare_to_cancel()) we want
1005 1010
 					   to be sure everything above is fully written before
1006 1011
 					   updating branches no. */