TT#116100 scenarios_pbx/invite_ncos_black

* domain per scenario
* dynamic IP/port and numbers

Change-Id: Icc58ac4160dfb9be942793db3842189429112c61
mr9.5.1
Alessio Garzi 5 years ago committed by Victor Seva
parent 7f69bac7d4
commit befb94eeee

@ -17,12 +17,12 @@ flow:
- start|ROUTE_FIND_CALLER: - start|ROUTE_FIND_CALLER:
- start|ROUTE_AUTH: - start|ROUTE_AUTH:
- start|ROUTE_AUTH_HELPER: - start|ROUTE_AUTH_HELPER:
$x_hdr(From): spce.test $x_hdr(From): invite-ncos-black.scenarios-lnp.test
$var(realm_user): testuser1002 $var(realm_user): [% scenarios.0.username %]
$var(realm_domain): spce.test $var(realm_domain): invite-ncos-black.scenarios-lnp.test
- return|ROUTE_AUTH_HELPER: - return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002'] $avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
$avp(orig_acc_caller_domain): ['spce.test'] $avp(orig_acc_caller_domain): ['invite-ncos-black.scenarios-lnp.test']
- start|ROUTE_ADD_CALLINFO_REPLY: - start|ROUTE_ADD_CALLINFO_REPLY:
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY: - return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
@ -98,25 +98,25 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE sip:43999100@' - '^INVITE sip:[% extra_info.phone_numbers.2 %]@'
- 'Contact: sip:testuser1002@' - 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 2 INVITE' - 'CSeq: 2 INVITE'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'Proxy-Authorization: Digest username="testuser1002"' - 'Proxy-Authorization: Digest username="[% scenarios.0.username %]"'
sip_out: sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@' 'From: <sip:[% scenarios.0.username %]@'
] ]
- [ - [
'^SIP/2.0 101 Connecting', '^SIP/2.0 101 Connecting',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@' 'From: <sip:[% scenarios.0.username %]@'
] ]
- [ - [
'^SIP/2.0 403 Blocked by NCOS level', '^SIP/2.0 403 Blocked by NCOS level',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@' 'From: <sip:[% scenarios.0.username %]@'
] ]

@ -12,9 +12,9 @@ flow:
- start|ROUTE_LOCAL: - start|ROUTE_LOCAL:
- return|ROUTE_LOCAL: - return|ROUTE_LOCAL:
sip_in: sip_in:
- '^ACK sip:43999100@' - '^ACK sip:[% extra_info.phone_numbers.2 %]@'
- 'From: <sip:testuser1002@' - 'From: <sip:testuser1002@'
- 'To: <sip:43999100@' - 'To: <sip:[% extra_info.phone_numbers.2 %]@'
- 'CSeq: 2 ACK' - 'CSeq: 2 ACK'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Length:\s+0' - 'Content-Length:\s+0'

