summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-06-06 02:47:53 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-06-06 02:47:53 +0000
commit21224b4ad18a623fbfc481242048e28fdbfaea86 (patch)
tree9648dec8ba91fdb90a2df80b781226c0a3516d94 /zaptel.h
parentb4b9c88ccd625d7840111159f42b72bcda883227 (diff)
FXS fixes, ring debounce
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@191 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index 9d60353..a2b8f82 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -788,6 +788,9 @@ struct zt_tone_def { /* Structure for zone programming */
#define ZT_MAXPULSETIME (150 * 8) /* 150 ms maximum */
#define ZT_PULSETIMEOUT ((ZT_MAXPULSETIME / 8) + 50)
+#define ZT_RINGTRAILER (150 * 8) /* Don't consider a ring "gone" until it's been gone at least this
+ much time */
+
#define ZT_LOOPCODE_TIME 10000 /* send loop codes for 10 secs */
#define ZT_ALARMSETTLE_TIME 5000 /* allow alarms to settle for 5 secs */
#define ZT_AFTERSTART_TIME 500 /* 500ms after start */
@@ -999,6 +1002,9 @@ struct zt_chan {
/* RING debounce timer */
int ringdebtimer;
+
+ /* RING trailing detector to make sure a RING is really over */
+ int ringtrailer;
/* PULSE digit receiver stuff */
int pulsecount;