@@ -1659,6 +1659,70 @@ sub stun_succ {
1659
1659
1660
1660
if ($extended_tests) {
1661
1661
1662
+ ($sock_a, $sock_b) = new_call([qw(198.51.100.43 6060)], [qw(198.51.100.43 6062)]);
1663
+
1664
+ ($port_a) = offer('opus fmtp options, full offer list',
1665
+ { codec => { transcode =>
1666
+ ['opus/48000/2///maxaveragebitrate--40000;maxplaybackrate--32000;sprop-stereo--0;stereo--0;cbr--0;useinbandfec--0;usedtx--0;sprop-maxcapturerate--16000',
1667
+ 'PCMU'],
1668
+ mask => ['all'] } }, <<SDP);
1669
+ v=0
1670
+ o=- 1545997027 1 IN IP4 172.17.0.2
1671
+ s=tester
1672
+ c=IN IP4 198.51.100.43
1673
+ t=0 0
1674
+ m=audio 6060 RTP/AVP 0 8 101 13
1675
+ a=rtpmap:0 PCMU/8000
1676
+ a=rtpmap:8 PCMA/8000
1677
+ a=rtpmap:101 telephone-event/8000
1678
+ a=fmtp:101 0-15
1679
+ a=rtpmap:13 CN/8000
1680
+ a=ptime:20
1681
+ ----------------------------------
1682
+ v=0
1683
+ o=- 1545997027 1 IN IP4 172.17.0.2
1684
+ s=tester
1685
+ c=IN IP4 203.0.113.1
1686
+ t=0 0
1687
+ m=audio PORT RTP/AVP 96 0
1688
+ a=rtpmap:96 opus/48000/2
1689
+ a=fmtp:96 stereo=0; sprop-stereo=0; useinbandfec=0; cbr=0; maxplaybackrate=32000; maxaveragebitrate=40000; sprop-maxcapturerate=16000
1690
+ a=rtpmap:0 PCMU/8000
1691
+ a=sendrecv
1692
+ a=rtcp:PORT
1693
+ a=ptime:20
1694
+ SDP
1695
+
1696
+ ($port_b) = answer('opus fmtp options, full offer list',
1697
+ { }, <<SDP);
1698
+ v=0
1699
+ o=- 1545997027 1 IN IP4 172.17.0.2
1700
+ s=tester
1701
+ c=IN IP4 198.51.100.43
1702
+ t=0 0
1703
+ m=audio 6062 RTP/AVP 96
1704
+ a=rtpmap:96 opus/48000/2
1705
+ a=fmtp:96 maxaveragebitrate=40000;maxplaybackrate=32000;stereo=0;cbr=0;useinbandfec=0;usedtx=0;sprop-maxcapturerate=16000;sprop-stereo=0
1706
+ a=ptime:20
1707
+ a=sendrecv
1708
+ ----------------------------------
1709
+ v=0
1710
+ o=- 1545997027 1 IN IP4 172.17.0.2
1711
+ s=tester
1712
+ c=IN IP4 203.0.113.1
1713
+ t=0 0
1714
+ m=audio PORT RTP/AVP 0
1715
+ a=rtpmap:0 PCMU/8000
1716
+ a=sendrecv
1717
+ a=rtcp:PORT
1718
+ a=ptime:20
1719
+ SDP
1720
+
1721
+ snd($sock_a, $port_b, rtp(0, 8000, 5000, 0x1234, $pcma_1 . $pcma_2));
1722
+ ($ssrc) = rcv($sock_b, $port_a, rtpm(96, 8000, 5000, -1, "\x08\x83\xf9\x97\xc1\x5b\x98\x5f\xdf\x55\x5d\x26\xd7\xf9\x54\xf6\xef\xd7\x11\x03\x1e\xab\x07\xdc\x29\x89\x95\x3d\x2b\x5a\x6f\xfd\xb0\x5a\xb8\xce\x6d\xe8\x61\x9d\x30\xcd\x3a\xba\xb8\x40\xae\x03\xab\xbf\x4d\xb7\x4b\x48\x74\xaa\x66\xfa\xcd\x63\x6d\x15\xa4\x8d\x66\x7f\x9d\xa6\x1c"));
1723
+
1724
+
1725
+
1662
1726
($sock_a, $sock_b) = new_call([qw(198.51.100.43 6024)], [qw(198.51.100.43 6026)]);
1663
1727
1664
1728
($port_a) = offer('opus fmtp options, accept stereo',
0 commit comments