From 4b4eafee23ddf3b4e6a5b7a3f83ca1a4434c4e69 Mon Sep 17 00:00:00 2001 From: Darwvin Date: Mon, 12 Oct 2026 10:10:54 +0330 Subject: [PATCH] MT#55283 tests: cover ICE=force with non-ICE answer and bidirectional RTP Closes #2207 Change-Id: I37ad0382de75c508b5f2aee88130ef24c338b07c (cherry picked from commit 5af6c5c2cf4647e74b6014ee61bc3637aa7deaa5) (cherry picked from commit 8dd2cd453c98709338b68e5cfd9f155fcbc9a694) --- t/auto-daemon-tests-ice-force-answer.pl | 79 +++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 t/auto-daemon-tests-ice-force-answer.pl 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', +}, <