From b97e447ec93fefeb1a69d58911448f9b620dfdec Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 25 Oct 2013 16:55:38 +0200 Subject: [PATCH] MT#4143 scenario to check unregister with 2 contacts as Bria does --- scenarios/register_bria/0001_test.yml.tt2 | 27 ++++++++++ scenarios/register_bria/0002_test.yml.tt2 | 36 +++++++++++++ scenarios/register_bria/0003_test.yml.tt2 | 28 ++++++++++ scenarios/register_bria/0004_test.yml.tt2 | 37 +++++++++++++ scenarios/register_bria/scenario.yml | 26 ++++++++++ scenarios/register_bria/sipp_scenario00.xml | 55 ++++++++++++++++++++ scenarios/register_bria/sipp_scenario01.xml | 57 +++++++++++++++++++++ 7 files changed, 266 insertions(+) create mode 100644 scenarios/register_bria/0001_test.yml.tt2 create mode 100644 scenarios/register_bria/0002_test.yml.tt2 create mode 100644 scenarios/register_bria/0003_test.yml.tt2 create mode 100644 scenarios/register_bria/0004_test.yml.tt2 create mode 100644 scenarios/register_bria/scenario.yml create mode 100644 scenarios/register_bria/sipp_scenario00.xml create mode 100644 scenarios/register_bria/sipp_scenario01.xml diff --git a/scenarios/register_bria/0001_test.yml.tt2 b/scenarios/register_bria/0001_test.yml.tt2 new file mode 100644 index 00000000..3d73ba27 --- /dev/null +++ b/scenarios/register_bria/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: "TestBria" ;reg-id=1;\+sip.instance=""' + - '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/register_bria/0002_test.yml.tt2 b/scenarios/register_bria/0002_test.yml.tt2 new file mode 100644 index 00000000..ffb5e2a6 --- /dev/null +++ b/scenarios/register_bria/0002_test.yml.tt2 @@ -0,0 +1,36 @@ +# 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: + - start|ROUTE_ADD_CALLINFO_REPLY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - end|ROUTE_AUTH: + - start|ROUTE_PREFERENCES: + - end|ROUTE_PREFERENCES: + - exit|ROUTE_REG_HANDLE: +sip_in: + - '^REGISTER' + - 'Contact: "TestBria" ;reg-id=1;\+sip.instance=""' + - 'Content-Length: 0' + - 'Expires: 600' + - 'Authorization: Digest username="testuser1003"' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 200 OK', + 'Contact: ;expires=600;\+sip.instance="";reg-id=1', + 'Content-Length: 0', + 'P-NGCP-Authorization: testuser1003@', + 'P-NGCP-Authorized: 1' + ] diff --git a/scenarios/register_bria/0003_test.yml.tt2 b/scenarios/register_bria/0003_test.yml.tt2 new file mode 100644 index 00000000..89f489cc --- /dev/null +++ b/scenarios/register_bria/0003_test.yml.tt2 @@ -0,0 +1,28 @@ +# 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: "TestBria" ;reg-id=1;\+sip.instance=""' + - 'Contact: "TestBria" ;expires=0' + - '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/register_bria/0004_test.yml.tt2 b/scenarios/register_bria/0004_test.yml.tt2 new file mode 100644 index 00000000..bc442cf4 --- /dev/null +++ b/scenarios/register_bria/0004_test.yml.tt2 @@ -0,0 +1,37 @@ +# 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: + - start|ROUTE_ADD_CALLINFO_REPLY: + - return|ROUTE_ADD_CALLINFO_REPLY: + - end|ROUTE_AUTH: + - start|ROUTE_PREFERENCES: + - end|ROUTE_PREFERENCES: + - exit|ROUTE_REG_HANDLE: +sip_in: + - '^REGISTER' + - 'Contact: "TestBria" ;reg-id=1;\+sip.instance=""' + - 'Contact: "TestBria" ;expires=0' + - 'Content-Length: 0' + - 'Expires: 600' + - 'Authorization: Digest username="testuser1003"' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'Content-Length: 0' + ] + - [ + '^SIP/2.0 200 OK', + 'Contact: ;expires=600;\+sip.instance="";reg-id=1', + 'Content-Length: 0', + 'P-NGCP-Authorization: testuser1003@', + 'P-NGCP-Authorized: 1' + ] diff --git a/scenarios/register_bria/scenario.yml b/scenarios/register_bria/scenario.yml new file mode 100644 index 00000000..b9da5b5d --- /dev/null +++ b/scenarios/register_bria/scenario.yml @@ -0,0 +1,26 @@ +subscribers: + spce.test: + testuser1003: + password: testuser + cc: 43 + ac: 1 + sn: 1003 +scenarios: + - ip: 127.126.0.1 + domain: spce.test + username: testuser1003 + responders: + - ip: 127.1.0.1 + domain: spce.test + register: no + username: testuser1003 + active: no + - ip: 127.126.0.1 + domain: spce.test + username: testuser1003 + responders: + - ip: 127.1.0.1 + domain: spce.test + register: no + username: testuser1003 + active: no diff --git a/scenarios/register_bria/sipp_scenario00.xml b/scenarios/register_bria/sipp_scenario00.xml new file mode 100644 index 00000000..db12e31a --- /dev/null +++ b/scenarios/register_bria/sipp_scenario00.xml @@ -0,0 +1,55 @@ + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: "TestBria" + Call-ID: [call_id] + CSeq: 1 REGISTER + Contact: "TestBria" ;reg-id=1;+sip.instance="" + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: "TestBria" + Call-ID: [call_id] + CSeq: 2 REGISTER + [field2 file="callee.csv" line=0] + Contact: "TestBria" ;reg-id=1;+sip.instance="" + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + diff --git a/scenarios/register_bria/sipp_scenario01.xml b/scenarios/register_bria/sipp_scenario01.xml new file mode 100644 index 00000000..451cac21 --- /dev/null +++ b/scenarios/register_bria/sipp_scenario01.xml @@ -0,0 +1,57 @@ + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: "TestBria" + Call-ID: [call_id] + CSeq: 3 REGISTER + Contact: "TestBria" ;reg-id=1;+sip.instance="" + Contact: "TestBria" ;expires=0 + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: "TestBria" + Call-ID: [call_id] + CSeq: 4 REGISTER + [field2 file="callee.csv" line=0] + Contact: "TestBria" ;reg-id=1;+sip.instance="" + Contact: "TestBria" ;expires=0 + Expires: 600 + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + +