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
This commit is contained in:
Naveen Albert
2025-08-14 19:40:27 -04:00
parent d04f273955
commit 00b6ab22a0
2 changed files with 6 additions and 1 deletions

View File

@@ -2652,8 +2652,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;
}