From 6680c78dd04eecbacddde8abc5ae0803e59eb088 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Wed, 16 Mar 2016 17:25:53 +0100 Subject: [PATCH] MT#18505 add test 'invite_redirect_blocked' Change-Id: Ia76b24adbc373f0423eee719902ad3a01d7f9d97 --- .../invite_redirect_blocked/0003_test.yml.tt2 | 35 +++++ .../invite_redirect_blocked/0005_test.yml.tt2 | 136 ++++++++++++++++++ .../invite_redirect_blocked/0007_test.yml.tt2 | 37 +++++ scenarios/invite_redirect_blocked/prefs.json | 5 + .../invite_redirect_blocked/scenario.yml | 37 +++++ .../sipp_scenario00.xml | 113 +++++++++++++++ .../sipp_scenario_responder00.xml | 31 ++++ 7 files changed, 394 insertions(+) create mode 100644 scenarios/invite_redirect_blocked/0003_test.yml.tt2 create mode 100644 scenarios/invite_redirect_blocked/0005_test.yml.tt2 create mode 100644 scenarios/invite_redirect_blocked/0007_test.yml.tt2 create mode 100644 scenarios/invite_redirect_blocked/prefs.json create mode 100644 scenarios/invite_redirect_blocked/scenario.yml create mode 100644 scenarios/invite_redirect_blocked/sipp_scenario00.xml create mode 100644 scenarios/invite_redirect_blocked/sipp_scenario_responder00.xml diff --git a/scenarios/invite_redirect_blocked/0003_test.yml.tt2 b/scenarios/invite_redirect_blocked/0003_test.yml.tt2 new file mode 100644 index 00000000..dfd92c95 --- /dev/null +++ b/scenarios/invite_redirect_blocked/0003_test.yml.tt2 @@ -0,0 +1,35 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INITVARS: + - return|ROUTE_INITVARS: + - start|ROUTE_INVITE: + - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_CLEAR_CALLEE_DOMAIN_PREF: + - return|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_FIND_CALLER: + - start|ROUTE_AUTH: + - exit|ROUTE_AUTH: +sip_in: + - '^INVITE' + - 'Contact: sip:testuser1002@' + - 'To: + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + CSeq: 1 INVITE + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Type: application/sdp + Content-Length: [len] + + v=0 + o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] + s=- + c=IN IP[media_ip_type] [media_ip] + t=0 0 + m=audio [media_port] RTP/AVP 8 + a=rtpmap:8 PCMA/8000 + a=ptime:50 + + ]]> + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + CSeq: 1 ACK + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + CSeq: 2 INVITE + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + [field1 file="caller.csv"] + Content-Type: application/sdp + Content-Length: [len] + + v=0 + o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] + s=- + c=IN IP[media_ip_type] [media_ip] + t=0 0 + m=audio [media_port] RTP/AVP 8 + a=rtpmap:8 PCMA/8000 + a=ptime:50 + + ]]> + + + + + + + + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + CSeq: 2 ACK + Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + diff --git a/scenarios/invite_redirect_blocked/sipp_scenario_responder00.xml b/scenarios/invite_redirect_blocked/sipp_scenario_responder00.xml new file mode 100644 index 00000000..ec9b3eee --- /dev/null +++ b/scenarios/invite_redirect_blocked/sipp_scenario_responder00.xml @@ -0,0 +1,31 @@ + + + + + + + + + + Content-Length: 0 + + ]]> + + + + + + + + + +