From 42fd449a6781595dc040d4f1b5bcc8954fd6d1f2 Mon Sep 17 00:00:00 2001 From: Alessio Garzi Date: Tue, 1 Jun 2021 10:49:01 +0200 Subject: [PATCH] TT#119400 New kct scenario for sdp filtering New kct scenario under scenarios/directory featuring a whitelist sdp scenario with PCMA,PCMU,GSM,telephone-event name codes in place. Change-Id: Iebfe9c19abc6536b50bbdecbdc7a45cb09703c7a --- scenarios/invite_sdp_filter/0003_test.yml.tt2 | 42 +++ scenarios/invite_sdp_filter/0005_test.yml.tt2 | 264 +++++++++++++++++ scenarios/invite_sdp_filter/0021_test.yml.tt2 | 42 +++ scenarios/invite_sdp_filter/0023_test.yml.tt2 | 265 ++++++++++++++++++ scenarios/invite_sdp_filter/cdr_test.yml.tt2 | 19 ++ scenarios/invite_sdp_filter/media181sec.pcap | 1 + scenarios/invite_sdp_filter/prefs.json.tt2 | 10 + scenarios/invite_sdp_filter/scenario.yml | 56 ++++ .../invite_sdp_filter/sipp_scenario00.xml | 184 ++++++++++++ .../invite_sdp_filter/sipp_scenario01.xml | 184 ++++++++++++ .../sipp_scenario_responder00.xml | 76 +++++ .../sipp_scenario_responder01.xml | 76 +++++ 12 files changed, 1219 insertions(+) create mode 100644 scenarios/invite_sdp_filter/0003_test.yml.tt2 create mode 100644 scenarios/invite_sdp_filter/0005_test.yml.tt2 create mode 100644 scenarios/invite_sdp_filter/0021_test.yml.tt2 create mode 100644 scenarios/invite_sdp_filter/0023_test.yml.tt2 create mode 100644 scenarios/invite_sdp_filter/cdr_test.yml.tt2 create mode 120000 scenarios/invite_sdp_filter/media181sec.pcap create mode 100644 scenarios/invite_sdp_filter/prefs.json.tt2 create mode 100644 scenarios/invite_sdp_filter/scenario.yml create mode 100644 scenarios/invite_sdp_filter/sipp_scenario00.xml create mode 100644 scenarios/invite_sdp_filter/sipp_scenario01.xml create mode 100644 scenarios/invite_sdp_filter/sipp_scenario_responder00.xml create mode 100644 scenarios/invite_sdp_filter/sipp_scenario_responder01.xml diff --git a/scenarios/invite_sdp_filter/0003_test.yml.tt2 b/scenarios/invite_sdp_filter/0003_test.yml.tt2 new file mode 100644 index 00000000..3f696341 --- /dev/null +++ b/scenarios/invite_sdp_filter/0003_test.yml.tt2 @@ -0,0 +1,42 @@ +flow: + - start|DEFAULT_ROUTE: + - start|ROUTE_ENTRY: + - return|ROUTE_ENTRY: + - start|ROUTE_NET_INFO: + - return|ROUTE_NET_INFO: + - start|ROUTE_CHECK_TEL_URI: + - return|ROUTE_CHECK_TEL_URI: + - 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: + - start|ROUTE_EXIT: + - start|ROUTE_RUNTIME: + - return|ROUTE_RUNTIME: + - exit|ROUTE_EXIT: +sip_in: + - '^INVITE' + - 'Contact: sip:[% scenarios.0.username %]@' + - '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/AVPF 96 97 98 0 8 3 9 18 101 99 100 + a=rtpmap:96 opus/48000/2 + a=fmtp:96 useinbandfec=1 + a=rtpmap:97 speex/16000 + a=fmtp:97 vbr=on + a=rtpmap:98 speex/8000 + a=fmtp:98 vbr=on + a=fmtp:18 annexb=yes + a=rtpmap:101 telephone-event/48000 + a=rtpmap:99 telephone-event/16000 + a=rtpmap:100 telephone-event/8000 + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + m=video 9078 RTP/AVPF 96 97 + a=rtpmap:96 VP8/90000 + a=rtpmap:97 H264/90000 + a=fmtp:97 profile-level-id=42801F + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + a=rtcp-fb:96 nack pli + a=rtcp-fb:96 nack sli + a=rtcp-fb:96 ack rpsi + a=rtcp-fb:96 ccm fir + a=rtcp-fb:97 nack pli + a=rtcp-fb:97 ccm fir + + + ]]> + + + + + + + + ;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/AVPF 96 97 98 0 8 3 9 18 101 99 100 + a=rtpmap:96 opus/48000/2 + a=fmtp:96 useinbandfec=1 + a=rtpmap:97 speex/16000 + a=fmtp:97 vbr=on + a=rtpmap:98 speex/8000 + a=fmtp:98 vbr=on + a=fmtp:18 annexb=yes + a=rtpmap:101 telephone-event/48000 + a=rtpmap:99 telephone-event/16000 + a=rtpmap:100 telephone-event/8000 + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + m=video 9078 RTP/AVPF 96 97 + a=rtpmap:96 VP8/90000 + a=rtpmap:97 H264/90000 + a=fmtp:97 profile-level-id=42801F + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + a=rtcp-fb:96 nack pli + a=rtcp-fb:96 nack sli + a=rtcp-fb:96 ack rpsi + a=rtcp-fb:96 ccm fir + a=rtcp-fb:97 nack pli + a=rtcp-fb:97 ccm fir + + ]]> + + + + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + [routes] + CSeq: 2 ACK + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] + CSeq: 3 BYE + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + [routes] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + diff --git a/scenarios/invite_sdp_filter/sipp_scenario01.xml b/scenarios/invite_sdp_filter/sipp_scenario01.xml new file mode 100644 index 00000000..d6a8f5a2 --- /dev/null +++ b/scenarios/invite_sdp_filter/sipp_scenario01.xml @@ -0,0 +1,184 @@ + + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[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/AVPF 96 97 98 0 8 3 9 18 101 99 100 + a=rtpmap:96 opus/48000/2 + a=fmtp:96 useinbandfec=1 + a=rtpmap:97 speex/16000 + a=fmtp:97 vbr=on + a=rtpmap:98 speex/8000 + a=fmtp:98 vbr=on + a=fmtp:18 annexb=yes + a=rtpmap:101 telephone-event/48000 + a=rtpmap:99 telephone-event/16000 + a=rtpmap:100 telephone-event/8000 + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + m=video 9078 RTP/AVPF 96 97 + a=rtpmap:96 VP8/90000 + a=rtpmap:97 H264/90000 + a=fmtp:97 profile-level-id=42801F + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + a=rtcp-fb:96 nack pli + a=rtcp-fb:96 nack sli + a=rtcp-fb:96 ack rpsi + a=rtcp-fb:96 ccm fir + a=rtcp-fb:97 nack pli + a=rtcp-fb:97 ccm fir + + + ]]> + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[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=1]%///[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/AVPF 96 97 98 0 8 3 9 18 101 99 100 + a=rtpmap:96 opus/48000/2 + a=fmtp:96 useinbandfec=1 + a=rtpmap:97 speex/16000 + a=fmtp:97 vbr=on + a=rtpmap:98 speex/8000 + a=fmtp:98 vbr=on + a=fmtp:18 annexb=yes + a=rtpmap:101 telephone-event/48000 + a=rtpmap:99 telephone-event/16000 + a=rtpmap:100 telephone-event/8000 + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + m=video 9078 RTP/AVPF 96 97 + a=rtpmap:96 VP8/90000 + a=rtpmap:97 H264/90000 + a=fmtp:97 profile-level-id=42801F + a=rtcp-fb:* trr-int 1000 + a=rtcp-fb:* ccm tmmbr + a=rtcp-fb:96 nack pli + a=rtcp-fb:96 nack sli + a=rtcp-fb:96 ack rpsi + a=rtcp-fb:96 ccm fir + a=rtcp-fb:97 nack pli + a=rtcp-fb:97 ccm fir + + ]]> + + + + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id] + [routes] + CSeq: 2 ACK + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + + ;tag=[pid]SIPpTag00[call_number] + To: [peer_tag_param] + Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id] + CSeq: 3 BYE + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + [routes] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + diff --git a/scenarios/invite_sdp_filter/sipp_scenario_responder00.xml b/scenarios/invite_sdp_filter/sipp_scenario_responder00.xml new file mode 100644 index 00000000..e9517fa4 --- /dev/null +++ b/scenarios/invite_sdp_filter/sipp_scenario_responder00.xml @@ -0,0 +1,76 @@ + + + + + + + + + + Content-Length: 0 + + ]]> + + + + + + + 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 + m=video 0 RTP/AVPF + + ]]> + + + + + + + + + Content-Length: [len] + + ]]> + + + + + + + diff --git a/scenarios/invite_sdp_filter/sipp_scenario_responder01.xml b/scenarios/invite_sdp_filter/sipp_scenario_responder01.xml new file mode 100644 index 00000000..6dbb6474 --- /dev/null +++ b/scenarios/invite_sdp_filter/sipp_scenario_responder01.xml @@ -0,0 +1,76 @@ + + + + + + + + + + Content-Length: 0 + + ]]> + + + + + + + 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 + m=video 0 RTP/AVPF + + ]]> + + + + + + + + + Content-Length: [len] + + ]]> + + + + + + +