From b6dc5b7d28e984e148aab27fbe8e94144c829024 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 6 May 2021 15:15:04 +0200 Subject: [PATCH] TT#116100 bin/scenario.pl: try to get subscribe info even with peer_host Change-Id: I1f64d473d624df5336acdfd6c70d28d6e2d31b50 --- bin/scenario.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/scenario.pl b/bin/scenario.pl index f536ab28..fdc9d9d6 100755 --- a/bin/scenario.pl +++ b/bin/scenario.pl @@ -352,14 +352,14 @@ sub generate { # by default foreign is no $resp->{foreign} = "no" unless defined($resp->{foreign}); - if(not defined($resp->{peer_host}) and $resp->{foreign} ne "yes") + try { get_subs_info($data->{subscribers}, $resp); - } else { + } catch { $resp->{devid} = $resp->{username}; $resp->{auth_username} = $resp->{username}; $resp->{alias} = []; - } + }; $resp->{password} = "" unless defined($resp->{password}); # by default responder is active $resp->{active} = "yes" unless defined($resp->{active});