@ -21,13 +21,13 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE sip:43999200@' - '^INVITE sip:[% extra_info.phone_numbers.3 %]@'
- 'From: <sip:testuser1002' - 'From: <sip:[% scenarios.0.username %]'
- 'To: <sip:43999200@' - 'To: <sip:[% extra_info.phone_numbers.3 %]@'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'P-NGCP-Src-Ip: 127.126.0.2' - 'P-NGCP-Src-Ip: [% scenarios.1.ip %]'
- 'P-NGCP-Src-Port: \d+' - 'P-NGCP-Src-Port: [% scenarios.1.port %]'
- 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4' - 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:127.0.0.1:5060' - 'P-Sock-Info: udp:127.0.0.1:5060'
@ -36,7 +36,7 @@ sip_out:
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: 1 INVITE', 'CSeq: 1 INVITE',
'P-Out-Socket: udp:127.0.0.1:5060', 'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.126.0.2', 'P-NGCP-Auth-IP: [% scenarios.1.ip %]',
'Content-Length: 0' 'Content-Length: 0'
] ]
- [ - [

@ -99,14 +99,14 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE sip:43999200@' - '^INVITE sip:[% extra_info.phone_numbers.3 %]@'
- 'From: <sip:testuser1002@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:43999200@' - 'To: <sip:[% extra_info.phone_numbers.3 %]@'
- 'CSeq: 2 INVITE' - 'CSeq: 2 INVITE'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'P-NGCP-Src-Ip: 127.126.0.2' - 'P-NGCP-Src-Ip: [% scenarios.1.ip %]'
- 'P-NGCP-Src-Port: \d+' - 'P-NGCP-Src-Port: [% scenarios.1.port %]'
- 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4' - 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:127.0.0.1:5060' - 'P-Sock-Info: udp:127.0.0.1:5060'
@ -120,23 +120,23 @@ sip_out:
'^SIP/2.0 101 Connecting', '^SIP/2.0 101 Connecting',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'P-Out-Socket: udp:127.0.0.1:5060', 'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.126.0.2', 'P-NGCP-Auth-IP: [% scenarios.1.ip %]',
'P-NGCP-Authorization: testuser1002@', 'P-NGCP-Authorization: [% scenarios.0.username %]@',
'P-NGCP-Authorized: 1', 'P-NGCP-Authorized: 1',
'P-NGCP-Caller-Info:', 'P-NGCP-Caller-Info:',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-Caller-UUID: [% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]',
'Content-Length: 0' 'Content-Length: 0'
] ]
- [ - [
'^SIP/2.0 403 Blocked by NCOS level', '^SIP/2.0 403 Blocked by NCOS level',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999200@', 'To: <sip:[% extra_info.phone_numbers.3 %]@',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'P-Out-Socket: udp:127.0.0.1:5060', 'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.126.0.2', 'P-NGCP-Auth-IP: [% scenarios.1.ip %]',
'P-NGCP-Authorization: testuser1002@', 'P-NGCP-Authorization: [% scenarios.0.username %]@',
'P-NGCP-Authorized: 1', 'P-NGCP-Authorized: 1',
'P-NGCP-Caller-Info:', 'P-NGCP-Caller-Info:',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-Caller-UUID: [% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]',
'Content-Length: 0' 'Content-Length: 0'
] ]

@ -12,9 +12,9 @@ flow:
- start|ROUTE_LOCAL: - start|ROUTE_LOCAL:
- return|ROUTE_LOCAL: - return|ROUTE_LOCAL:
sip_in: sip_in:
- '^ACK sip:43999200@' - '^ACK sip:[% extra_info.phone_numbers.3 %]@'
- 'From: <sip:testuser1002@' - 'From: <sip:testuser1002@'
- 'To: <sip:43999200@' - 'To: <sip:[% extra_info.phone_numbers.3 %]@'
- 'CSeq: 2 ACK' - 'CSeq: 2 ACK'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Length:\s+0' - 'Content-Length:\s+0'

