提交 b02682bd authored 作者: Moises Silva's avatar Moises Silva

freetdm: ftdm_r2 - process only OOB events

上级 1ee94f34
...@@ -988,6 +988,10 @@ static int ftdm_r2_io_get_oob_event(openr2_chan_t *r2chan, openr2_oob_event_t *e ...@@ -988,6 +988,10 @@ static int ftdm_r2_io_get_oob_event(openr2_chan_t *r2chan, openr2_oob_event_t *e
return -1; return -1;
} }
if (fevent->e_type != FTDM_EVENT_OOB) {
return 0;
}
switch (fevent->enum_id) { switch (fevent->enum_id) {
case FTDM_OOB_CAS_BITS_CHANGE: case FTDM_OOB_CAS_BITS_CHANGE:
{ {
......
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#define __USE_BSD #define __USE_BSD
#endif #endif
#include <unistd.h> #include <unistd.h>
#endif
#include "freetdm.h" #include "freetdm.h"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论