#!/usr/bin/perl use strict; use warnings; use NGCP::Rtpengine::Test; use NGCP::Rtpclient::SRTP; use NGCP::Rtpengine::AutoTest; use Test::More; autotest_start(qw(--config-file=none -t -1 -i 203.0.113.1 -n 2223 -f -L 7 -E)) or die; my ($sock_a, $sock_b, $sock_c, $sock_d, $sock_e, $port_a, $port_b); ($sock_a, $sock_b, $sock_c, $sock_d, $sock_e) = new_call( [qw(198.51.100.1 2010)], # caller [qw(198.51.100.3 2012)], # callee - from SDP [qw(198.51.100.3 2032)], # callee - different port [qw(198.51.100.6 2012)], # callee - different address [qw(198.51.100.6 2032)], # callee - all different ); ($port_a) = offer('default, forward', { flags => ['asymmetric'] }, < ['asymmetric'] }, < ['asymmetric'] }, < ['asymmetric'] }, < ['asymmetric', 'strict source'] }, < ['asymmetric', 'strict source'] }, < ['asymmetric', 'strict source'] }, < ['asymmetric', 'strict source'] }, < ['asymmetric'], 'endpoint learning' => 'off' }, < ['asymmetric'], 'endpoint learning' => 'off' }, < ['asymmetric'], 'endpoint learning' => 'off' }, < ['asymmetric'], 'endpoint learning' => 'off' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'off' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'off' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'off' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'off' }, < ['asymmetric'], 'endpoint learning' => 'heuristic' }, < ['asymmetric'], 'endpoint learning' => 'heuristic' }, < ['asymmetric'], 'endpoint learning' => 'heuristic' }, < ['asymmetric'], 'endpoint learning' => 'heuristic' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'heuristic' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'heuristic' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'heuristic' }, < ['asymmetric', 'strict source'], 'endpoint learning' => 'heuristic' }, <