#!/usr/bin/perl use strict; use warnings; use NGCP::Rtpengine::Test; use NGCP::Rtpclient::SRTP; use NGCP::Rtpengine::AutoTest; use Test::More; use IPC::Open3; $ENV{RTPENGINE_EXTENDED_TESTS} or exit(); $ENV{RTPENGINE_3GPP_EVS_LIB} or exit(); autotest_start(qw(--config-file=none -t -1 -i 203.0.113.1 -i 2001:db8:4321::1 -n 2223 -f -L 7 -E), "--evs-lib-path=$ENV{RTPENGINE_3GPP_EVS_LIB}") or die; my ($sock_a, $sock_b, $port_a, $port_b, $ssrc, $ssrc_b, $resp, $srtp_ctx_a, $srtp_ctx_b, @ret1, @ret2); new_call; offer('EVS codec accept basic', { codec => { accept => ['EVS'] } }, < { accept => ['EVS'] } }, < { accept => ['EVS/16000/1///evs-mode-switch=1;hf-only=1'] } }, < { accept => ['EVS/16000/1///hf-only=1'] } }, < { accept => ['EVS/16000/1///hf-only=1'] } }, < { accept => ['EVS/16000/1///hf-only=1'] } }, < { accept => ['EVS/16000/1///hf-only=1;br=8-32'] } }, < { accept => ['EVS/16000/1///hf-only=1;br=6-50'] } }, < { accept => ['EVS/16000/1///evs-mode-switch=1;mode-set=3,4,5,6'] } }, < { transcode => ['PCMA'] } }, < { transcode => ['PCMA'] } }, < { transcode => ['EVS'] } }, < { transcode => ['PCMA', 'PCMU'] } }, < { transcode => ['EVS/16000/1///hf-only=1'] } }, < { transcode => ['EVS/16000/1///evs-mode-switch=1'] } }, < { transcode => ['PCMA','PCMU'] } }, < { transcode => ['EVS/16000/1///evs-mode-switch=1;hf-only=1'] } }, < { transcode => ['EVS/16000/1/96000//hf-only=1'] } }, < { transcode => ['EVS/16000/1///hf-only=1;br=96'] } }, < { transcode => ['EVS/16000/1///hf-only=1;br=24.4-96'] } }, < mode 6 ($port_a) = offer('EVS forward bw=nb', { codec => { transcode => ['EVS/16000/1/48800//hf-only=1;bw=nb'] } }, < { transcode => ['EVS/16000/1///cmr=1'] } }, < { transcode => ['EVS/16000/1///evs-mode-switch=1;mode-set=2'] } }, < { transcode => ['EVS/16000/1///evs-mode-switch=1;mode-set=7'] } }, < { transcode => ['EVS'] } }, < { transcode => ['EVS/16000/1///hf-only=1;br=5.9'] } }, <