diff --git a/lib/rtplib.c b/lib/rtplib.c index cabccd5f2..4c90b4ae9 100644 --- a/lib/rtplib.c +++ b/lib/rtplib.c @@ -161,7 +161,7 @@ int rtp_payload_type_cmp_nf(const struct rtp_payload_type *a, const struct rtp_p return 1; if (a->channels != b->channels) return 1; - if (str_casecmp_str(&a->encoding_with_params, &b->encoding_with_params)) + if (str_casecmp_str(&a->encoding, &b->encoding)) return 1; return 0; } diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index daa54b11a..be9ac9e60 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -40,6 +40,58 @@ my ($sock_a, $sock_b, $sock_c, $sock_d, $port_a, $port_b, $ssrc, $ssrc_b, $resp, +new_call; + +offer('t/c and implicit number of channels', + { codec => { transcode => ['opus','PCMA'] } }, < { transcode => ['AMR','PCMA'] } }, <