diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-03-19 04:03:05 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-03-19 04:03:05 +0000 |
commit | 5704d6f9a25a86b04569f943be1469e11aceb0f8 (patch) | |
tree | 881630c9bf4beef730dac9af02c42998caf463a5 /zaptel.h | |
parent | ff716f29298df0a0e69c44402fb1f3b57a3eaede (diff) |
Add timer PING/PONG
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@326 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rwxr-xr-x | zaptel.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -558,6 +558,16 @@ char dialstr[ZT_MAX_DTMF_BUF]; #define ZT_ONHOOKTRANSFER _IOW (ZT_CODE, 51, int) /* + * Queue Ping + */ +#define ZT_TIMERPING _IOW (ZT_CODE, 42, int) + +/* + * Acknowledge ping + */ +#define ZT_TIMERPONG _IOW (ZT_CODE, 53, int) + +/* * 60-80 are reserved for private drivers * 80-85 are reserved for dynamic span stuff */ @@ -736,6 +746,12 @@ struct zt_tone_def { /* Structure for zone programming */ /* Ret value for the beginning of a pulse coming on its way */ #define ZT_EVENT_PULSE_START 14 +/* Timer event -- timer expired */ +#define ZT_EVENT_TIMER_EXPIRED 15 + +/* Timer event -- ping ready */ +#define ZT_EVENT_TIMER_PING 16 + #define ZT_EVENT_PULSEDIGIT (1 << 16) /* This is OR'd with the digit received */ #define ZT_EVENT_DTMFDIGIT (1 << 17) /* Ditto for DTMF */ |