freetdm: ftdm_r2 - process only OOB events

This commit is contained in:
Moises Silva 2010-12-08 22:55:43 -05:00
parent 1ee94f343a
commit b02682bdbe
2 changed files with 4 additions and 1 deletions

View File

@ -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:
{

View File

@ -52,7 +52,6 @@
#define __USE_BSD
#endif
#include <unistd.h>
#endif
#include "freetdm.h"