From: Russell Bryant Date: Tue, 16 Dec 2008 14:17:45 +0000 (+0000) Subject: Fix usage of the DAHDI_VMWI ioctl. X-Git-Tag: 1.6.2.0-beta1~597 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f546396c0fea56b50b88218e52cf4e0f5ef11a4c;p=thirdparty%2Fasterisk.git Fix usage of the DAHDI_VMWI ioctl. (closes issue #14090) Reported by: alecdavis Patches: chan_dahdi.VMWI_ioctl.diff.txt uploaded by alecdavis (license 585) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164602 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index b3a728752a..b2ea678247 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -8165,7 +8165,7 @@ static void *do_monitor(void *data) res = has_voicemail(last); if (last->msgstate != res) { /* Set driver resources for signalling VMWI */ - res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, res); + res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, &res); if (res2) { /* TODO: This message will ALWAYS be generated on some cards; any way to restrict it to those cards where it is interesting? */ ast_debug(3, "Unable to control message waiting led on channel %d: %s\n", last->channel, strerror(errno));