From 587bb373b9c8f868134c380ca1f8280c8a498d67 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Fri, 29 Jul 2011 14:01:49 -0400 Subject: [PATCH] freetdm: fix event reporting in sangoma isdn --- libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c index 071522718c..c3aa964d4d 100644 --- a/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c +++ b/libs/freetdm/src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn.c @@ -366,11 +366,10 @@ static void *ftdm_sangoma_isdn_io_run(ftdm_thread_t *me, void *obj) waitms = 1000; memset(poll_events, 0, sizeof(short)*span->chan_count); - poll_events[i] |= FTDM_EVENTS; - for (i = 0, citer = ftdm_span_get_chan_iterator(span, chaniter); citer; citer = ftdm_iterator_next(citer), i++) { ftdmchan = ftdm_iterator_current(citer); + poll_events[i] |= FTDM_EVENTS; if (FTDM_IS_VOICE_CHANNEL(ftdmchan)) { if (ftdm_test_flag(ftdmchan, FTDM_CHANNEL_RX_DISABLED)) { poll_events[i] |= FTDM_READ;