MT#55283 add extra tests for generic codec matching

Change-Id: Ia7ab332f57028caa82b4972e21a5e9e9bdf07a51
pull/1614/head
Richard Fuchs 3 years ago
parent 4b3108da18
commit 49776fefed

@ -1693,6 +1693,58 @@ int main(void) {
packet_seq(B, 0, PCMU_payload, 2080, 13, 0, PCMU_payload);
end();
start();
sdp_pt_s(96, opus, 48000);
sdp_pt(8, PCMA, 8000);
c_accept(opus/48000/2);
offer();
expect(A, "96/opus/48000/2 8/PCMA/8000");
expect(B, "96/opus/48000/2 8/PCMA/8000");
sdp_pt(8, PCMA, 8000);
answer();
expect(A, "96/opus/48000/2");
expect(B, "8/PCMA/8000");
end();
start();
sdp_pt(96, opus, 48000);
sdp_pt(8, PCMA, 8000);
c_accept(opus/48000);
offer();
expect(A, "96/opus/48000 8/PCMA/8000");
expect(B, "96/opus/48000 8/PCMA/8000");
sdp_pt(8, PCMA, 8000);
answer();
expect(A, "96/opus/48000");
expect(B, "8/PCMA/8000");
end();
start();
sdp_pt(96, opus, 48000);
sdp_pt(8, PCMA, 8000);
c_accept(opus);
offer();
expect(A, "96/opus/48000 8/PCMA/8000");
expect(B, "96/opus/48000 8/PCMA/8000");
sdp_pt(8, PCMA, 8000);
answer();
expect(A, "96/opus/48000");
expect(B, "8/PCMA/8000");
end();
start();
sdp_pt_s(96, opus, 48000);
sdp_pt(8, PCMA, 8000);
c_accept(opus);
offer();
expect(A, "96/opus/48000/2 8/PCMA/8000");
expect(B, "96/opus/48000/2 8/PCMA/8000");
sdp_pt(8, PCMA, 8000);
answer();
expect(A, "96/opus/48000/2");
expect(B, "8/PCMA/8000");
end();
return 0;
}

Loading…
Cancel
Save