@ -21,13 +21,13 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE sip:43999300@' - '^INVITE sip:[% extra_info.phone_numbers.4 %]@'
- 'From: <sip:testuser1002' - 'From: <sip:[% scenarios.0.username %]'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'P-NGCP-Src-Ip: 127.126.0.3' - 'P-NGCP-Src-Ip: [% scenarios.2.ip %]'
- 'P-NGCP-Src-Port: \d+' - 'P-NGCP-Src-Port: [% scenarios.2.port %]'
- 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4' - 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:127.0.0.1:5060' - 'P-Sock-Info: udp:127.0.0.1:5060'
@ -36,7 +36,7 @@ sip_out:
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: 1 INVITE', 'CSeq: 1 INVITE',
'P-Out-Socket: udp:127.0.0.1:5060', 'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.126.0.3', 'P-NGCP-Auth-IP: [% scenarios.2.ip %]',
'Content-Length: 0' 'Content-Length: 0'
] ]
- [ - [

@ -88,8 +88,8 @@ flow:
- start|ROUTE_OUTBOUND: - start|ROUTE_OUTBOUND:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"relay", "relay",
"peerout:[% peer_00_host0.id %]", "peerout:[% peer_invite_ncos_black_lnp_host0.id %]",
"peer:[% peer_00_host0.id %]", "peer:[% peer_invite_ncos_black_lnp_host0.id %]",
"outgoing" "outgoing"
] ]
- start|ROUTE_SET_CALLER_DIALOG: - start|ROUTE_SET_CALLER_DIALOG:
@ -98,17 +98,17 @@ flow:
- return|ROUTE_SET_CALLER_DIALOG: - return|ROUTE_SET_CALLER_DIALOG:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]", "accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]", "userout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]", "user:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]", "totaluserout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]", "totaluser:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"total", "total",
"relay", "relay",
"peerout:[% peer_00_host0.id %]", "peerout:[% peer_invite_ncos_black_lnp_host0.id %]",
"peer:[% peer_00_host0.id %]", "peer:[% peer_invite_ncos_black_lnp_host0.id %]",
"outgoing" "outgoing"
] ]
- start|ROUTE_ACC_CALLER: - start|ROUTE_ACC_CALLER:
@ -182,59 +182,59 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]", "accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]", "userout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]", "user:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]", "totaluserout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]", "totaluser:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"total", "total",
"relay", "relay",
"peerout:[% peer_00_host0.id %]", "peerout:[% peer_invite_ncos_black_lnp_host0.id %]",
"peer:[% peer_00_host0.id %]", "peer:[% peer_invite_ncos_black_lnp_host0.id %]",
"outgoing" "outgoing"
] ]
sip_in: sip_in:
- '^INVITE sip:43999300' - '^INVITE sip:[% extra_info.phone_numbers.4 %]'
- 'From: <sip:testuser1002@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
- 'CSeq: 2 INVITE' - 'CSeq: 2 INVITE'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'P-NGCP-Src-Ip: 127.126.0.3' - 'P-NGCP-Src-Ip: [% scenarios.2.ip %]'
- 'P-NGCP-Src-Port: \d+' - 'P-NGCP-Src-Port: [% scenarios.2.port %]'
- 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4' - 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:127.0.0.1:5060' - 'P-Sock-Info: udp:127.0.0.1:5060'
sip_out: sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999300@', 'To: <sip:[% extra_info.phone_numbers.4 %]@',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'P-Out-Socket: udp:127.0.0.1:5060', 'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.126.0.3', 'P-NGCP-Auth-IP: [% scenarios.2.ip %]',
'Content-Length: 0' 'Content-Length: 0'
] ]
- [ - [
'^SIP/2.0 101 Connecting' '^SIP/2.0 101 Connecting'
] ]
- [ - [
'^INVITE sip:43999300@127.0.2.1:\d+;transport=udp SIP/2.0', '^INVITE sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %];transport=udp SIP/2.0',
'From: <sip:4311002@', 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@',
'To: <sip:43999300@', 'To: <sip:[% extra_info.phone_numbers.4 %]@',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'Contact: sip:testuser1002@127.126.0.3:\d+', 'Contact: sip:[% scenarios.0.username %]@[% scenarios.2.ip %]:[% scenarios.2.port %]',
'Max-Forwards: 68', 'Max-Forwards: 68',
'Content-Type: application/sdp', 'Content-Type: application/sdp',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-Caller-UUID: [% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]',
'P-Callee-UUID: 0', 'P-Callee-UUID: 0',
'P-Asserted-Identity: <sip:4311002@spce.test>', 'P-Asserted-Identity: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>',
'P-Called-Party-ID: <sip:43999300@127.0.2.1>', 'P-Called-Party-ID: <sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]>',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no', 'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
'P-App-Name: sbc', 'P-App-Name: sbc',
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.3;port=\d+', 'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %]',
'P-NGCP-Callee-Info: <sip:43999300@spce.test>;ip=127.0.2.1;port=\d+', 'P-NGCP-Callee-Info: <sip:[% extra_info.phone_numbers.4 %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.responders.0.ip %];port=[% scenarios.2.responders.0.port %]',
'P-D-Uri:' 'P-D-Uri:'
] ]

@ -13,39 +13,39 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- 'INVITE sip:43999300@127.0.2.1:\d+;transport=udp SIP/2.0' - 'INVITE sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %];transport=udp SIP/2.0'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+' - 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>;tag=[\w-]+'
- 'To: <sip:43999300@127.0.2.1>' - 'To: <sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]>'
- 'CSeq: \d+ INVITE' - 'CSeq: \d+ INVITE'
- 'P-LB-Uptime: \d+' - 'P-LB-Uptime: \d+'
- 'P-Asserted-Identity: <sip:4311002@spce.test>' - 'P-Asserted-Identity: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>'
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - 'P-Caller-UUID: [% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.3;port=\d+;primary=4311002' - 'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %];primary=[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]'
- 'P-NGCP-Callee-Info: <sip:43999300@spce.test>;ip=127.0.2.1;port=\d+' - 'P-NGCP-Callee-Info: <sip:[% extra_info.phone_numbers.4 %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.responders.0.ip %];port=[% scenarios.2.responders.0.port %]'
- 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp' - 'P-D-Uri: sip:127.0.0.1:5060;received=sip:[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %]%3blr%3btransport%3dudp'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>' - 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Length:\s+\d+' - 'Content-Length:\s+\d+'
sip_out: sip_out:
- [ - [
'SIP/2.0 100 Trying', 'SIP/2.0 100 Trying',
'From: <sip:4311002@spce.test>;tag=[\w-]+', 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>;tag=[\w-]+',
'To: <sip:43999300@127.0.2.1>', 'To: <sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]>',
'CSeq: \d+ INVITE', 'CSeq: \d+ INVITE',
'Server: Sipwise NGCP Proxy', 'Server: Sipwise NGCP Proxy',
'Content-Length: 0', 'Content-Length: 0',
] ]
- [ - [
'INVITE sip:43999300@127.0.2.1:\d+;transport=udp SIP/2.0', 'INVITE sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %];transport=udp SIP/2.0',
'From: <sip:4311002@spce.test>;tag=[\w-]+', 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>;tag=[\w-]+',
'To: <sip:43999300@127.0.2.1>', 'To: <sip:[% extra_info.phone_numbers.4 %]@[% scenarios.2.responders.0.ip %]>',
'CSeq: \d+ INVITE', 'CSeq: \d+ INVITE',
'P-LB-Uptime: \d+', 'P-LB-Uptime: \d+',
'P-Asserted-Identity: <sip:4311002@spce.test>', 'P-Asserted-Identity: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@invite-ncos-black.scenarios-lnp.test>',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-Caller-UUID: [% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.3;port=\d+;primary=4311002', 'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %];primary=[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:43999300@spce.test>;ip=127.0.2.1;port=\d+', 'P-NGCP-Callee-Info: <sip:[% extra_info.phone_numbers.4 %]@invite-ncos-black.scenarios-lnp.test>;ip=[% scenarios.2.responders.0.ip %];port=[% scenarios.2.responders.0.port %]',
'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp', 'P-D-Uri: sip:127.0.0.1:5060;received=sip:[% scenarios.2.responders.0.ip %]:[% scenarios.2.responders.0.port %]%3blr%3btransport%3dudp',
'Content-Type: application/sdp', 'Content-Type: application/sdp',
'Contact: <sip:127.0.0.1:508[08];transport=udp>', 'Contact: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length:\s+\d+', 'Content-Length:\s+\d+',

@ -7,17 +7,17 @@ flow:
- return|ROUTE_APPLY_HEADER_RULES: - return|ROUTE_APPLY_HEADER_RULES:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]", "accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]", "userout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]", "user:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]", "totaluserout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]", "totaluser:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"total", "total",
"relay", "relay",
"peerout:[% peer_00_host0.id %]", "peerout:[% peer_invite_ncos_black_lnp_host0.id %]",
"peer:[% peer_00_host0.id %]", "peer:[% peer_invite_ncos_black_lnp_host0.id %]",
"outgoing" "outgoing"
] ]
- start|ROUTE_PREPARE_UA: - start|ROUTE_PREPARE_UA:
@ -30,12 +30,12 @@ flow:
sip_in: sip_in:
- '^SIP/2.0 180 Ringing' - '^SIP/2.0 180 Ringing'
- 'CSeq: 2 INVITE' - 'CSeq: 2 INVITE'
- 'From: <sip:4311002@' - 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 180 Ringing', '^SIP/2.0 180 Ringing',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999300@', 'To: <sip:[% extra_info.phone_numbers.4 %]@',
] ]

@ -17,29 +17,29 @@ flow:
- return|dialog:start: - return|dialog:start:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]", "accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]", "userout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]", "user:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]", "totaluserout:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]", "totaluser:[% invite_ncos_black_scenarios_lnp_test.testuser1002.uuid %]",
"total", "total",
"relay", "relay",
"peerout:[% peer_00_host0.id %]", "peerout:[% peer_invite_ncos_black_lnp_host0.id %]",
"peer:[% peer_00_host0.id %]", "peer:[% peer_invite_ncos_black_lnp_host0.id %]",
"outgoing" "outgoing"
] ]
- return|dialog:start: - return|dialog:start:
sip_in: sip_in:
- '^SIP/2.0 200 OK' - '^SIP/2.0 200 OK'
- 'CSeq: 2 INVITE' - 'CSeq: 2 INVITE'
- 'From: <sip:4311002@' - 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 200 OK', '^SIP/2.0 200 OK',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999300@', 'To: <sip:[% extra_info.phone_numbers.4 %]@',
] ]

@ -25,20 +25,20 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
- 'Contact: sip:testuser1002@' - 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 2 ACK' - 'CSeq: 2 ACK'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Length: 0' - 'Content-Length: 0'
- 'From: <sip:testuser1002@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
sip_out: sip_out:
- [ - [
'^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
'Contact: sip:testuser1002@', 'Contact: sip:[% scenarios.0.username %]@',
'CSeq: 2 ACK', 'CSeq: 2 ACK',
'Max-Forwards: 68', 'Max-Forwards: 68',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:4311002@', 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@',
'To: <sip:43999300@' 'To: <sip:[% extra_info.phone_numbers.4 %]@'
] ]

@ -29,27 +29,27 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0' - '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
- 'Contact: sip:testuser1002@' - 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 3 BYE' - 'CSeq: 3 BYE'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
- 'Content-Length: 0' - 'Content-Length: 0'
- 'From: <sip:testuser1002@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: 3 BYE', 'CSeq: 3 BYE',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999300@' 'To: <sip:[% extra_info.phone_numbers.4 %]@'
] ]
- [ - [
'^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0', '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
'Contact: sip:testuser1002@', 'Contact: sip:[% scenarios.0.username %]@',
'CSeq: 3 BYE', 'CSeq: 3 BYE',
'Max-Forwards: 68', 'Max-Forwards: 68',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:4311002@', 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@',
'To: <sip:43999300@' 'To: <sip:[% extra_info.phone_numbers.4 %]@'
] ]

@ -16,13 +16,13 @@ sip_in:
- '^SIP/2.0 200 OK' - '^SIP/2.0 200 OK'
- 'CSeq: 3 BYE' - 'CSeq: 3 BYE'
- 'Content-Length: 0' - 'Content-Length: 0'
- 'From: <sip:4311002@' - 'From: <sip:[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]@'
- 'To: <sip:43999300@' - 'To: <sip:[% extra_info.phone_numbers.4 %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 200 OK', '^SIP/2.0 200 OK',
'CSeq: 3 BYE', 'CSeq: 3 BYE',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:43999300@' 'To: <sip:[% extra_info.phone_numbers.4 %]@'
] ]

@ -1,29 +1,29 @@
cdr: cdr:
- source_user: 'testuser1002' - source_user: '[% scenarios.0.username %]'
source_domain: 'spce.test' source_domain: 'invite-ncos-black.scenarios-lnp.test'
source_cli: '4311002' source_cli: '[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]'
destination_user: '43999300' destination_user: '[% extra_info.phone_numbers.4 %]'
destination_domain: '127.0.2.1' destination_domain: '[% scenarios.2.responders.0.ip %]'
destination_user_dialed: '43999300' destination_user_dialed: '[% extra_info.phone_numbers.4 %]'
call_type: 'call' call_type: 'call'
call_status: 'ok' call_status: 'ok'
call_code: '200' call_code: '200'
- source_user: 'testuser1002' - source_user: '[% scenarios.0.username %]'
source_domain: 'spce.test' source_domain: 'invite-ncos-black.scenarios-lnp.test'
source_cli: '4311002' source_cli: '[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]'
destination_user: '43999100' destination_user: '[% extra_info.phone_numbers.2 %]'
destination_domain: 'spce.test' destination_domain: 'invite-ncos-black.scenarios-lnp.test'
destination_user_dialed: '43999100' destination_user_dialed: '[% extra_info.phone_numbers.2 %]'
call_type: 'call' call_type: 'call'
call_status: 'other' call_status: 'other'
call_code: '403' call_code: '403'
duration: '0' duration: '0'
- source_user: 'testuser1002' - source_user: '[% scenarios.0.username %]'
source_domain: 'spce.test' source_domain: 'invite-ncos-black.scenarios-lnp.test'
source_cli: '4311002' source_cli: '[% invite_ncos_black_scenarios_lnp_test.testuser1002.phone_number %]'
destination_user: '4318881001' destination_user: '[% extra_info.phone_numbers.1 %]'
destination_domain: 'spce.test' destination_domain: 'invite-ncos-black.scenarios-lnp.test'
destination_user_dialed: '43999200' destination_user_dialed: '[% extra_info.phone_numbers.3 %]'
call_type: 'call' call_type: 'call'
call_status: 'other' call_status: 'other'
call_code: '403' call_code: '403'

@ -1,11 +1,11 @@
--- ---
lnp_test_00: lnp_invite_ncos_black_lnp_00:
data: data:
name: lnp_test_00 name: lnp_invite_ncos_black_lnp_00
prefix: AA prefix: AA
numbers: numbers:
- number: '439992' - number: '[% extra_info.phone_numbers.0 %]'
routing_number: '4318881001' routing_number: '[% extra_info.phone_numbers.1 %]'
ncos: ncos:
- level: ncos_black - level: ncos_black
reseller_id: 1 reseller_id: 1

