diff --git a/scenarios/invite_allowedcli_nonmatch/0003_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0003_test.yml.tt2 index d130838f..526ada2b 100644 --- a/scenarios/invite_allowedcli_nonmatch/0003_test.yml.tt2 +++ b/scenarios/invite_allowedcli_nonmatch/0003_test.yml.tt2 @@ -32,12 +32,12 @@ sip_out: - [ '^SIP/2.0 100 Trying', 'CSeq: 1 INVITE', - 'From: "431100222" allowed_clis[*]): ['43110021*', '43110029*'] - $xavp(caller_real_prefs[0]=>allowed_clis[*]): ['43110021*', '43110029*'] + $xavp(caller_usr_prefs[0]=>allowed_clis[*]): ['[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]1*', '[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]9*'] + $xavp(caller_real_prefs[0]=>allowed_clis[*]): ['[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]1*', '[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]9*'] $xavp(caller_usr_prefs[0]=>user_cli[*]): ['43122122'] $xavp(caller_real_prefs[0]=>user_cli[*]): ['43122122'] $xavp(caller_usr_prefs[0]=>inbound_upn[*]): ['from_display'] @@ -55,7 +55,7 @@ flow: - start|ROUTE_CLIR: - return|ROUTE_CLIR: - start|ROUTE_CALLER_BLOCK_CLI: - $xavp(caller_real_prefs[0]=>allowed_clis[*]): ['43110021*', '43110029*'] + $xavp(caller_real_prefs[0]=>allowed_clis[*]): ['[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]1*', '[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]9*'] - return|ROUTE_CALLER_BLOCK_CLI: - start|ROUTE_CHECK_USERPROV_CLI: - start|ROUTE_CHECK_CLI_ALLOWED: @@ -73,10 +73,10 @@ flow: - return|ROUTE_SET_CALLEE_DIALOG: $avp(lua_dlg_profile) : [ "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_BLOCK_IN: - return|ROUTE_BLOCK_IN: @@ -110,29 +110,29 @@ flow: $avp(lua_dlg_profile) : [ "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_CNT_DLG_CHECK: - return|ROUTE_CNT_DLG_CHECK: - return|ROUTE_SET_CALLER_DIALOG: $avp(lua_dlg_profile) : [ 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', + 'userout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_ACC_CALLER: - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: @@ -199,19 +199,19 @@ flow: - exit|ROUTE_EXIT: $avp(lua_dlg_profile) : [ 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', + 'userout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] sip_in: - '^INVITE' @@ -224,13 +224,13 @@ sip_out: - [ '^SIP/2.0 100 Trying', 'CSeq: 2 INVITE', - 'From: "431100222" ;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-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.0.1;port=5060;primary=4311003' + - 'P-Asserted-Identity: ' + - 'P-Caller-UUID: [% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]' + - 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]' + - 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_allowedcli_nonmatch_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-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.0.1;port=5060;primary=4311003', + 'P-Asserted-Identity: ', + 'P-Caller-UUID: [% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', + 'P-NGCP-Caller-Info: ;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.phone_number %]', + 'P-NGCP-Callee-Info: ;ip=127.0.0.1;port=5060;primary=[% invite_allowedcli_nonmatch_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/invite_allowedcli_nonmatch/0010_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 index fc37f0c3..d7b0f9dc 100644 --- a/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 +++ b/scenarios/invite_allowedcli_nonmatch/0010_test.yml.tt2 @@ -7,19 +7,19 @@ flow: - return|ROUTE_APPLY_HEADER_RULES: $avp(lua_dlg_profile) : [ 'accountout:[% customer_test.id %]', - 'userout:[% spce_test.testuser1002.uuid %]', + 'userout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] - start|ROUTE_PREPARE_UA: - return|ROUTE_PREPARE_UA: @@ -37,6 +37,6 @@ sip_out: - [ '^SIP/2.0 180 Ringing', 'CSeq: 2 INVITE', - 'From: "431100222" ;tag=[\w-]+' - - 'To: ;tag=[\w-]+' + - 'From: ;tag=[\w-]+' + - 'To: ;tag=[\w-]+' - 'CSeq: \d+ INVITE' - - 'Contact: ' + - 'Contact: ' - 'Content-Type: application/sdp' - 'Content-Length:\s+\d+' - - 'P-NGCP-Src-Ip: 127.1.0.1' - - 'P-NGCP-Src-Port: \d+' + - 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]' + - 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]' - 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Af: 4' sip_out: - [ 'SIP/2.0 200 OK', - 'From: ;tag=[\w-]+', - 'To: ;tag=[\w-]+', + 'From: ;tag=[\w-]+', + 'To: ;tag=[\w-]+', 'CSeq: \d+ INVITE', - 'Contact: ', + 'Contact: ', 'Content-Type: application/sdp', 'Content-Length:\s+\d+', - 'P-NGCP-Src-Ip: 127.1.0.1', - 'P-NGCP-Src-Port: \d+', + 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]', + 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]', 'P-NGCP-Src-Proto: udp', 'P-NGCP-Src-Af: 4', ] diff --git a/scenarios/invite_allowedcli_nonmatch/0012_test.yml.tt2 b/scenarios/invite_allowedcli_nonmatch/0012_test.yml.tt2 index 9ca0e4e5..b59e9f6c 100644 --- a/scenarios/invite_allowedcli_nonmatch/0012_test.yml.tt2 +++ b/scenarios/invite_allowedcli_nonmatch/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_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'account:[% customer_test.id %]', - 'user:[% spce_test.testuser1002.uuid %]', + 'user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccountout:[% customer_test.id %]', - 'totaluserout:[% spce_test.testuser1002.uuid %]', + 'totaluserout:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', 'totalaccount:[% customer_test.id %]', - 'totaluser:[% spce_test.testuser1002.uuid %]', + 'totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1002.uuid %]', "local", "totalaccount:[% customer_test.id %]", - "totaluser:[% spce_test.testuser1003.uuid %]", + "totaluser:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]", "total", "account:[% customer_test.id %]", - "user:[% spce_test.testuser1003.uuid %]" + "user:[% invite_allowedcli_nonmatch_scenarios_test.testuser1003.uuid %]" ] - return|dialog:start: sip_in: @@ -39,6 +39,6 @@ sip_out: - [ '^SIP/2.0 200 OK', 'CSeq: 2 INVITE', - 'From: "431100222" ;tag=[pid]SIPpTag00[call_number] + From: "[field1 file="callee.csv" line=1]22" ;tag=[pid]SIPpTag00[call_number] To: Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 1 INVITE @@ -37,7 +37,7 @@ ACK sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]:[remote_port] SIP/2.0 [last_Via:] - From: "431100222" ;tag=[pid]SIPpTag00[call_number] + From: "[field1 file="callee.csv" line=1]22" ;tag=[pid]SIPpTag00[call_number] To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 1 ACK @@ -55,7 +55,7 @@ INVITE sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] - From: "431100222" ;tag=[pid]SIPpTag00[call_number] + From: "[field1 file="callee.csv" line=1]22" ;tag=[pid]SIPpTag00[call_number] To: Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 2 INVITE @@ -94,7 +94,7 @@ ACK [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] - From: "431100222" ;tag=[pid]SIPpTag00[call_number] + From: "[field1 file="callee.csv" line=1]22" ;tag=[pid]SIPpTag00[call_number] To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] [routes] @@ -120,7 +120,7 @@ BYE [next_url] SIP/2.0 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] - From: "431100222" ;tag=[pid]SIPpTag00[call_number] + From: "[field1 file="callee.csv" line=1]22" ;tag=[pid]SIPpTag00[call_number] To: [peer_tag_param] Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id] CSeq: 3 BYE