提交 64b76671 authored 作者: Mathieu Rene's avatar Mathieu Rene

ozmod_analog_em: allow longer dialstrings

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@843 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 fc0487ac
......@@ -137,8 +137,9 @@ static ZIO_SIG_CONFIGURE_FUNCTION(zap_analog_em_configure_span)
digit_timeout = 2000;
}
if (max_dialstr < 2 || max_dialstr > 20) {
max_dialstr = 11;
if (max_dialstr < 2 || max_dialstr > MAX_DIALSTRING) {
zap_log(ZAP_LOG_ERROR, "Invalid max_dialstr, setting to %d\n", MAX_DIALSTRING);
max_dialstr = MAX_DIALSTRING;
}
span->start = zap_analog_em_start;
......
......@@ -40,6 +40,8 @@
#define ZAP_ANALOG_EM_H
#include "openzap.h"
#define MAX_DIALSTRING 256
typedef enum {
ZAP_ANALOG_EM_RUNNING = (1 << 0)
} zap_analog_em_flag_t;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论