diff --git a/scenarios/incoming_peer/0003_test.yml.tt2 b/scenarios/incoming_peer/0003_test.yml.tt2 index c240a52d..3e097417 100644 --- a/scenarios/incoming_peer/0003_test.yml.tt2 +++ b/scenarios/incoming_peer/0003_test.yml.tt2 @@ -49,9 +49,9 @@ flow: - return|ROUTE_SET_CALLEE_DIALOG: $avp(lua_dlg_profile): [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", + "user:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "peer:[% peer_00_host0.id %]", "total" ] @@ -88,9 +88,9 @@ flow: $avp(lua_dlg_profile): [ "incoming", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", + "user:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "peer:[% peer_00_host0.id %]", "total" ] @@ -164,15 +164,15 @@ flow: $avp(lua_dlg_profile): [ "incoming", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", + "user:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "peer:[% peer_00_host0.id %]", "total" ] sip_in: - - '^INVITE sip:4311003@' - - 'Contact: sip:004321001@' + - '^INVITE sip:[% incoming_peer_scenarios_test.testuser1003.phone_number %]@' + - 'Contact: sip:[% scenarios.0.username %]@' - 'CSeq: 1 INVITE' - 'Max-Forwards: 69' - 'Content-Type: application/sdp' @@ -180,19 +180,19 @@ sip_out: - [ '^SIP/2.0 100 Trying', 'CSeq: 1 INVITE', - 'From: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:testuser1003@[% 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-Asserted-Identity: ' - 'P-Caller-UUID: 0' - - 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+' - - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% incoming_peer_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' - 'Contact: ' @@ -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:testuser1003@[% 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-Asserted-Identity: ', 'P-Caller-UUID: 0', - 'P-NGCP-Caller-Info: ;ip=127.0.2.1;port=\d+', - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=4311003', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% incoming_peer_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', 'Contact: ', diff --git a/scenarios/incoming_peer/0010_test.yml.tt2 b/scenarios/incoming_peer/0010_test.yml.tt2 index 5d9922bd..577e2be6 100644 --- a/scenarios/incoming_peer/0010_test.yml.tt2 +++ b/scenarios/incoming_peer/0010_test.yml.tt2 @@ -18,9 +18,9 @@ flow: $avp(lua_dlg_profile): [ "incoming", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", + "user:[% incoming_peer.scenarios.test.testuser1003.uuid %]", "peer:[% peer_00_host0.id %]", "total" ] @@ -28,12 +28,12 @@ flow: sip_in: - '^SIP/2.0 200 OK' - 'CSeq: 1 INVITE' - - 'From: