TT#116100 invite_concurrent_max_per_account

Change-Id: I1472e35e1890fa0b76beaf7ba564d4d4f6073c1d
mr9.5.1
Victor Seva 5 years ago
parent 854e55712a
commit 731e2a99d4

@ -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-concurrent-max-per-account.scenarios.test
$var(realm_user): testuser1002 $var(realm_user): testuser1002
$var(realm_domain): spce.test $var(realm_domain): invite-concurrent-max-per-account.scenarios.test
- return|ROUTE_AUTH_HELPER: - return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002'] $avp(orig_acc_caller_user): ['testuser1002']
$avp(orig_acc_caller_domain): ['spce.test'] $avp(orig_acc_caller_domain): ['invite-concurrent-max-per-account.scenarios.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:
@ -65,10 +65,10 @@ flow:
- start|ROUTE_CNT_CALLEE_REJECT: - start|ROUTE_CNT_CALLEE_REJECT:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]", "totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]",
"total", "total",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]" "user:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]"
] ]
- return|ROUTE_CNT_CALLEE_REJECT: - return|ROUTE_CNT_CALLEE_REJECT:
- return|ROUTE_SET_CALLEE_DIALOG: - return|ROUTE_SET_CALLEE_DIALOG:
@ -108,10 +108,10 @@ flow:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"local", "local",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]", "totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]",
"total", "total",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]" "user:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]"
] ]
- start|ROUTE_SET_CALLER_DIALOG: - start|ROUTE_SET_CALLER_DIALOG:
- start|ROUTE_CNT_DLG_CHECK: - start|ROUTE_CNT_DLG_CHECK:
@ -119,19 +119,19 @@ 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_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1002.uuid %]', 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccountout:[% customer_test.id %]', 'totalaccountout:[% customer_test.id %]',
'totaluserout:[% spce_test.testuser1002.uuid %]', 'totaluserout:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1002.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'local', 'local',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1003.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]',
'total', 'total',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1003.uuid %]' 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]'
] ]
- start|ROUTE_ACC_CALLER: - start|ROUTE_ACC_CALLER:
- start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
@ -201,19 +201,19 @@ 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_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1002.uuid %]', 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccountout:[% customer_test.id %]', 'totalaccountout:[% customer_test.id %]',
'totaluserout:[% spce_test.testuser1002.uuid %]', 'totaluserout:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1002.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'local', 'local',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1003.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]',
'total', 'total',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1003.uuid %]' 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]'
] ]
sip_in: sip_in:
- '^INVITE' - '^INVITE'
@ -238,12 +238,12 @@ sip_out:
- [ - [
'^INVITE sip:testuser1003@', '^INVITE sip:testuser1003@',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:4311002@', 'From: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:testuser1003@', 'To: <sip:testuser1003@',
'Content-Type: application/sdp', 'Content-Type: application/sdp',
'P-Caller-UUID: \w+', 'P-Caller-UUID: [% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'P-Callee-UUID: \w+', 'P-Callee-UUID: [% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]',
'P-Asserted-Identity: <sip:4311002@', 'P-Asserted-Identity: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@',
'P-Called-Party-ID: <sip:testuser1003@', 'P-Called-Party-ID: <sip:testuser1003@',
'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'

@ -13,15 +13,15 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0' - 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+' - 'From: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-per-account.scenarios.test>;tag=[\w-]+'
- 'To: <sip:testuser1003@spce.test>' - 'To: <sip:testuser1003@invite-concurrent-max-per-account.scenarios.test>'
- '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_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-per-account.scenarios.test>'
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]' - 'P-Caller-UUID: [% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002' - 'P-NGCP-Caller-Info: <sip:testuser1002@invite-concurrent-max-per-account.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]'
- 'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.0.1;port=5060;primary=4311003' - 'P-NGCP-Callee-Info: <sip:testuser1003@invite-concurrent-max-per-account.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_concurrent_max_per_account_scenarios_test.testuser1003.phone_number %]'
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060' - 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
- '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>'
@ -29,22 +29,22 @@ sip_in:
sip_out: sip_out:
- [ - [
'SIP/2.0 100 Trying', 'SIP/2.0 100 Trying',
'From: <sip:4311002@spce.test>;tag=[\w-]+', 'From: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-per-account.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1003@spce.test>', 'To: <sip:testuser1003@invite-concurrent-max-per-account.scenarios.test>',
'CSeq: \d+ INVITE', 'CSeq: \d+ INVITE',
'Server: Sipwise NGCP Proxy', 'Server: Sipwise NGCP Proxy',
'Content-Length: 0', 'Content-Length: 0',
] ]
- [ - [
'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0', 'INVITE sip:testuser1003@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
'From: <sip:4311002@spce.test>;tag=[\w-]+', 'From: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-per-account.scenarios.test>;tag=[\w-]+',
'To: <sip:testuser1003@spce.test>', 'To: <sip:testuser1003@invite-concurrent-max-per-account.scenarios.test>',
'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_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-per-account.scenarios.test>',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]', 'P-Caller-UUID: [% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002', 'P-NGCP-Caller-Info: <sip:testuser1002@invite-concurrent-max-per-account.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.0.1;port=5060;primary=4311003', 'P-NGCP-Callee-Info: <sip:testuser1003@invite-concurrent-max-per-account.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_concurrent_max_per_account_scenarios_test.testuser1003.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060', 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
'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>',

@ -17,19 +17,19 @@ 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_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1002.uuid %]', 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccountout:[% customer_test.id %]', 'totalaccountout:[% customer_test.id %]',
'totaluserout:[% spce_test.testuser1002.uuid %]', 'totaluserout:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1002.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.uuid %]',
'local', 'local',
'totalaccount:[% customer_test.id %]', 'totalaccount:[% customer_test.id %]',
'totaluser:[% spce_test.testuser1003.uuid %]', 'totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]',
'total', 'total',
'account:[% customer_test.id %]', 'account:[% customer_test.id %]',
'user:[% spce_test.testuser1003.uuid %]' 'user:[% invite_concurrent_max_per_account_scenarios_test.testuser1003.uuid %]'
] ]
- return|dialog:start: - return|dialog:start:
sip_in: sip_in:

