Skip to content

Commit

Permalink
FS-4923 try this
Browse files Browse the repository at this point in the history
  • Loading branch information
anthmFS committed Feb 14, 2013
1 parent d477266 commit b14fd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch_rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b14fd4a

Please sign in to comment.