diff --git a/scenarios/invite_peerout_failover/0001_test.yml.tt2 b/scenarios/invite_peerout_failover/0001_test.yml.tt2 new file mode 100644 index 00000000..cf91b29e --- /dev/null +++ b/scenarios/invite_peerout_failover/0001_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 sip:004321001@' + - 'Contact: sip:testuser1002@' + - 'To: ;tag=", + "To: ;tag=", + "CSeq: 2 ACK", + "Content-Length: 0" + ] + - [ + '^INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0', + "From: ;tag=", + "To: ", + "CSeq: 2 INVITE", + "Contact: sip:testuser1002@", + "Content-Type: application/sdp", + 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', + 'P-Callee-UUID: [% spce_test.testuser1001.uuid %]', + "P-Asserted-Identity: ", + "P-Called-Party-ID: ", + "P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no", + "P-App-Name: sbc", + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=4311002', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-D-Uri: sip:127.0.0.1:5060;received=', + ] \ No newline at end of file diff --git a/scenarios/invite_peerout_failover/0007_test.yml.tt2 b/scenarios/invite_peerout_failover/0007_test.yml.tt2 new file mode 100644 index 00000000..365aa769 --- /dev/null +++ b/scenarios/invite_peerout_failover/0007_test.yml.tt2 @@ -0,0 +1,15 @@ +flow: + - start|REPLY_ROUTE_NAT: + - exit|REPLY_ROUTE_NAT: +sip_in: + - '^SIP/2.0 180 Ringing' + - 'CSeq: 2 INVITE' + - 'From: + + + + ;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" line=0]@[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" line=0]@[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" line=0]@[local_ip]:[local_port] + Max-Forwards: 70 + [field1 file="caller.csv" line=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 + + ]]> + + + + + + + + + + + + + + + + ;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" line=0]@[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" line=0]@[local_ip]:[local_port] + [routes] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + + + diff --git a/scenarios/invite_peerout_failover/sipp_scenario_responder00.xml b/scenarios/invite_peerout_failover/sipp_scenario_responder00.xml new file mode 100644 index 00000000..25bf1211 --- /dev/null +++ b/scenarios/invite_peerout_failover/sipp_scenario_responder00.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + Content-Length: 0 + + ]]> + + + + diff --git a/scenarios/invite_peerout_failover/sipp_scenario_responder02.xml b/scenarios/invite_peerout_failover/sipp_scenario_responder02.xml new file mode 100644 index 00000000..da77f415 --- /dev/null +++ b/scenarios/invite_peerout_failover/sipp_scenario_responder02.xml @@ -0,0 +1,78 @@ + + + + + + + + + + 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 + + ]]> + + + + + + + + + + + Content-Length: [len] + + ]]> + + + + + + +