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
This commit is contained in:
Brian West 2009-01-17 01:17:35 +00:00
parent 1340723feb
commit 12c0f37533

View File

@ -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;
}