aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authordbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-22 23:56:55 +0000
committerdbailey <dbailey@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-22 23:56:55 +0000
commita3a74011ad14d1a46a6b9088b6794340fe66e363 (patch)
tree5bcfd68ee1c6ce3d7f416c95b6593c0f2cc3630c /channels/chan_zap.c
parent92539559f83e574f744f4a03d084103cb71d0f05 (diff)
Add protection to chan_zap build when NEONMWI events are not defined
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104045 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 360f5ade1..61552421c 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -7313,8 +7313,10 @@ static void *mwi_thread(void *data)
res = zt_get_event(mtd->pvt->subs[SUB_REAL].zfd);
switch (res) {
+#ifdef HAVE_ZAPTEL_NEONMWI
case ZT_EVENT_NEONMWI_ACTIVE:
case ZT_EVENT_NEONMWI_INACTIVE:
+#endif
case ZT_EVENT_NONE:
case ZT_EVENT_BITSCHANGED:
break;
@@ -7639,6 +7641,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
i->channel);
zap_destroy_channel_bynum(i->channel);
break;
+#ifdef HAVE_ZAPTEL_NEONMWI
case ZT_EVENT_NEONMWI_ACTIVE:
if (i->mwimonitor_neon) {
notify_message(i->mailbox, 1);
@@ -7651,6 +7654,7 @@ static int handle_init_event(struct zt_pvt *i, int event)
ast_log(LOG_NOTICE, "NEON MWI cleared for channel %d, mailbox %s\n", i->channel, i->mailbox);
}
break;
+#endif
}
return 0;
}