浏览代码

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

- patch by Jasmin Schnatterbeck, part of FS#313
Daniel-Constantin Mierla 12 年之前
父节点
当前提交
350f4f8971
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      modules/tm/t_fwd.c

+ 5 - 0
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. */