TT#116100 scenarios/invite_concurrent_max_out_per_account

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I7287d5998e78db0fa24b600bd9309d073d4284b7
mr9.5.1
Victor Seva 5 years ago
parent 45341d9fba
commit 854e55712a

@ -21,9 +21,9 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE sip:004321001@'
- '^INVITE sip:[% scenarios.0.responders.0.username %]@'
- 'Contact: sip:testuser1002@'
- 'To: <sip:004321001@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
- 'CSeq: 1 INVITE'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'
@ -32,11 +32,11 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 1 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]
- [
'^SIP/2.0 407 Proxy Authentication Required',
'CSeq: 1 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]

@ -93,13 +93,13 @@ flow:
- start|ROUTE_CNT_CALLER_REJECT:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"total",
"relay",
"peerout:[% peer_00_host0.id %]",
@ -168,13 +168,13 @@ flow:
- exit|ROUTE_EXIT:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"total",
"relay",
"peerout:[% peer_00_host0.id %]",
@ -182,7 +182,7 @@ flow:
"outgoing"
]
sip_in:
- '^INVITE sip:004321001@'
- '^INVITE sip:[% scenarios.0.responders.0.username %]@'
- 'Contact: sip:testuser1002@'
- 'CSeq: 2 INVITE'
- 'Max-Forwards: 69'
@ -193,24 +193,24 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]
- [
'^SIP/2.0 101 Connecting',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]
- [
'^INVITE sip:004321001@',
'^INVITE sip:[% scenarios.0.responders.0.username %]@',
'CSeq: 2 INVITE',
'From: <sip:4311002@',
'To: <sip:004321001@',
'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'Content-Type: application/sdp',
'P-Caller-UUID: \w+',
'P-Callee-UUID: \w+',
'P-Asserted-Identity: <sip:4311002@',
'P-Called-Party-ID: <sip:004321001@',
'P-Asserted-Identity: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@',
'P-Called-Party-ID: <sip:[% scenarios.0.responders.0.username %]@',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
'P-App-Name: sbc'
]

@ -13,39 +13,39 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0'
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
- 'To: <sip:004321001@127.0.2.1>'
- 'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=udp SIP/2.0'
- 'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-out-per-account.scenarios.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]>'
- 'CSeq: \d+ INVITE'
- 'P-LB-Uptime: \d+'
- 'P-Asserted-Identity: <sip:4311002@spce.test>'
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002'
- 'P-NGCP-Callee-Info: <sip:004321001@spce.test>;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'
- 'P-Asserted-Identity: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-out-per-account.scenarios.test>'
- 'P-Caller-UUID: [% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:testuser1002@invite-concurrent-max-out-per-account.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]'
- 'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-concurrent-max-out-per-account.scenarios.test>;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %]'
- '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: <sip:127.0.0.1:508[08];transport=udp>'
- 'Content-Length:\s+\d+'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:4311002@spce.test>;tag=[\w-]+',
'To: <sip:004321001@127.0.2.1>',
'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-out-per-account.scenarios.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]>',
'CSeq: \d+ INVITE',
'Server: Sipwise NGCP Proxy',
'Content-Length: 0',
]
- [
'INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0',
'From: <sip:4311002@spce.test>;tag=[\w-]+',
'To: <sip:004321001@127.0.2.1>',
'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=udp SIP/2.0',
'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-out-per-account.scenarios.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]>',
'CSeq: \d+ INVITE',
'P-LB-Uptime: \d+',
'P-Asserted-Identity: <sip:4311002@spce.test>',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
'P-NGCP-Callee-Info: <sip:004321001@spce.test>;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',
'P-Asserted-Identity: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@invite-concurrent-max-out-per-account.scenarios.test>',
'P-Caller-UUID: [% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:testuser1002@invite-concurrent-max-out-per-account.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-concurrent-max-out-per-account.scenarios.test>;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %]',
'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: <sip:127.0.0.1:508[08];transport=udp>',
'Content-Length:\s+\d+',

@ -17,13 +17,13 @@ flow:
- return|dialog:start:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"total",
"relay",
"peerout:[% peer_00_host0.id %]",
@ -39,5 +39,5 @@ sip_out:
'^SIP/2.0 200 OK',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]