@ -1,3 +1,4 @@
---
ncos_black: ncos_black:
data: data:
mode: blacklist mode: blacklist

@ -1,25 +1,25 @@
--- ---
peer_00: peer_invite_ncos_black_lnp:
contact: contact:
company: peer_00 company: peer_invite_ncos_black_lnp
email: peer_00@host0.not email: peer_invite_ncos_black_lnp@host0.not
contract: contract:
billing_profile_id: 1 billing_profile_id: 1
status: active status: active
type: sippeering type: sippeering
groups: groups:
- name: peer_00_group - name: peer_invite_ncos_black_lnp_group
priority: 1 priority: 1
description: description:
rules: rules:
- group_id: peer_00_group - group_id: peer_invite_ncos_black_lnp_group
callee_prefix: "" callee_prefix: ""
callee_pattern: '' callee_pattern: ''
caller_pattern: '^sip:.+@spce.test' caller_pattern: '^sip:.+@invite-ncos-black.scenarios-lnp.test'
description: "" description: ""
hosts: hosts:
- group_id: peer_00_group - group_id: peer_invite_ncos_black_lnp_group
name: peer_00_host0 name: peer_invite_ncos_black_lnp_host0
ip: 127.0.2.1 ip: 127.0.2.1
port: 51602 port: 51602
host: host:

@ -1,10 +0,0 @@
{
"@spce.test": {
"lnp_for_local_sub": true,
"ncos": "ncos_black"
},
"peer_00_host0": {
"concurrent_max": 1,
"rewrite_rule_set": "rw_00"
}
}

@ -0,0 +1,10 @@
{
"@invite-ncos-black.scenarios-lnp.test": {
"lnp_for_local_sub": true,
"ncos": "ncos_black"
},
"peer_invite_ncos_black_lnp_host0": {
"concurrent_max": 1,
"rewrite_rule_set": "rw_invite_ncos_black_lnp"
}
}

@ -1,4 +1,5 @@
rw_00: ---
rw_invite_ncos_black_lnp:
- direction: out - direction: out
field: caller field: caller
match_pattern: '^(.+)$' match_pattern: '^(.+)$'

@ -1,6 +1,7 @@
---
test_uuid: invite_ncos_black test_uuid: invite_ncos_black
domains: domains:
'spce.test': invite-ncos-black.scenarios-lnp.test:
reseller_id: 1 reseller_id: 1
customers: customers:
'customer.test': 'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1 billing_profile_id: 1
reseller_id: 1 reseller_id: 1
subscribers: subscribers:
spce.test: invite-ncos-black.scenarios-lnp.test:
testuser1001: testuser1001:
customer: 'customer.test' customer: 'customer.test'
password: testuser password: testuser
@ -29,33 +30,40 @@ subscribers:
scenarios: scenarios:
- ip: 127.126.0.1 - ip: 127.126.0.1
username: testuser1002 username: testuser1002
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
responders: responders:
- ip: 127.0.2.1 - ip: 127.0.2.1
number: 43999100 number: 43999100
username: testuser1001 username: testuser1001
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
peer_host: peer_00_host0 peer_host: peer_invite_ncos_black_lnp_host0
register: no register: 'no'
active: no active: 'no'
- ip: 127.126.0.2 - ip: 127.126.0.2
username: testuser1002 username: testuser1002
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
responders: responders:
- ip: 127.0.2.1 - ip: 127.0.2.1
number: 43999200 number: 43999200
username: testuser1001 username: testuser1001
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
peer_host: peer_00_host0 peer_host: peer_invite_ncos_black_lnp_host0
register: no register: 'no'
active: no active: 'no'
- ip: 127.126.0.3 - ip: 127.126.0.3
username: testuser1002 username: testuser1002
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
responders: responders:
- ip: 127.0.2.1 - ip: 127.0.2.1
number: 43999300 number: 43999300
username: testuser1001 username: testuser1001
domain: spce.test domain: invite-ncos-black.scenarios-lnp.test
peer_host: peer_00_host0 peer_host: peer_invite_ncos_black_lnp_host0
register: no register: 'no'
extra_info:
phone_numbers:
- 439992
- 4318881001
- 43999100
- 43999200
- 43999300

Loading…
Cancel
Save