diff --git a/scenarios_lnp/invite_peerout/0001_test.yml.tt2 b/scenarios_lnp/invite_peerout/0001_test.yml.tt2 index 72a51010..aab6ff9c 100644 --- a/scenarios_lnp/invite_peerout/0001_test.yml.tt2 +++ b/scenarios_lnp/invite_peerout/0001_test.yml.tt2 @@ -21,9 +21,9 @@ flow: - return|ROUTE_RUNTIME: - exit|ROUTE_EXIT: sip_in: - - '^INVITE sip:004321001@' - - 'Contact: sip:testuser1002@' - - 'To: lnp_for_local_sub): None - start|ROUTE_LNP: - $avp(callee_cli): ['004321001'] + $avp(callee_cli): ['[% scenarios.0.responders.0.username %]'] $xavp(caller_real_prefs[0]=>lnp_to_rn): None - start|ROUTE_APPLY_CALLEE_LNP_RWR: - start|ROUTE_APPLY_REWRITE_RULE: @@ -104,8 +104,8 @@ flow: - start|ROUTE_OUTBOUND: $avp(lua_dlg_profile): [ "relay", - "peerout:[% peer_00_host0.id %]", - "peer:[% peer_00_host0.id %]", + "peerout:[% peer_invite_peerout_host0.id %]", + "peer:[% peer_invite_peerout_host0.id %]", "outgoing" ] - start|ROUTE_SET_CALLER_DIALOG: @@ -114,17 +114,17 @@ flow: - return|ROUTE_SET_CALLER_DIALOG: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", + "userout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", + "user:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", + "totaluserout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", + "totaluser:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "total", "relay", - "peerout:[% peer_00_host0.id %]", - "peer:[% peer_00_host0.id %]", + "peerout:[% peer_invite_peerout_host0.id %]", + "peer:[% peer_invite_peerout_host0.id %]", "outgoing" ] - start|ROUTE_ACC_CALLER: @@ -202,48 +202,48 @@ flow: - exit|ROUTE_EXIT: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", + "userout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", + "user:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", + "totaluserout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", + "totaluser:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "total", "relay", - "peerout:[% peer_00_host0.id %]", - "peer:[% peer_00_host0.id %]", + "peerout:[% peer_invite_peerout_host0.id %]", + "peer:[% peer_invite_peerout_host0.id %]", "outgoing" ] sip_in: - - '^INVITE sip:004321001@' - - 'Contact: sip:testuser1002@' + - '^INVITE sip:[% scenarios.0.responders.0.username %]@' + - 'Contact: sip:[% scenarios.0.username %]@' - 'CSeq: 2 INVITE' - 'Max-Forwards: 69' - 'Content-Type: application/sdp' - - 'Proxy-Authorization: Digest username="testuser1002"' + - 'Proxy-Authorization: Digest username="[% scenarios.0.username %]"' sip_out: - [ '^SIP/2.0 100 Trying', 'CSeq: 2 INVITE', - 'From: ;tag=[\w-]+' + - '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=\d+;primary=4311002' - - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=[% invite_peerout_scenarios_lnp_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+' - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' - 'Content-Type: application/sdp' - 'Contact: ' @@ -29,7 +29,7 @@ sip_in: sip_out: - [ 'SIP/2.0 100 Trying', - 'From: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', 'To: ', 'CSeq: \d+ INVITE', 'Server: Sipwise NGCP Proxy', @@ -37,14 +37,14 @@ sip_out: ] - [ 'INVITE sip:0043test28881001;npdi@127.0.2.1:\d+;transport=udp SIP/2.0', - 'From: ;tag=[\w-]+', + '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=\d+;primary=4311002', - 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=127.126.0.1;port=\d+;primary=[% invite_peerout_scenarios_lnp_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.2.1;port=\d+', 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', 'Content-Type: application/sdp', 'Contact: ', diff --git a/scenarios_lnp/invite_peerout/0008_test.yml.tt2 b/scenarios_lnp/invite_peerout/0008_test.yml.tt2 index 3c96a807..c345558a 100644 --- a/scenarios_lnp/invite_peerout/0008_test.yml.tt2 +++ b/scenarios_lnp/invite_peerout/0008_test.yml.tt2 @@ -7,17 +7,17 @@ flow: - return|ROUTE_APPLY_HEADER_RULES: $avp(lua_dlg_profile): [ "accountout:[% customer_test.id %]", - "userout:[% spce_test.testuser1002.uuid %]", + "userout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1002.uuid %]", + "user:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccountout:[% customer_test.id %]", - "totaluserout:[% spce_test.testuser1002.uuid %]", + "totaluserout:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1002.uuid %]", + "totaluser:[% invite_peerout_scenarios_lnp_test.testuser1002.uuid %]", "total", "relay", - "peerout:[% peer_00_host0.id %]", - "peer:[% peer_00_host0.id %]", + "peerout:[% peer_invite_peerout_host0.id %]", + "peer:[% peer_invite_peerout_host0.id %]", "outgoing" ] - start|ROUTE_PREPARE_UA: @@ -30,12 +30,12 @@ flow: sip_in: - '^SIP/2.0 180 Ringing' - 'CSeq: 2 INVITE' - - 'From: