summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDoug Bailey <dbailey@digium.com>2009-01-22 15:42:38 +0000
committerDoug Bailey <dbailey@digium.com>2009-01-22 15:42:38 +0000
commit3403ce644e15dbfef32e5f267ef9fb09519fe104 (patch)
tree82937d46556a0b934f3488eb8fb573134ce8d1c0 /include
parent2f4b075cdd270f1ce53ce796d8328426e55326ad (diff)
Change structure passed in DAHDI_VMWI ioctl call to make it so new VMWI types do not break the ioctl call
Remove FSK and RPAS from the VMWI types as no driver implemented them and the functionality is in chan_dahdi. (issue #14104) Reported by: alecdavis Patches: mwiioctl_structure_dahdi.diff4.txt uploaded by dbailey (license ) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5799 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/user.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h
index a94ef38..8a06f5f 100644
--- a/include/dahdi/user.h
+++ b/include/dahdi/user.h
@@ -971,13 +971,13 @@ struct dahdi_hwgain {
*/
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 */
+ unsigned int vmwi_type;
};
+#define DAHDI_VMWI_LREV (1 << 0) /* Line Reversal */
+#define DAHDI_VMWI_HVDC (1 << 1) /* HV 90VDC */
+#define DAHDI_VMWI_HVAC (1 << 2) /* HV 90VAC Neon lamp */
+
/*
* VoiceMail Waiting Indication (VMWI) -- implemented by low-level driver.
* Value: number of waiting messages (hence 0: switch messages off).