@ -36,13 +36,13 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 3 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]
- [
'^INVITE',
'CSeq: 3 INVITE',
'From: <sip:4311002@',
'To: <sip:004321001@',
'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'Content-Type: application/sdp',
'Proxy-Authorization: Digest username="testuser1002"',
'Max-Forwards: 68',

@ -22,5 +22,5 @@ sip_out:
'^SIP/2.0 200 OK',
'CSeq: 3 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]

@ -21,9 +21,9 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE sip:004421003@'
- '^INVITE sip:[% scenarios.0.responders.1.username %]@'
- 'Contact: sip:testuser1002@'
- 'To: <sip:004421003@'
- 'To: <sip:[% scenarios.0.responders.1.username %]@'
- 'CSeq: 1 INVITE'
- 'Max-Forwards: 69'
- 'Call-ID: NGCP%invite_concurrent_max_out_per_account%NEW///'
@ -33,11 +33,11 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 1 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004421003@'
'To: <sip:[% scenarios.0.responders.1.username %]@'
]
- [
'^SIP/2.0 407 Proxy Authentication Required',
'CSeq: 1 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004421003@'
'To: <sip:[% scenarios.0.responders.1.username %]@'
]

@ -95,13 +95,13 @@ flow:
$avp(size): [2]
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.uuid %]",
"total",
"relay",
"peerout:[% peer_00_host0.id %]",
@ -137,10 +137,10 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE sip:004421003@'
- '^INVITE sip:[% scenarios.0.responders.1.username %]@'
- 'Contact: sip:testuser1002@'
- 'From: <sip:testuser1002@'
- 'To: <sip:004421003@'
- 'To: <sip:[% scenarios.0.responders.1.username %]@'
- 'CSeq: 2 INVITE'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'
@ -150,19 +150,19 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'To: <sip:004421003@'
'To: <sip:[% scenarios.0.responders.1.username %]@'
]
- [
'^SIP/2.0 101 Connecting',
'<sip:testuser1002@',
'To: <sip:004421003@',
'To: <sip:[% scenarios.0.responders.1.username %]@',
'CSeq: 2 INVITE',
'P-NGCP-Authorization: testuser1002@',
]
- [
'^SIP/2.0 403 Maximum parallel calls exceeded',
'From: <sip:testuser1002@',
'To: <sip:004421003@',
'To: <sip:[% scenarios.0.responders.1.username %]@',
'CSeq: 2 INVITE',
'P-NGCP-Authorization: testuser1002@',
'P-NGCP-Authorized: 1'

@ -30,7 +30,7 @@ sip_in:
- '^BYE'
- 'Contact: sip:testuser1002@'
- 'From: <sip:testuser1002@'
- 'To: <sip:004321001@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
- 'CSeq: 6 BYE'
- 'Max-Forwards: 69'
- 'Content-Length: 0'
@ -39,13 +39,13 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 6 BYE',
'From: <sip:testuser1002@',
'To: <sip:004321001@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'Content-Length: 0'
]
- [
'^BYE',
'From: <sip:4311002@',
'To: <sip:004321001@',
'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'CSeq: 6 BYE',
'Content-Length: 0'
]

@ -16,13 +16,13 @@ sip_in:
- '^SIP/2.0 200 OK'
- 'CSeq: 6 BYE'
- 'Content-Length: 0'
- 'From: <sip:4311002@'
- 'To: <sip:004321001@'
- 'From: <sip:[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
sip_out:
- [
'^SIP/2.0 200 OK',
'CSeq: 6 BYE',
'Content-Length: 0',
'From: <sip:testuser1002@',
'To: <sip:004321001@'
'To: <sip:[% scenarios.0.responders.0.username %]@'
]

@ -1,19 +1,19 @@
cdr:
- source_user: 'testuser1002'
source_domain: 'spce.test'
source_cli: '4311002'
destination_user: '004321001'
destination_domain: '127.0.2.1'
destination_user_dialed: '004321001'
source_domain: 'invite-concurrent-max-out-per-account.scenarios.test'
source_cli: '[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.0.username %]'
destination_domain: '[% scenarios.0.responders.0.ip %]'
destination_user_dialed: '[% scenarios.0.responders.0.username %]'
call_type: 'call'
call_status: 'ok'
call_code: '200'
- source_user: 'testuser1002'
source_domain: 'spce.test'
source_cli: '4311002'
destination_user: '004421003'
destination_domain: '127.0.2.1'
destination_user_dialed: '004421003'
source_domain: 'invite-concurrent-max-out-per-account.scenarios.test'
source_cli: '[% invite_concurrent_max_out_per_account_scenarios_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.1.username %]'
destination_domain: '[% scenarios.0.responders.0.ip %]'
destination_user_dialed: '[% scenarios.0.responders.1.username %]'
call_type: 'call'
call_status: 'other'
call_code: '403'

