From b02682bdbee84142708b4a8b97ca67ad4131ac9e Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Wed, 8 Dec 2010 22:55:43 -0500 Subject: [PATCH] freetdm: ftdm_r2 - process only OOB events --- libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c | 4 ++++ libs/freetdm/src/testsangomaboost.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c index ab85d2b4d6..cfb57b28e6 100644 --- a/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c +++ b/libs/freetdm/src/ftmod/ftmod_r2/ftmod_r2.c @@ -988,6 +988,10 @@ static int ftdm_r2_io_get_oob_event(openr2_chan_t *r2chan, openr2_oob_event_t *e return -1; } + if (fevent->e_type != FTDM_EVENT_OOB) { + return 0; + } + switch (fevent->enum_id) { case FTDM_OOB_CAS_BITS_CHANGE: { diff --git a/libs/freetdm/src/testsangomaboost.c b/libs/freetdm/src/testsangomaboost.c index e9042eef17..01e5a6be22 100644 --- a/libs/freetdm/src/testsangomaboost.c +++ b/libs/freetdm/src/testsangomaboost.c @@ -52,7 +52,6 @@ #define __USE_BSD #endif #include -#endif #include "freetdm.h"