From 592af4d3094fa26b04fb379f8b0d24e5b2609f09 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 8 Jul 2020 09:19:25 -0400 Subject: [PATCH] TT#84804 add tests for ICE/DTLS and GH 1035 Change-Id: Id6f25d9918abdc08aa22f2d37316cbcc65859a26 --- t/auto-daemon-tests.pl | 82 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 79 insertions(+), 3 deletions(-) diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index c1ff51834..c8f0d1c0f 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -6,6 +6,7 @@ use NGCP::Rtpengine::Test; use NGCP::Rtpclient::SRTP; use NGCP::Rtpengine::AutoTest; use Test::More; +use NGCP::Rtpclient::ICE; autotest_start(qw(--config-file=none -t -1 -i 203.0.113.1 -i 2001:db8:4321::1 @@ -27,10 +28,86 @@ my $pcma_5 = "\xad\xac\xa2\xa6\xbd\x9a\x06\x3f\x26\x2d\x2c\x2d\x26\x3f\x06\x9a\x -my ($sock_a, $sock_b, $port_a, $port_b, $ssrc, $resp, +my ($sock_a, $sock_b, $sock_c, $sock_d, $port_a, $port_b, $ssrc, $resp, $sock_ax, $sock_bx, $port_ax, $port_bx, $srtp_ctx_a, $srtp_ctx_b, $srtp_ctx_a_rev, $srtp_ctx_b_rev, - @ret1, @ret2, $srtp_key_a, $srtp_key_b, $ts, $seq); + @ret1, @ret2, @ret3, @ret4, $srtp_key_a, $srtp_key_b, $ts, $seq); + + + + +# DTLS early start with ICE (GH 1035 TT 84804) + +($sock_a, $sock_b, $sock_c, $sock_d) = new_call([qw(198.51.100.4 2000)], [qw(198.51.100.4 2001)], [qw(198.51.100.8 3000)], [qw(198.51.100.8 3001)]); + +offer('ICE offer with DTLS', { + ICE => 'remove', 'transport-protocol' => 'RTP/AVP', 'rtcp-mux' => ['demux'], + }, <