Always allow checking for payload 101 101 is the asterisk default rtp payload number for DTMF. It is also hard-coded into motif for at least outbound. I think it should be registered with the dynamic PT stuff when it is used, but in tests we would hit this code path -- allowing it to look up 101's default assignment when otherwise unassigned at least makes it work for now.
1 files changed, 1 insertions(+), 1 deletions(-) M main/rtp_engine.c
M main/rtp_engine.c => main/rtp_engine.c +1-1
@@ 1476,7 1476,7 @@ struct ast_rtp_payload_type *ast_rtp_codecs_get_payload(struct ast_rtp_codecs *c } ast_rwlock_unlock(&codecs->codecs_lock); if (!type && payload <= AST_RTP_PT_LAST_STATIC) { if (!type && (payload <= AST_RTP_PT_LAST_STATIC || payload == 101)) { ast_rwlock_rdlock(&static_RTP_PT_lock); type = ao2_bump(static_RTP_PT[payload]); ast_rwlock_unlock(&static_RTP_PT_lock);