@ -1,51 +1,51 @@
---
peer_00:
peer_00_invite_concurrent_max_out_per_account:
contact:
company: peer_00
email: peer_00@host0.not
company: peer_00_invite_concurrent_max_out_per_account
email: peer_00_invite_concurrent_max_out_per_account@host0.not
contract:
billing_profile_id: 1
status: active
type: sippeering
groups:
- name: peer_00_group
- name: peer_00_invite_concurrent_max_out_per_account_group
priority: 1
description:
rules:
- group_id: peer_00_group
- group_id: peer_00_invite_concurrent_max_out_per_account_group
callee_prefix: ""
callee_pattern: ''
caller_pattern: '^sip:.+@spce.test'
caller_pattern: '^sip:.+@invite-concurrent-max-out-per-account.scenarios.test'
description: ""
hosts:
- group_id: peer_00_group
name: peer_00_host0
- group_id: peer_00_invite_concurrent_max_out_per_account_group
name: peer_00_invite_concurrent_max_out_per_account_host0
ip: 127.0.2.1
port: 51602
host:
transport: 1
weight: 1
peer_01:
peer_01_invite_concurrent_max_out_per_account:
contact:
company: peer_01
email: peer_01@host1.not
company: peer_01_invite_concurrent_max_out_per_account
email: peer_01_invite_concurrent_max_out_per_account@host1.not
contract:
billing_profile_id: 1
status: active
type: sippeering
groups:
- name: peer_01_group
- name: peer_01_invite_concurrent_max_out_per_account_group
priority: 1
description:
rules:
- group_id: peer_01_group
- group_id: peer_01_invite_concurrent_max_out_per_account_group
callee_prefix: ""
callee_pattern: '^44.+'
caller_pattern: '^sip:.+@spce.test'
caller_pattern: '^sip:.+@invite-concurrent-max-out-per-account.scenarios.test'
description: ""
hosts:
- group_id: peer_01_group
name: peer_01_host0
- group_id: peer_01_invite_concurrent_max_out_per_account_group
name: peer_01_invite_concurrent_max_out_per_account_host1
ip: 127.0.3.1
port: 50607
host:

@ -1,11 +0,0 @@
{
"testuser1002@spce.test": {
"concurrent_max_out_per_account": 1
},
"peer_00_host0": {
"concurrent_max": 10
},
"peer_01_host0": {
"concurrent_max": 10
}
}

@ -0,0 +1,11 @@
{
"testuser1002@invite-concurrent-max-out-per-account.scenarios.test": {
"concurrent_max_out_per_account": 1
},
"peer_00_invite_concurrent_max_out_per_account_host0": {
"concurrent_max": 10
},
"peer_01_invite_concurrent_max_out_per_account_host1": {
"concurrent_max": 10
}
}

@ -1,6 +1,7 @@
---
test_uuid: invite_concurrent_max_out_per_account
domains:
'spce.test':
invite-concurrent-max-out-per-account.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
invite-concurrent-max-out-per-account.scenarios.test:
testuser1002:
customer: 'customer.test'
password: testuser
@ -23,17 +24,17 @@ subscribers:
scenarios:
- ip: 127.126.0.1
username: testuser1002
domain: spce.test
domain: invite-concurrent-max-out-per-account.scenarios.test
responders:
- ip: 127.0.2.1
number: 004321001
username: 004321001
domain: spce.test
peer_host: peer_00_host0
register: no
domain: invite-concurrent-max-out-per-account.scenarios.test
peer_host: peer_00_invite_concurrent_max_out_per_account_host0
register: 'no'
- ip: 127.0.3.1
number: 004421003
username: 004421003
domain: spce.test
peer_host: peer_00_host1
register: no
domain: invite-concurrent-max-out-per-account.scenarios.test
peer_host: peer_01_invite_concurrent_max_out_per_account_host1
register: 'no'

Loading…
Cancel
Save