From 712c8a90aff9de85f3e224cad7b1294744d8b8e5 Mon Sep 17 00:00:00 2001 From: russell Date: Mon, 14 Aug 2006 02:48:33 +0000 Subject: 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 --- zaptel.h | 6 ++++++ zconfig.h | 8 ++++++++ 2 files changed, 14 insertions(+) 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 @@ -12,6 +12,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) -- cgit v1.2.3