浏览代码

topos: expire values for branches and dialogs can be set via params

Daniel-Constantin Mierla 9 年之前
父节点
当前提交
8502ebaf36
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      modules/topos/topos_mod.c

+ 5 - 0
modules/topos/topos_mod.c

@@ -73,6 +73,9 @@ static str _tps_db_url = str_init(DEFAULT_DB_URL);
 int _tps_param_mask_callid = 0;
 int _tps_sanity_checks = 0;
 
+extern int _tps_branch_expire;
+extern int _tps_dialog_expire;
+
 sanity_api_t scb;
 
 int tps_msg_received(void *data);
@@ -90,6 +93,8 @@ static param_export_t params[]={
 	{"db_url",			PARAM_STR, &_tps_db_url},
 	{"mask_callid",		PARAM_INT, &_tps_param_mask_callid},
 	{"sanity_checks",	PARAM_INT, &_tps_sanity_checks},
+	{"branch_expire",	PARAM_INT, &_tps_branch_expire},
+	{"dialog_expire",	PARAM_INT, &_tps_dialog_expire},
 	{0,0,0}
 };