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.
rtpengine/t/test-ice.pl

17 lines
369 B

#!/usr/bin/perl
use strict;
use warnings;
use NGCP::Rtpengine::Test;
my $r = NGCP::Rtpengine::Test->new();
my $a = $r->client(ice => 1);
my $b = $r->client(sockdomain => &Socket::AF_INET);
$r->timer_once(3, sub { $b->answer($a) });
$r->timer_once(5, sub { $a->start_rtp(); $b->start_rtp(); });
$a->offer($b, ICE => 'remove', 'address-family' => 'IP4');
$r->run();