summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authorrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-14 02:48:33 +0000
committerrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-08-14 02:48:33 +0000
commit712c8a90aff9de85f3e224cad7b1294744d8b8e5 (patch)
treeff9b2b81f20d8a4ae3391a175cf2102413f077de /zaptel.h
parent8f90c084804ef50891accaa97a3df11a43dce959 (diff)
add a SHORT_FLASH_TIME option to zconfig.h for european phones with short flash
times that sometimes get misinterpreted as a pulse digit 1 (issue #7365, gagravarr) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1303 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rw-r--r--zaptel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index d7c67df..1c034b9 100644
--- a/zaptel.h
+++ b/zaptel.h
@@ -950,7 +950,13 @@ struct zt_tone_def { /* Structure for zone programming */
#define ZT_DEFAULT_PULSEAFTERTIME 750 /* 750ms between dial pulse digits */
#define ZT_MINPULSETIME (15 * 8) /* 15 ms minimum */
+
+#ifdef SHORT_FLASH_TIME
+#define ZT_MAXPULSETIME (80 * 8) /* we need 80 ms, not 200ms, as we have a short flash */
+#else
#define ZT_MAXPULSETIME (200 * 8) /* 200 ms maximum */
+#endif
+
#define ZT_PULSETIMEOUT ((ZT_MAXPULSETIME / 8) + 50)
#define ZT_RINGTRAILER (50 * 8) /* Don't consider a ring "over" until it's been gone at least this