]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
If you happen to be pressing a digit while you end a call make sure we hangup faster...
authorBrian West <brian@freeswitch.org>
Sat, 17 Jan 2009 01:17:35 +0000 (01:17 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 17 Jan 2009 01:17:35 +0000 (01:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11266 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index 334984852f7590e63acca77733ae81a2d40091de..b12d117c07aab403d28f919af66bf6f28e5b49ae 100644 (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;
                }