MT#5947 Add a way to use a wrong password for auth on the caller

mr3.3.1
Victor Seva 13 years ago
parent 053b69b092
commit 89d4e27bbe

@ -151,6 +151,8 @@ scenario.yml file syntax:
If foreign: yes then sipp_scenario_responderXX.xml will be run with 5060 port.
If password_wrong: yes then the caller is going to use 'wrongpass' as password.
Example:
subscribers:
@ -184,6 +186,7 @@ scenario.yml file syntax:
username: testuser1003
domain: spce.test
proto: udp
password_wrong: yes
responders:
- ip: 127.126.0.1 --> sipp_scenario_responder01.xml
username: testuser1002

@ -119,6 +119,11 @@ sub generate
$_->{password} = "" unless defined($_->{password});
# by default proto is udp
$_->{proto} = "udp" unless defined($_->{proto});
$_->{password_wrong} = "no" unless defined($_->{password_wrong});
if($_->{password_wrong} eq "yes")
{
$_->{password} = "wrongpass";
}
my $auth = "[authentication username=$_->{username} password=$_->{password}]";
my $csv_data = [$_->{username}, $auth, $_->{domain}];
$csv->{caller}->print($io_caller, $csv_data);

Loading…
Cancel
Save