additional options for test scripts

Change-Id: Idbbcc5323fa94f535ef7f868413f90800a1625ad
changes/85/23185/1
Richard Fuchs 7 years ago
parent 0224a49162
commit 89c0aa167d

@ -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

@ -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