[asterisk-commits] mattf: trunk r80778 - /trunk/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 24 13:05:12 CDT 2007


Author: mattf
Date: Fri Aug 24 13:05:11 2007
New Revision: 80778

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80778
Log:
Add VMWI chan_zap support #9909

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=80778&r1=80777&r2=80778
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Aug 24 13:05:11 2007
@@ -7179,6 +7179,11 @@
 							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);
+#ifdef ZT_VMWI
+								res2 = ioctl(last->subs[SUB_REAL].zfd, ZT_VMWI, res);
+								if (res2)
+									ast_log(LOG_DEBUG, "Unable to control message waiting led on channel %d\n", last->channel);
+#endif
 								x = ZT_FLUSH_BOTH;
 								res2 = ioctl(last->subs[SUB_REAL].zfd, ZT_FLUSH, &x);
 								if (res2)




More information about the asterisk-commits mailing list