summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index b3d5483..3c2bdd9 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -183,6 +183,9 @@ int starttime;
int rxwinktime;
int rxflashtime;
int debouncetime;
+int pulsebreaktime;
+int pulsemaketime;
+int pulseaftertime;
} ZT_PARAMS;
typedef struct zt_spaninfo
@@ -841,6 +844,9 @@ struct zt_tone_def { /* Structure for zone programming */
#define ZT_DEFAULT_RXWINKTIME 300 /* 300ms longest rx wink (to work with the Atlas) */
#define ZT_DEFAULT_RXFLASHTIME 1250 /* 1250ms longest rx flash */
#define ZT_DEFAULT_DEBOUNCETIME 600 /* 600ms of FXS GS signalling debounce */
+#define ZT_DEFAULT_PULSEMAKETIME 50 /* 50 ms of line closed when dial pulsing */
+#define ZT_DEFAULT_PULSEBREAKTIME 50 /* 50 ms of line open when dial pulsing */
+#define ZT_DEFAULT_PULSEAFTERTIME 750 /* 750ms between dial pulse digits */
#define ZT_MINPULSETIME (15 * 8) /* 15 ms minimum */
#define ZT_MAXPULSETIME (150 * 8) /* 150 ms maximum */
@@ -1010,6 +1016,9 @@ struct zt_chan {
int tonep; /* Current position in tone */
struct zt_tone_state ts; /* Tone state */
+ /* Pulse dial stuff */
+ int pdialcount; /* pulse dial count */
+
/* Ring cadence */
int ringcadence[ZT_MAX_CADENCE];
@@ -1070,6 +1079,9 @@ struct zt_chan {
int rxwinktime; /* rx wink time (ms) */
int rxflashtime; /* rx flash time (ms) */
int debouncetime; /* FXS GS sig debounce time (ms) */
+ int pulsebreaktime; /* pulse line open time (ms) */
+ int pulsemaketime; /* pulse line closed time (ms) */
+ int pulseaftertime; /* pulse time between digits (ms) */
/* RING debounce timer */
int ringdebtimer;