#!/usr/bin/perl use strict; use warnings; use NGCP::Rtpengine::Test; use NGCP::Rtpclient::SRTP; use NGCP::Rtpengine::AutoTest; use Test::More; use POSIX; $ENV{RTPENGINE_EXTENDED_TESTS} or exit(); # long duration tests autotest_start(qw(--config-file=none -t -1 -i 203.0.113.1 -i 2001:db8:4321::1 -n 2223 -c 12345 -f -L 7 -E -u 2222)) or die; my ($sock_a, $sock_b, $sock_ax, $sock_bx, $port_a, $port_ax, $port_b, $port_bx, $ssrc, $resp, $srtp_ctx_a, $srtp_ctx_b, @ret1, @ret2); ($sock_a, $sock_ax, $sock_b, $sock_bx) = new_call( [qw(198.51.100.1 2010)], [qw(198.51.100.1 2011)], [qw(198.51.100.3 2012)], [qw(198.51.100.3 2013)], ); ($port_a, $port_ax) = offer('packet loss control', { ICE => 'remove', replace => ['origin'], flags => ['generate RTCP'] }, < 'remove', replace => ['origin'] }, < ft() }); ($sock_a, $sock_ax, $sock_b, $sock_bx) = new_call( [qw(198.51.100.1 2014)], [qw(198.51.100.1 2015)], [qw(198.51.100.3 2016)], [qw(198.51.100.3 2017)], ); ($port_a, $port_ax) = offer('packet loss control', { ICE => 'remove', replace => ['origin'], flags => ['generate RTCP'] }, < 'remove', replace => ['origin'] }, < ft() }); ($sock_a, $sock_ax, $sock_b, $sock_bx) = new_call( [qw(198.51.100.1 2022)], [qw(198.51.100.1 2023)], [qw(198.51.100.3 2024)], [qw(198.51.100.3 2025)], ); ($port_a, $port_ax) = offer('SRTCP', { ICE => 'remove', replace => ['origin'], flags => ['generate RTCP'], DTLS => 'off' }, < 'remove', replace => ['origin'] }, < ft() }); done_testing(); #NGCP::Rtpengine::AutoTest::terminate('foo');