summaryrefslogtreecommitdiff
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
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
-rw-r--r--zaptel.h6
-rw-r--r--zconfig.h8
2 files changed, 14 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
diff --git a/zconfig.h b/zconfig.h
index 029e55d..603def6 100644
--- a/zconfig.h
+++ b/zconfig.h
@@ -13,6 +13,14 @@
/* Zaptel compile time options */
/*
+ * Uncomment if you have a European phone, or any other phone with a
+ * short flash time.
+ * This will stop the flash being mis-detected as a pulse dial "1" on
+ * phones with short flashes
+ */
+/* #define SHORT_FLASH_TIME */
+
+/*
* Uncomment to disable calibration and/or DC/DC converter tests
* (not generally recommended)
*/