提交 abdb9b1f authored 作者: Moises Silva's avatar Moises Silva

added support to read from the configuration file ring_on_ms and ring_off_msg

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@990 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 b11682a9
...@@ -368,6 +368,20 @@ static ZIO_CONFIGURE_FUNCTION(wanpipe_configure) ...@@ -368,6 +368,20 @@ static ZIO_CONFIGURE_FUNCTION(wanpipe_configure)
} else { } else {
wp_globals.flash_ms = num; wp_globals.flash_ms = num;
} }
} else if (!strcasecmp(var, "ring_on_ms")) {
num = atoi(val);
if (num < 500 || num > 5000) {
zap_log(ZAP_LOG_WARNING, "invalid ring_on_ms at line %d (valid range 500 to 5000)\n", lineno);
} else {
wp_globals.ring_on_ms = num;
}
} else if (!strcasecmp(var, "ring_off_ms")) {
num = atoi(val);
if (num < 500 || num > 5000) {
zap_log(ZAP_LOG_WARNING, "invalid ring_off_ms at line %d (valid range 500 to 5000)\n", lineno);
} else {
wp_globals.ring_off_ms = num;
}
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论