From f06574ef3bfd9f51cef6a61d000ff4249993b4fa Mon Sep 17 00:00:00 2001 From: jim Date: Sat, 11 Sep 2004 15:48:45 +0000 Subject: Added outbound pulse dialing git-svn-id: http://svn.digium.com/svn/zaptel/trunk@457 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'zaptel.h') 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; -- cgit v1.2.3