From cdbffe4f64fd820773731d26926b6cb1bd79353a Mon Sep 17 00:00:00 2001 From: Doug Bailey Date: Tue, 27 Jan 2009 15:14:36 +0000 Subject: 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 --- fxstest.c | 14 +++++++------- 1 file 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")) { -- cgit v1.2.3