diff --git a/t/auto-daemon-tests-ice-force-answer.pl b/t/auto-daemon-tests-ice-force-answer.pl new file mode 100644 index 000000000..48154f0a9 --- /dev/null +++ b/t/auto-daemon-tests-ice-force-answer.pl @@ -0,0 +1,79 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use NGCP::Rtpengine::Test; +use NGCP::Rtpclient::SRTP; +use NGCP::Rtpengine::AutoTest; +use Test::More; + +# Regression coverage for issue #2161: forced ICE towards a plain-RTP peer +# that explicitly rejects ICE in its answer. The answer towards the +# originating plain-RTP peer must not invent ICE, even when the answer +# control request specifies ICE=force. +autotest_start(qw(--config-file=none -t -1 -i 203.0.113.1 -i 2001:db8:4321::1 + -n 2223 -f -L 7 -E)) or die; + +my ($sock_a, $sock_b, $port_a, $port_b); +($sock_a, $sock_b) = new_call( + [qw(198.51.100.1 7320)], + [qw(198.51.100.3 7322)], +); + +($port_a) = offer('forced ICE offer, plain RTP peer', { + ICE => 'force', +}, < 'force', +}, <