[zaptel-commits] russell: trunk r1303 - in /trunk: zaptel.h zconfig.h

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Sun Aug 13 19:48:34 MST 2006


Author: russell
Date: Sun Aug 13 21:48:33 2006
New Revision: 1303

URL: http://svn.digium.com/view/zaptel?rev=1303&view=rev
Log:
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)

Modified:
    trunk/zaptel.h
    trunk/zconfig.h

Modified: trunk/zaptel.h
URL: http://svn.digium.com/view/zaptel/trunk/zaptel.h?rev=1303&r1=1302&r2=1303&view=diff
==============================================================================
--- trunk/zaptel.h (original)
+++ trunk/zaptel.h Sun Aug 13 21:48:33 2006
@@ -950,7 +950,13 @@
 #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

Modified: trunk/zconfig.h
URL: http://svn.digium.com/view/zaptel/trunk/zconfig.h?rev=1303&r1=1302&r2=1303&view=diff
==============================================================================
--- trunk/zconfig.h (original)
+++ trunk/zconfig.h Sun Aug 13 21:48:33 2006
@@ -11,6 +11,14 @@
 #endif
 
 /* 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



More information about the zaptel-commits mailing list