TT#116100 scenarios/invite_allowip

* domain per scenario
* dynamic IP/port and numbers
* dynamic values at prefs.json

Change-Id: Iab62d2a0ea5953bc6a32e4ed41f1977ae687a515
mr9.5.1
Victor Seva 5 years ago
parent 65306258e6
commit d87d869d8f

@ -17,12 +17,12 @@ flow:
- start|ROUTE_FIND_CALLER:
- start|ROUTE_AUTH:
- start|ROUTE_AUTH_HELPER:
$x_hdr(From): spce.test
$x_hdr(From): invite-allowip.scenarios.test
$var(realm_user): testuser1002
$var(realm_domain): spce.test
$var(realm_domain): invite-allowip.scenarios.test
- return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002']
$avp(orig_acc_caller_domain): ['spce.test']
$avp(orig_acc_caller_domain): ['invite-allowip.scenarios.test']
- start|ROUTE_ADD_CALLINFO_REPLY:
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:

@ -1,9 +1,9 @@
cdr:
- source_user: 'testuser1002'
source_domain: 'spce.test'
source_domain: 'invite-allowip.scenarios.test'
source_cli: '0'
destination_user: 'testuser1003'
destination_domain: 'spce.test'
destination_domain: 'invite-allowip.scenarios.test'
destination_user_dialed: 'testuser1003'
call_type: 'call'
call_status: 'other'

@ -1,8 +0,0 @@
{
"testuser1002@spce.test": {
"allowed_ips": [
"1.2.3.4"
],
"cli": 4311002
}
}

@ -0,0 +1,8 @@
{
"testuser1002@invite-allowip.scenarios.test": {
"allowed_ips": [
"1.2.3.4"
],
"cli": [% invite_allowip_scenarios_test.testuser1002.phone_number %]
}
}

@ -1,6 +1,7 @@
---
test_uuid: invite_allowip
domains:
'spce.test':
invite-allowip.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
invite-allowip.scenarios.test:
testuser1003:
customer: 'customer.test'
password: testuser
@ -29,10 +30,10 @@ subscribers:
scenarios:
- ip: 127.126.0.1
username: testuser1002
domain: spce.test
domain: invite-allowip.scenarios.test
responders:
- ip: 127.1.0.1
username: testuser1003
domain: spce.test
register: no
active: no
domain: invite-allowip.scenarios.test
register: 'no'
active: 'no'

Loading…
Cancel
Save