aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-02 13:57:07 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-02 13:57:07 +0000
commit1915dc915c4d95b91e6acc663d0ef7636ac4773d (patch)
tree79ad16346a6d71561f28463a196304f47829c497 /channels/chan_dahdi.c
parent09e5962d40ffb0e6bb5870ce44c813f5a3101581 (diff)
Merged revisions 164602 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r164602 | russell | 2008-12-16 08:17:45 -0600 (Tue, 16 Dec 2008) | 7 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.0@185960 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 2c6fc44d2..2ea20f612 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -8168,7 +8168,7 @@ static void *do_monitor(void *data)
if (last->msgstate != res) {
int x;
ast_debug(1, "Message status for %s changed from %d to %d on %d\n", last->mailbox, last->msgstate, res, last->channel);
- 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));