diff --git a/scenarios_lnp/incoming_peer/0001_test.yml.tt2 b/scenarios_lnp/incoming_peer/0001_test.yml.tt2 index 73069903..44829fd2 100644 --- a/scenarios_lnp/incoming_peer/0001_test.yml.tt2 +++ b/scenarios_lnp/incoming_peer/0001_test.yml.tt2 @@ -23,7 +23,7 @@ flow: - start|ROUTE_DLG_MANAGE: - return|ROUTE_DLG_MANAGE: - return|ROUTE_LOAD_PEER_IN_PREF: - $avp(lua_dlg_profile): ["peer:[% peer_00_host0.id %]", "total"] + $avp(lua_dlg_profile): ["peer:[% peer_incoming_peer_00_host0.id %]", "total"] - return|ROUTE_FIND_CALLER: - start|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES: @@ -49,10 +49,10 @@ flow: - return|ROUTE_SET_CALLEE_DIALOG: $avp(lua_dlg_profile): [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", - "peer:[% peer_00_host0.id %]", + "user:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", + "peer:[% peer_incoming_peer_00_host0.id %]", "total" ] - start|ROUTE_BLOCK_IN: @@ -128,15 +128,15 @@ flow: - exit|ROUTE_EXIT: $avp(lua_dlg_profile): [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", - "peer:[% peer_00_host0.id %]", + "user:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", + "peer:[% peer_incoming_peer_00_host0.id %]", "total" ] sip_in: - - '^INVITE sip:4311001@' - - 'Contact: sip:004321001@' + - '^INVITE sip:[% incoming_peer_scenarios_lnp_test.testuser1001.phone_number %]@' + - 'Contact: sip:[% scenarios.0.username %]@' - 'CSeq: 1 INVITE' - 'Max-Forwards: 69' - 'Content-Type: application/sdp' @@ -144,24 +144,24 @@ sip_out: - [ '^SIP/2.0 100 Trying', 'CSeq: 1 INVITE', - 'From: ', - 'To: ;tag=[\w-]+' - - 'To: ' + - 'INVITE sip:[% extra_info.phone_numbers.1 %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=udp SIP/2.0' + - 'From: ;tag=[\w-]+' + - 'To: ' - 'CSeq: \d+ INVITE' - - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' - - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' - - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001' - - 'P-NGCP-Callee-Info: ;ip=127.1.0.1;port=\d+' - - 'P-Asserted-Identity: ' - - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.1.0.1:\d+%3blr%3btransport%3dudp' + - 'P-Caller-UUID: [% incoming_peer_scenarios_lnp_test.testuser1001.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=[% incoming_peer_scenarios_lnp_test.testuser1001.phone_number %]' + - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=[% incoming_peer_scenarios_lnp_test.testuser1001.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %]' + - 'P-Asserted-Identity: ' + - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %]%3blr%3btransport%3dudp' - 'Content-Type: application/sdp' - 'Contact: ' - 'Content-Length:\s+\d+' 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:4318881003@127.1.0.1:\d+;transport=udp SIP/2.0', - 'From: ;tag=[\w-]+', - 'To: ', + 'INVITE sip:[% extra_info.phone_numbers.1 %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=udp SIP/2.0', + 'From: ;tag=[\w-]+', + 'To: ', 'CSeq: \d+ INVITE', - 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', - 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', - 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=4311001', - 'P-NGCP-Callee-Info: ;ip=127.1.0.1;port=\d+', - 'P-Asserted-Identity: ', - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.1.0.1:\d+%3blr%3btransport%3dudp', + 'P-Caller-UUID: [% incoming_peer_scenarios_lnp_test.testuser1001.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.0.0.1;port=508[08];primary=[% incoming_peer_scenarios_lnp_test.testuser1001.phone_number %]', + 'P-NGCP-Forward-Info: ;ip=127.0.0.1;port=508[08];primary=[% incoming_peer_scenarios_lnp_test.testuser1001.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %]', + 'P-Asserted-Identity: ', + 'P-D-Uri: sip:127.0.0.1:5060;received=sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %]%3blr%3btransport%3dudp', 'Content-Type: application/sdp', 'Contact: ', 'Content-Length:\s+\d+', diff --git a/scenarios_lnp/incoming_peer/0008_test.yml.tt2 b/scenarios_lnp/incoming_peer/0008_test.yml.tt2 index 8cf94aba..ad873e4b 100644 --- a/scenarios_lnp/incoming_peer/0008_test.yml.tt2 +++ b/scenarios_lnp/incoming_peer/0008_test.yml.tt2 @@ -5,16 +5,16 @@ flow: - return|ROUTE_ENTRY: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1003.uuid %]", + "userout:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]", + "user:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1003.uuid %]", + "totaluserout:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% incoming_peer_scenarios_lnp_test.testuser1003.uuid %]", "relay", - "peerout:[% peer_01_host1.id %]", - "peer:[% peer_01_host1.id %]", + "peerout:[% peer_incoming_peer_01_host1.id %]", + "peer:[% peer_incoming_peer_01_host1.id %]", "outgoing" ] - start|ROUTE_PREPARE_UA: @@ -27,12 +27,12 @@ flow: sip_in: - '^SIP/2.0 180 Ringing' - 'CSeq: \d+ INVITE' - - 'From: