File rtp_engine.diff of Package asterisk
--- a/main/rtp_engine.c 2025-11-20 19:11:47.000000000 +0100
+++ b/main/rtp_engine.c 2025-12-12 19:05:44.477566836 +0100
@@ -2144,16 +2144,6 @@
if (payload == 13 && code == AST_RTP_CN) {
return payload;
}
-
- ast_rwlock_rdlock(&codecs->codecs_lock);
- if (payload >= 0 && payload < AST_VECTOR_SIZE(&codecs->payload_mapping_tx)){
- type = AST_VECTOR_GET(&codecs->payload_mapping_tx, payload);
- if (!type || (sample_rate != 0 && type->sample_rate != sample_rate)) {
- /* Don't use the type if we can't find it or it doesn't match the supplied sample_rate */
- payload = -1;
- }
- }
- ast_rwlock_unlock(&codecs->codecs_lock);
}
return payload;