@ -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-concurrent-max-per-account.scenarios.test
$var(realm_user): testuser1002 $var(realm_user): testuser1002
$var(realm_domain): spce.test $var(realm_domain): invite-concurrent-max-per-account.scenarios.test
- return|ROUTE_AUTH_HELPER: - return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002'] $avp(orig_acc_caller_user): ['testuser1002']
$avp(orig_acc_caller_domain): ['spce.test'] $avp(orig_acc_caller_domain): ['invite-concurrent-max-per-account.scenarios.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:
@ -65,10 +65,10 @@ flow:
- start|ROUTE_CNT_CALLEE_REJECT: - start|ROUTE_CNT_CALLEE_REJECT:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1004.uuid %]", "totaluser:[% invite_concurrent_max_per_account_scenarios_test.testuser1004.uuid %]",
"total", "total",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1004.uuid %]" "user:[% invite_concurrent_max_per_account_scenarios_test.testuser1004.uuid %]"
] ]
- start|ROUTE_ACC_FAILURE: - start|ROUTE_ACC_FAILURE:
$xavp(callee_real_prefs[0]=>concurrent_max[*]): None $xavp(callee_real_prefs[0]=>concurrent_max[*]): None

@ -44,7 +44,7 @@ sip_out:
] ]
- [ - [
'^BYE', '^BYE',
'From: <sip:4311002@', 'From: <sip:[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:testuser1003@', 'To: <sip:testuser1003@',
'CSeq: 3 BYE', 'CSeq: 3 BYE',
'Content-Length: 0' 'Content-Length: 0'

@ -16,7 +16,7 @@ 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_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]@'
- 'To: <sip:testuser1003@' - 'To: <sip:testuser1003@'
sip_out: sip_out:
- [ - [

@ -1,18 +1,18 @@
cdr: cdr:
- source_user: 'testuser1002' - source_user: 'testuser1002'
source_domain: 'spce.test' source_domain: 'invite-concurrent-max-per-account.scenarios.test'
source_cli: '4311002' source_cli: '[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]'
destination_user: 'testuser1003' destination_user: 'testuser1003'
destination_domain: 'spce.test' destination_domain: 'invite-concurrent-max-per-account.scenarios.test'
destination_user_dialed: 'testuser1003' destination_user_dialed: 'testuser1003'
call_type: 'call' call_type: 'call'
call_status: 'ok' call_status: 'ok'
call_code: '200' call_code: '200'
- source_user: 'testuser1002' - source_user: 'testuser1002'
source_domain: 'spce.test' source_domain: 'invite-concurrent-max-per-account.scenarios.test'
source_cli: '4311002' source_cli: '[% invite_concurrent_max_per_account_scenarios_test.testuser1002.phone_number %]'
destination_user: 'testuser1004' destination_user: 'testuser1004'
destination_domain: 'spce.test' destination_domain: 'invite-concurrent-max-per-account.scenarios.test'
destination_user_dialed: 'testuser1004' destination_user_dialed: 'testuser1004'
call_type: 'call' call_type: 'call'
call_status: 'busy' call_status: 'busy'

@ -1,8 +0,0 @@
{
"testuser1003@spce.test": {
"concurrent_max_per_account": 2
},
"testuser1004@spce.test": {
"concurrent_max_per_account": 2
}
}

@ -0,0 +1,8 @@
{
"testuser1003@invite-concurrent-max-per-account.scenarios.test": {
"concurrent_max_per_account": 2
},
"testuser1004@invite-concurrent-max-per-account.scenarios.test": {
"concurrent_max_per_account": 2
}
}

@ -1,6 +1,7 @@
---
test_uuid: invite_concurrent_max_per_account test_uuid: invite_concurrent_max_per_account
domains: domains:
'spce.test': invite-concurrent-max-per-account.scenarios.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-concurrent-max-per-account.scenarios.test:
testuser1003: testuser1003:
customer: 'customer.test' customer: 'customer.test'
password: testuser password: testuser
@ -35,13 +36,13 @@ subscribers:
scenarios: scenarios:
- ip: 127.126.0.1 - ip: 127.126.0.1
username: testuser1002 username: testuser1002
domain: spce.test domain: invite-concurrent-max-per-account.scenarios.test
responders: responders:
- ip: 127.1.0.1 - ip: 127.1.0.1
username: testuser1003 username: testuser1003
domain: spce.test domain: invite-concurrent-max-per-account.scenarios.test
register: yes register: 'yes'
- ip: 127.2.0.1 - ip: 127.2.0.1
username: testuser1004 username: testuser1004
domain: spce.test domain: invite-concurrent-max-per-account.scenarios.test
register: yes register: 'yes'

Loading…
Cancel
Save