From fe8b92381a715edfc011c115df2011284f65cf6f Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Wed, 10 Jul 2013 15:45:32 +0200 Subject: [PATCH] Add basic allowed_ips_grp INVITE tests --- scenarios/invite_allowip/0001_test.yml | 27 ++++ scenarios/invite_allowip/0003_test.yml | 52 +++++++ scenarios/invite_allowip/prefs.yml | 2 + scenarios/invite_allowip/sipp_scenario.xml | 106 +++++++++++++ scenarios/invite_ignore_allowip/0003_test.yml | 32 ++++ scenarios/invite_ignore_allowip/0005_test.yml | 128 ++++++++++++++++ scenarios/invite_ignore_allowip/0009_test.yml | 26 ++++ scenarios/invite_ignore_allowip/0010_test.yml | 46 ++++++ scenarios/invite_ignore_allowip/prefs.yml | 3 + .../invite_ignore_allowip/sipp_scenario.xml | 144 ++++++++++++++++++ .../sipp_scenario_responder.xml | 64 ++++++++ .../sipp_scenario_responder_reg.xml | 55 +++++++ .../sipp_scenario_responder_unreg.xml | 55 +++++++ 13 files changed, 740 insertions(+) create mode 100644 scenarios/invite_allowip/0001_test.yml create mode 100644 scenarios/invite_allowip/0003_test.yml create mode 100644 scenarios/invite_allowip/prefs.yml create mode 100644 scenarios/invite_allowip/sipp_scenario.xml create mode 100644 scenarios/invite_ignore_allowip/0003_test.yml create mode 100644 scenarios/invite_ignore_allowip/0005_test.yml create mode 100644 scenarios/invite_ignore_allowip/0009_test.yml create mode 100644 scenarios/invite_ignore_allowip/0010_test.yml create mode 100644 scenarios/invite_ignore_allowip/prefs.yml create mode 100644 scenarios/invite_ignore_allowip/sipp_scenario.xml create mode 100644 scenarios/invite_ignore_allowip/sipp_scenario_responder.xml create mode 100644 scenarios/invite_ignore_allowip/sipp_scenario_responder_reg.xml create mode 100644 scenarios/invite_ignore_allowip/sipp_scenario_responder_unreg.xml diff --git a/scenarios/invite_allowip/0001_test.yml b/scenarios/invite_allowip/0001_test.yml new file mode 100644 index 00000000..6b0b5947 --- /dev/null +++ b/scenarios/invite_allowip/0001_test.yml @@ -0,0 +1,27 @@ +# REGISTER scenario +flow: + - start|MAIN: + - start|ROUTE_NET_INFO: + - end|ROUTE_NET_INFO: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INVITE: + - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - end|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_FIND_CALLER: + - start|ROUTE_AUTH: + - exit|ROUTE_AUTH: +sip_in: + - '^INVITE' + - 'Contact: sip:testuser1002@' + - 'CSeq: 1 INVITE' + - 'Max-Forwards: 16' + - 'Content-Type: application/sdp' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'CSeq: 1 INVITE' + ] + - [ + '^SIP/2.0 407 Proxy Authentication Required', + 'CSeq: 1 INVITE' + ] diff --git a/scenarios/invite_allowip/0003_test.yml b/scenarios/invite_allowip/0003_test.yml new file mode 100644 index 00000000..54a4cc4d --- /dev/null +++ b/scenarios/invite_allowip/0003_test.yml @@ -0,0 +1,52 @@ +# REGISTER scenario +flow: + - start|MAIN: + - start|ROUTE_NET_INFO: + - end|ROUTE_NET_INFO: + - start|ROUTE_PRX_REQUEST: + - start|ROUTE_INVITE: + - start|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - end|ROUTE_LOAD_CALLEE_DOMAIN_PREF: + - start|ROUTE_FIND_CALLER: + - start|ROUTE_AUTH: + - start|ROUTE_ADD_CALLINFO_REPLY: + - end|ROUTE_ADD_CALLINFO_REPLY: + - end|ROUTE_AUTH: + - end|ROUTE_FIND_CALLER: + - start|ROUTE_LOAD_CALLER_PREF: + - start|ROUTE_CLEAR_CALLER_PREF: + - end|ROUTE_CLEAR_CALLER_PREF: + - end|ROUTE_LOAD_CALLER_PREF: + - start|ROUTE_ACC_FAILURE: + - start|ROUTE_ACC_CALLER: + - end|ROUTE_ACC_CALLER: + - start|ROUTE_ACC_CALLEE: + - end|ROUTE_ACC_CALLEE: + - end|ROUTE_ACC_FAILURE: + - start|ROUTE_EARLY_REJECT: + - start|ROUTE_ADD_CALLINFO_REPLY: + - end|ROUTE_ADD_CALLINFO_REPLY: + - exit|ROUTE_EARLY_REJECT: +sip_in: + - '^INVITE' + - 'Contact: sip:testuser1002@' + - 'CSeq: 2 INVITE' + - 'Max-Forwards: 16' + - 'Content-Type: application/sdp' + - 'Proxy-Authorization: Digest username="testuser1002"' +sip_out: + - [ + '^SIP/2.0 100 Trying', + 'CSeq: 2 INVITE', + 'From: + + + + ;tag=[pid]SIPpTag00[call_number] + To: + Call-ID: [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: [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: [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: [call_id] + [routes] + CSeq: 2 ACK + Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + +