提交 12c0f375 authored 作者: Brian West's avatar Brian West

If you happen to be pressing a digit while you end a call make sure we hangup…

If you happen to be pressing a digit while you end a call make sure we hangup faster instead of blocking for the dtmf sanity to fail.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11266 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1340723f
......@@ -1447,6 +1447,9 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
rtp_session->dtmf_data.in_digit_sanity = 0;
do_cng = 1;
} else {
if (!switch_rtp_ready(rtp_session)) {
goto end;
}
switch_cond_next();
goto recvfrom;
}
......@@ -1467,6 +1470,9 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
}
if (rtp_session->dtmf_data.in_digit_ts) {
if (!switch_rtp_ready(rtp_session)) {
goto end;
}
switch_cond_next();
goto recvfrom;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论