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

added some comments to clarify zap_ss7_events_run stuff

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@807 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 3777e8c5
...@@ -1064,15 +1064,9 @@ static __inline__ void check_events(zap_span_t *span, int ms_timeout) ...@@ -1064,15 +1064,9 @@ static __inline__ void check_events(zap_span_t *span, int ms_timeout)
{ {
zap_event_t *event; zap_event_t *event;
while (zap_span_next_event(span, &event) == ZAP_SUCCESS) { while (zap_span_next_event(span, &event) == ZAP_SUCCESS) {
#if 0 // for now we do nothing with events, this is here
/* Do nothing for now */ // just to have the hardware layer to get any HW DTMF
if (event->enum_id == ZAP_OOB_NOOP) { // events and enqueue the DTMF on the channel (done during zap_span_next_event())
continue;
}
if (process_event(span, event) != ZAP_SUCCESS) {
break;
}
#endif
} }
} }
break; break;
...@@ -1269,7 +1263,8 @@ static zap_status_t zap_ss7_boost_start(zap_span_t *span) ...@@ -1269,7 +1263,8 @@ static zap_status_t zap_ss7_boost_start(zap_span_t *span)
zap_clear_flag(ss7_boost_data, ZAP_SS7_BOOST_RUNNING); zap_clear_flag(ss7_boost_data, ZAP_SS7_BOOST_RUNNING);
return err; return err;
} }
// launch the events thread to handle HW DTMF and possibly
// other events in the future
err=zap_thread_create_detached(zap_ss7_events_run, span); err=zap_thread_create_detached(zap_ss7_events_run, span);
if (err) { if (err) {
zap_clear_flag(ss7_boost_data, ZAP_SS7_BOOST_RUNNING); zap_clear_flag(ss7_boost_data, ZAP_SS7_BOOST_RUNNING);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论