summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDoug Bailey <dbailey@digium.com>2009-01-21 15:39:46 +0000
committerDoug Bailey <dbailey@digium.com>2009-01-21 15:39:46 +0000
commit613ed956297773445ac225da4d8129eb9df73b10 (patch)
tree7e43011c546fbee75f25fd7669d16aefd579bb76 /include
parent9b8c4f9965b097601a256452e5fe6dc6f9bdc8ad (diff)
Change the DAHDI_VMWI ioctl call to pass data via structure.
Changed wctdm and wctdm24xxp to handle these calls. (issue #14104) Reported by: alecdavis Patches: mwiioctl_structure_dahdi.diff2.txt uploaded by dbailey (license ) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5785 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/user.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h
index c7b45c2..a94ef38 100644
--- a/include/dahdi/user.h
+++ b/include/dahdi/user.h
@@ -967,19 +967,24 @@ struct dahdi_hwgain {
#define DAHDI_TC_GETINFO _IOWR(DAHDI_TC_CODE, 2, struct dahdi_transcoder_info)
/*
+ * VMWI Specification
+ */
+struct dahdi_vmwi_info {
+ unsigned int messages; /* Number of messages pending */
+ unsigned char fsk; /* default FSK, */
+ unsigned char rpas; /* Ring Pulse Alert Signal precedes the FSK spill */
+ unsigned char linereverse; /* Line reversal message indicator */
+ unsigned char hvdc; /* Line reversal message indicator */
+ unsigned char hvac; /* Line reversal message indicator */
+};
+
+/*
* VoiceMail Waiting Indication (VMWI) -- implemented by low-level driver.
* Value: number of waiting messages (hence 0: switch messages off).
*/
-#define DAHDI_VMWI _IOWR(DAHDI_CODE, 94, int)
+#define DAHDI_VMWI _IOWR(DAHDI_CODE, 94, struct dahdi_vmwi_info)
-#define DAHDI_VMWI_NUMBER_MASK (0xffff) /* Number of messages pending for VMWI */
-#define DAHDI_VMWI_FSK (1 << 16) /* default FSK, no Ring Pulse Alert Signal*/
-#define DAHDI_VMWI_RPAS (1 << 17) /* Ring Pulse Alert Signal then FSK */
-#define DAHDI_VMWI_LREV (1 << 18) /* Line Reversal */
-#define DAHDI_VMWI_HVDC (1 << 19) /* HV 90VDC */
-#define DAHDI_VMWI_HVAC (1 << 20) /* HV 90VAC Neon lamp */
-
-/*
+/*
* Startup or Shutdown a span
*/
#define DAHDI_STARTUP _IOW(DAHDI_CODE, 99, int)