[Freeswitch-svn] [commit] r11266 - freeswitch/trunk/src
FreeSWITCH SVN
brian at freeswitch.org
Fri Jan 16 17:17:35 PST 2009
Author: brian
Date: Fri Jan 16 19:17:35 2009
New Revision: 11266
Log:
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.
Modified:
freeswitch/trunk/src/switch_rtp.c
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Fri Jan 16 19:17:35 2009
@@ -1447,6 +1447,9 @@
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 @@
}
if (rtp_session->dtmf_data.in_digit_ts) {
+ if (!switch_rtp_ready(rtp_session)) {
+ goto end;
+ }
switch_cond_next();
goto recvfrom;
}
More information about the Freeswitch-svn
mailing list