diff --git a/scenarios/auth_fail/0001_test.yml.tt2 b/scenarios/auth_fail/0001_test.yml.tt2 new file mode 100644 index 00000000..002055f6 --- /dev/null +++ b/scenarios/auth_fail/0001_test.yml.tt2 @@ -0,0 +1,27 @@ +# REGISTER scenario +flow: + - start|MAIN: + $fU: testuser1003 + $tU: testuser1003 + - start|ROUTE_NET_INFO: + $fU: testuser1003 + $tU: testuser1003 + - end|ROUTE_NET_INFO: + - start|ROUTE_REG_REQUEST: + - start|ROUTE_REG_HANDLE: + - start|ROUTE_AUTH: + - exit|ROUTE_AUTH: +sip_in: + - '^REGISTER' + - 'Contact: sip:testuser1003@' + - 'Content-Length: 0' + - 'Expires: 600' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 401 Unauthorized', + 'Content-Length: 0' + ] diff --git a/scenarios/auth_fail/0002_test.yml.tt2 b/scenarios/auth_fail/0002_test.yml.tt2 new file mode 100644 index 00000000..c3dc8c1f --- /dev/null +++ b/scenarios/auth_fail/0002_test.yml.tt2 @@ -0,0 +1,26 @@ +# REGISTER scenario +flow: + - start|MAIN: + - start|ROUTE_NET_INFO: + - end|ROUTE_NET_INFO: + - start|ROUTE_REG_REQUEST: + - start|ROUTE_REG_HANDLE: + - start|ROUTE_AUTH: + - start|ROUTE_ADD_CALLINFO_REPLY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - exit|ROUTE_AUTH: +sip_in: + - '^REGISTER' + - 'Contact: sip:testuser1003@' + - 'Content-Length: 0' + - 'Expires: 600' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 401 Unauthorized', + 'Content-Length: 0' + ] + diff --git a/scenarios/auth_fail/0003_test.yml.tt2 b/scenarios/auth_fail/0003_test.yml.tt2 new file mode 100644 index 00000000..c3dc8c1f --- /dev/null +++ b/scenarios/auth_fail/0003_test.yml.tt2 @@ -0,0 +1,26 @@ +# REGISTER scenario +flow: + - start|MAIN: + - start|ROUTE_NET_INFO: + - end|ROUTE_NET_INFO: + - start|ROUTE_REG_REQUEST: + - start|ROUTE_REG_HANDLE: + - start|ROUTE_AUTH: + - start|ROUTE_ADD_CALLINFO_REPLY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - exit|ROUTE_AUTH: +sip_in: + - '^REGISTER' + - 'Contact: sip:testuser1003@' + - 'Content-Length: 0' + - 'Expires: 600' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 401 Unauthorized', + 'Content-Length: 0' + ] + diff --git a/scenarios/auth_fail/0004_test.yml.tt2 b/scenarios/auth_fail/0004_test.yml.tt2 new file mode 100644 index 00000000..c3dc8c1f --- /dev/null +++ b/scenarios/auth_fail/0004_test.yml.tt2 @@ -0,0 +1,26 @@ +# REGISTER scenario +flow: + - start|MAIN: + - start|ROUTE_NET_INFO: + - end|ROUTE_NET_INFO: + - start|ROUTE_REG_REQUEST: + - start|ROUTE_REG_HANDLE: + - start|ROUTE_AUTH: + - start|ROUTE_ADD_CALLINFO_REPLY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - exit|ROUTE_AUTH: +sip_in: + - '^REGISTER' + - 'Contact: sip:testuser1003@' + - 'Content-Length: 0' + - 'Expires: 600' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 401 Unauthorized', + 'Content-Length: 0' + ] + diff --git a/scenarios/auth_fail/scenario.yml b/scenarios/auth_fail/scenario.yml new file mode 100644 index 00000000..fc2f185b --- /dev/null +++ b/scenarios/auth_fail/scenario.yml @@ -0,0 +1,18 @@ +subscribers: + spce.test: + testuser1003: + password: testuser + cc: 43 + ac: 1 + sn: 1003 +scenarios: + - ip: 127.126.254.1 + domain: spce.test + username: testuser1003 + password_wrong: yes + responders: + - ip: 127.1.0.1 + domain: spce.test + register: no + username: testuser1003 + active: no diff --git a/scenarios/auth_fail/sipp_scenario00.xml b/scenarios/auth_fail/sipp_scenario00.xml new file mode 100644 index 00000000..d843459e --- /dev/null +++ b/scenarios/auth_fail/sipp_scenario00.xml @@ -0,0 +1,113 @@ + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [call_id] + CSeq: [cseq] REGISTER + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [call_id] + CSeq: [cseq] REGISTER + [field1 file="caller.csv"] + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [call_id] + CSeq: [cseq] REGISTER + [field1 file="caller.csv"] + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [call_id] + CSeq: [cseq] REGISTER + [field1 file="caller.csv"] + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [call_id] + CSeq: [cseq] REGISTER + [field1 file="caller.csv"] + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + +