MT#55283 don't accept incompatible codecs

A matching payload type number in an answer might not be enough to
establish compatible codecs. Also check the format parameters. Reject
and ignore answer codecs that are not compatible.

Change-Id: I12a1287216886926ec4b3c704029c923f815b429
(cherry picked from commit 9c00f30475)
(cherry picked from commit 71ff9210ce)
mr12.5
Richard Fuchs 3 months ago
parent 8d34d4c4dd
commit 76bfb0e707

@ -5206,6 +5206,8 @@ void __codec_store_populate(struct codec_store *dst, struct codec_store *src, st
rtp_payload_type *pt = l->data;
rtp_payload_type *orig_pt = t_hash_table_lookup(orig_dst.codecs,
GINT_TO_POINTER(pt->payload_type));
if (orig_pt && !rtp_payload_type_eq_compat(orig_pt, pt))
orig_pt = NULL;
if (a.answer_only && !orig_pt) {
if (a.allow_asymmetric)
orig_pt = codec_store_find_compatible(&orig_dst, pt);

Loading…
Cancel
Save