summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authorrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-08 00:48:22 +0000
committerrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-03-08 00:48:22 +0000
commitb95cc5a36694642fff2a10a84ba95b7d7acf7961 (patch)
treee7ace57e0277ec5c3f4ec8b2f7233a3307db532e /zaptel.h
parenta692d31210e7c4a9477846dee9e7c5043b6ad110 (diff)
Add a constant for ZT_EVENT_REMOVED to allow a driver to hint to userspace that
a channel has been removed. (issue #7256, tzafrir) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2294 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rw-r--r--zaptel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index 2f4f8bd..b5dabec 100644
--- a/zaptel.h
+++ b/zaptel.h
@@ -921,6 +921,9 @@ struct zt_tone_def { /* Structure for zone programming */
/* Echo can disabled event */
#define ZT_EVENT_EC_DISABLED 19
+/* Channel was disconnected. Hint user to close channel */
+#define ZT_EVENT_REMOVED 20
+
#define ZT_EVENT_PULSEDIGIT (1 << 16) /* This is OR'd with the digit received */
#define ZT_EVENT_DTMFDOWN (1 << 17) /* Ditto for DTMF key down event */
#define ZT_EVENT_DTMFUP (1 << 18) /* Ditto for DTMF key up event */