ozmod_analog_em: allow longer dialstrings
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@843 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
8ba94325b2
commit
65124ad555
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue