diff --git a/scenarios/invite_hm/0003_test.yml.tt2 b/scenarios/invite_hm/0003_test.yml.tt2 index 2ed92a4e..3f696341 100644 --- a/scenarios/invite_hm/0003_test.yml.tt2 +++ b/scenarios/invite_hm/0003_test.yml.tt2 @@ -22,8 +22,8 @@ flow: - exit|ROUTE_EXIT: sip_in: - '^INVITE' - - 'Contact: sip:testuser1002@' - - 'To: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - 'P-LB-Uptime: \d+' - - 'P-Asserted-Identity: ' - - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002' - - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% invite_hm_scenarios_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_hm_scenarios_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_hm_scenarios_test.testuser1003.phone_number %]' - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' @@ -29,22 +29,22 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', - 'To: ', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'Server: Sipwise NGCP Proxy', 'Content-Length: 0', ] - [ - 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', 'P-LB-Uptime: \d+', - 'P-Asserted-Identity: ', - 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=[% customer_test.id %]602;primary=4311002', - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% invite_hm_scenarios_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_hm_scenarios_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_hm_scenarios_test.testuser1003.phone_number %]', 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', diff --git a/scenarios/invite_hm/0012_test.yml.tt2 b/scenarios/invite_hm/0012_test.yml.tt2 index 92b495e0..46f21cc6 100644 --- a/scenarios/invite_hm/0012_test.yml.tt2 +++ b/scenarios/invite_hm/0012_test.yml.tt2 @@ -17,19 +17,19 @@ flow: - return|dialog:start: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", + "userout:[% invite_hm_scenarios_test.testuser1002.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", + "user:[% invite_hm_scenarios_test.testuser1002.uuid %]", "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", + "totaluserout:[% invite_hm_scenarios_test.testuser1002.uuid %]", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", + "totaluser:[% invite_hm_scenarios_test.testuser1002.uuid %]", "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_hm_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_hm_scenarios_test.testuser1003.uuid %]" ] - return|dialog:start: sip_in: @@ -39,8 +39,8 @@ sip_out: - [ '^SIP/2.0 200 OK', 'CSeq: 2 INVITE', - 'From: ' - rwr_set_id: + - value: '' + rwr_set_id: actions: - enabled: 1 action_type: set @@ -147,11 +148,11 @@ hm_01: header_part: username value: 11111111 value_part: full - rwr_set_id: + rwr_set_id: - data: direction: outbound description: Should not be executed - name: hm_01_01 + name: hm_invite_hm_01_01 stopper: 0 enabled: 1 priority: 61 @@ -165,26 +166,26 @@ hm_01: value_type: input values: - value: '.*' - rwr_set_id: + rwr_set_id: actions: - enabled: 1 action_type: remove header: From header_part: full - value: + value: value_part: full - rwr_set_id: + rwr_set_id: - enabled: 1 action_type: remove header: To header_part: full - value: + value: value_part: full - rwr_set_id: + rwr_set_id: - data: direction: reply description: Add NO_ReplyOnly Headers - name: hm_01_02 + name: hm_invite_hm_01_02 stopper: 0 enabled: 1 priority: 62 @@ -198,7 +199,7 @@ hm_01: value_type: input values: - value: '^.*$' - rwr_set_id: + rwr_set_id: actions: - enabled: 1 action_type: add @@ -206,11 +207,11 @@ hm_01: header_part: full value: no this_is_first_reply value_part: full - rwr_set_id: + rwr_set_id: - enabled: 1 action_type: add header: NO_ReplyOnlySecond header_part: full value: no this_is_second_reply value_part: full - rwr_set_id: \ No newline at end of file + rwr_set_id: diff --git a/scenarios/invite_hm/prefs.json b/scenarios/invite_hm/prefs.json deleted file mode 100644 index 73e6a755..00000000 --- a/scenarios/invite_hm/prefs.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "testuser1002@spce.test": { - "header_rule_set": "hm_00" - }, - "testuser1003@spce.test": { - "header_rule_set": "hm_01" - } -} \ No newline at end of file diff --git a/scenarios/invite_hm/prefs.json.tt2 b/scenarios/invite_hm/prefs.json.tt2 new file mode 100644 index 00000000..ace4617f --- /dev/null +++ b/scenarios/invite_hm/prefs.json.tt2 @@ -0,0 +1,8 @@ +{ + "testuser1002@invite-hm.scenarios.test": { + "header_rule_set": "hm_invite_hm_00" + }, + "testuser1003@invite-hm.scenarios.test": { + "header_rule_set": "hm_invite_hm_01" + } +} \ No newline at end of file diff --git a/scenarios/invite_hm/scenario.yml b/scenarios/invite_hm/scenario.yml index 6efc42de..356c9101 100644 --- a/scenarios/invite_hm/scenario.yml +++ b/scenarios/invite_hm/scenario.yml @@ -1,6 +1,7 @@ +--- test_uuid: invite_hm domains: - 'spce.test': + invite-hm.scenarios.test: reseller_id: 1 customers: 'customer.test': @@ -13,7 +14,7 @@ customers: billing_profile_id: 1 reseller_id: 1 subscribers: - spce.test: + invite-hm.scenarios.test: testuser1003: customer: 'customer.test' password: testuser @@ -33,9 +34,9 @@ subscribers: scenarios: - ip: 127.126.0.1 username: testuser1002 - domain: spce.test + domain: invite-hm.scenarios.test responders: - ip: 127.1.0.1 username: testuser1003 - domain: spce.test - register: yes + domain: invite-hm.scenarios.test + register: 'yes'