Browse Source

additional options for test scripts

Change-Id: Idbbcc5323fa94f535ef7f868413f90800a1625ad
changes/85/23185/1
Richard Fuchs 7 years ago
parent
commit
89c0aa167d
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      perl/NGCP/Rtpclient/ICE.pm
  2. +2
    -1
      perl/NGCP/Rtpengine/Test.pm

+ 1
- 1
perl/NGCP/Rtpclient/ICE.pm View File

@ -566,7 +566,7 @@ sub stun_handler_binding_success {
$self->debug("binding success from $address/$port\n");
# check xor address
$comp->{address} eq $hash->{address}->{address} or die;
$comp->{address} eq $hash->{address}->{address} or die("$comp->{address} $hash->{address}->{address}");
$comp->{port} == $hash->{address}->{port} or die;
# we must have remote candidate and a pair


+ 2
- 1
perl/NGCP/Rtpengine/Test.pm View File

@ -54,7 +54,8 @@ sub new {
$self->{timers} = [];
$self->{clients} = [];
$self->{control} = NGCP::Rtpengine->new($args{host} // 'localhost', $args{port} // 2223);
$self->{control} = NGCP::Rtpengine->new($args{host} // $ENV{RTPENGINE_HOST} // 'localhost',
$args{port} // $ENV{RTPENGINE_POR} // 2223);
$self->{callid} = rand();
return $self;


Loading…
Cancel
Save