func_frame_drop: Add debug messages for dropped frames.

Add debug messages in scenarios where frames that are usually processed
are dropped or skipped.

Resolves: #1371
(cherry picked from commit 95becab186)
This commit is contained in:
Naveen Albert
2025-08-14 19:40:27 -04:00
committed by George Joseph
parent 8d3abb065e
commit bcc3d38e46
2 changed files with 6 additions and 1 deletions

View File

@@ -2645,8 +2645,9 @@ int ast_raw_answer_with_stream_topology(struct ast_channel *chan, struct ast_str
ast_channel_unlock(chan);
break;
case AST_STATE_UP:
break;
/* Fall through */
default:
ast_debug(2, "Skipping answer, since channel state on %s is %s\n", ast_channel_name(chan), ast_state2str(ast_channel_state(chan)));
break;
}