mirror of https://github.com/sipwise/rtpengine.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.3 KiB
75 lines
1.3 KiB
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use NGCP::Rtpengine::Test;
|
|
use NGCP::Rtpclient::SRTP;
|
|
use NGCP::Rtpengine::AutoTest;
|
|
use Test::More;
|
|
use Test2::Tools::Compare qw();
|
|
use NGCP::Rtpclient::ICE;
|
|
use POSIX;
|
|
|
|
|
|
autotest_start(qw(--config-file=test.conf)) or die;
|
|
|
|
|
|
|
|
|
|
my ($sock_a, $sock_b, $sock_c, $sock_d, $port_a, $port_b, $ssrc, $ssrc_b, $resp,
|
|
$sock_ax, $sock_bx, $port_ax, $port_bx,
|
|
$srtp_ctx_a, $srtp_ctx_b, $srtp_ctx_a_rev, $srtp_ctx_b_rev, $ufrag_a, $ufrag_b,
|
|
@ret1, @ret2, @ret3, @ret4, $srtp_key_a, $srtp_key_b, $ts, $seq, $has_recv);
|
|
|
|
|
|
|
|
new_call;
|
|
|
|
offer('basic call', { }, <<SDP);
|
|
v=0
|
|
o=- 1545997027 1 IN IP4 172.17.0.2
|
|
s=tester
|
|
c=IN IP4 198.51.100.19
|
|
t=0 0
|
|
m=audio 6000 RTP/AVP 0 8
|
|
----------------------------------
|
|
v=0
|
|
o=- 1545997027 1 IN IP4 172.17.0.2
|
|
s=tester
|
|
t=0 0
|
|
m=audio PORT RTP/AVP 0 8
|
|
c=IN IP4 203.0.113.1
|
|
a=rtpmap:0 PCMU/8000
|
|
a=rtpmap:8 PCMA/8000
|
|
a=sendrecv
|
|
a=rtcp:PORT
|
|
SDP
|
|
|
|
|
|
new_call;
|
|
|
|
offer('interface', { 'out-interface' => 'foobar' }, <<SDP);
|
|
v=0
|
|
o=- 1545997027 1 IN IP4 172.17.0.2
|
|
s=tester
|
|
c=IN IP4 198.51.100.19
|
|
t=0 0
|
|
m=audio 6000 RTP/AVP 0 8
|
|
----------------------------------
|
|
v=0
|
|
o=- 1545997027 1 IN IP4 172.17.0.2
|
|
s=tester
|
|
t=0 0
|
|
m=audio PORT RTP/AVP 0 8
|
|
c=IN IP4 203.0.113.1
|
|
a=rtpmap:0 PCMU/8000
|
|
a=rtpmap:8 PCMA/8000
|
|
a=sendrecv
|
|
a=rtcp:PORT
|
|
SDP
|
|
|
|
|
|
|
|
#done_testing;NGCP::Rtpengine::AutoTest::terminate('f00');exit;
|
|
done_testing();
|