Browse Source

TT#14008 rtpengine-ctl fix to allow override of default values

Change-Id: Ia5e5aafbfdfa28652c153852a664b3212544f74f
(cherry picked from commit 5fa83ce1cb)
changes/90/38990/2
Richard Fuchs 6 years ago
parent
commit
b4238df96d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      utils/rtpengine-ctl

+ 4
- 1
utils/rtpengine-ctl View File

@ -33,13 +33,16 @@ if (-f $conffile) {
}
}
if ($ip && $ip =~ s/:(\d+)$//) {
if ($ip && $ip =~ s/:(\d+)$// && !$port) {
$port = $1;
}
my $argumentstring = "@ARGV";
$argumentstring = trim($argumentstring);
$ip //= '127.0.0.1';
$port //= 9900;
if (!$argumentstring || !$optret || $port <= 0 || $port > 65535) {
showusage();
exit 1;


Loading…
Cancel
Save