]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert part of 390e6713cce81e6dcc8e94726d34e089aa3d883a
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 10 Mar 2014 19:42:52 +0000 (14:42 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 10 Mar 2014 19:42:52 +0000 (14:42 -0500)
src/switch_rtp.c

index 3fac018e19ccad4e51799140e7c522b24d2e6eb9..aac239947103030f8518e2cb9e5a9e87507253ce 100644 (file)
@@ -660,10 +660,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
                                        rtp_session->dtmf_data.in_digit_ts = 0;
                                        rtp_session->dtmf_data.in_digit_sanity = 0;
                                        rtp_session->dtmf_data.in_digit_queued = 0;
-
-                                       if (!switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) {
-                                               *do_cng = 1;
-                                       }
+                                       *do_cng = 1;
                                } else {
                                        if (!switch_rtp_ready(rtp_session)) {
                                                return RESULT_GOTO_END;
@@ -708,9 +705,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
                                return RESULT_GOTO_RECVFROM;
                        }
                } else {
-                       if (switch_rtp_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER)) {
-                               *do_cng = 1;
-                       }
+                       *do_cng = 1;
                        return RESULT_GOTO_TIMERCHECK;
                }
        }