浏览代码

reparse_on_dns_failover module parameter is introduced
(I forgot the commint the config files)

Miklos Tirpak 17 年之前
父节点
当前提交
ca0aa4ac23
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 6 1
      modules/tm/config.c
  2. 1 0
      modules/tm/config.h

+ 6 - 1
modules/tm/config.c

@@ -87,7 +87,8 @@ struct cfg_group_tm	default_tm_cfg = {
 			 * timeouts by default */
 	~METHOD_BYE,	/* tm_blst_methods_lookup -- look-up the blacklist
 			 * for every method except BYE by default */
-	0	/* cancel_b_method used for e2e and 6xx cancels*/
+	0,	/* cancel_b_method used for e2e and 6xx cancels*/
+	1,	/* reparse_on_dns_failover */
 };
 
 void	*tm_cfg = &default_tm_cfg;
@@ -171,5 +172,9 @@ cfg_def_t	tm_cfg_def[] = {
 	{"cancel_b_method",	CFG_VAR_INT,	0, 2, cancel_b_flags_fixup, 0,
 		"How to cancel branches on which no replies were received: 0 - fake"
 		" reply, 1 - retransmitting the request, 2 - send cancel"},
+	{"reparse_on_dns_failover",	CFG_VAR_INT,	0, 1, reparse_on_dns_failover_fixup, 0,
+		"if set to 1, the SIP message after a DNS failover is "
+		"constructed from the outgoing message buffer of the failed "
+		"branch instead of from the received request"},
 	{0, 0, 0, 0, 0, 0}
 };

+ 1 - 0
modules/tm/config.h

@@ -127,6 +127,7 @@ struct cfg_group_tm {
 	unsigned int	tm_blst_methods_add;
 	unsigned int	tm_blst_methods_lookup;
 	unsigned int	cancel_b_flags;
+	int	reparse_on_dns_failover;
 };
 
 extern struct cfg_group_tm	default_tm_cfg;