summaryrefslogtreecommitdiff
path: root/fxstest.c
diff options
context:
space:
mode:
authorDoug Bailey <dbailey@digium.com>2009-01-27 15:14:36 +0000
committerDoug Bailey <dbailey@digium.com>2009-01-27 15:14:36 +0000
commitcdbffe4f64fd820773731d26926b6cb1bd79353a (patch)
treedaf0129e505b010fd90db4e0e5da447f32f9b601 /fxstest.c
parent3a01a91db6e338df3bb6aeb6ba262d49df96c2f8 (diff)
Break VMWI ioctl calls into two separate calls to maintain old revision compatibility
(issue #14104) Reported by: alecdavis Tested by: dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5827 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'fxstest.c')
-rw-r--r--fxstest.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fxstest.c b/fxstest.c
index 1cd2fda..88e1175 100644
--- a/fxstest.c
+++ b/fxstest.c
@@ -82,25 +82,25 @@ int main(int argc, char *argv[])
} else if ( !strcasecmp(argv[2], "hvdc") ) {
mwisend_setting.vmwi_type = DAHDI_VMWI_HVDC;
}
+ res = ioctl(fd, DAHDI_VMWI_CONFIG, &mwisend_setting);
- mwisend_setting.messages = 1;
- res = ioctl(fd, DAHDI_VMWI, &mwisend_setting);
+ x = 1;
+ res = ioctl(fd, DAHDI_VMWI, &x);
if (res) {
fprintf(stderr, "Unable to set %s ...\n", argv[2]);
} else {
fprintf(stderr, "Set 1 Voice Message...\n");
sleep(5);
- mwisend_setting.messages = 2;
- ioctl(fd, DAHDI_VMWI, &mwisend_setting);
+ x = 2;
+ ioctl(fd, DAHDI_VMWI, &x);
fprintf(stderr, "Set 2 Voice Messages...\n");
sleep(5);
- mwisend_setting.messages = 0;
- ioctl(fd, DAHDI_VMWI, &mwisend_setting);
+ x = 0;
+ ioctl(fd, DAHDI_VMWI, &x);
fprintf(stderr, "Set No Voice messages...\n");
sleep(2);
-
mwisend_setting.vmwi_type = 0;
}
} else if (!strcasecmp(argv[2], "ring")) {