From 12c0f375330ee9729ad077a618dcf11739b00a98 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 17 Jan 2009 01:17:35 +0000 Subject: [PATCH] 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 --- src/switch_rtp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 334984852f..b12d117c07 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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; }