]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4923 try this
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Feb 2013 20:07:20 +0000 (14:07 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 14 Feb 2013 20:07:25 +0000 (14:07 -0600)
src/switch_rtp.c

index 3dfb93b1ecb5d39924402319ce479d5a2a8b7ea4..88848dd777694c9ca34ae164043099734e0d77ae 100644 (file)
@@ -384,7 +384,7 @@ static handle_rfc2833_result_t handle_rfc2833(switch_rtp_t *rtp_session, switch_
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "DTMF payload offset by 4 bytes.\n");
                }
 
-               if (!(packet[0] || packet[1] || packet[2] || packet[3])) {
+               if (!(packet[0] || packet[1] || packet[2] || packet[3]) && rtp_session->dtmf_data.in_digit_ts) {
                        switch_core_session_t *session = switch_core_memory_pool_get_data(rtp_session->pool, "__session");
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Failed DTMF payload check.\n");
                        rtp_session->dtmf_data.last_digit = 0;