TT#116100 scenarios/invite_offline

* domain per scenario
* dynamic IP/port and numbers

Change-Id: Id40ab6fbb7dcfd9e94577482c437900e97c1d382
mr9.5.1
Victor Seva 5 years ago
parent d91f51732c
commit 93684e9927

@ -23,7 +23,7 @@ flow:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE'
- 'Contact: sip:testuser1002@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 1 INVITE'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'

@ -17,12 +17,12 @@ flow:
- start|ROUTE_FIND_CALLER:
- start|ROUTE_AUTH:
- start|ROUTE_AUTH_HELPER:
$x_hdr(From): spce.test
$var(realm_user): testuser1002
$var(realm_domain): spce.test
$x_hdr(From): invite-offline.scenarios.test
$var(realm_user): [% scenarios.0.username %]
$var(realm_domain): invite-offline.scenarios.test
- return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002']
$avp(orig_acc_caller_domain): ['spce.test']
$avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
$avp(orig_acc_caller_domain): ['invite-offline.scenarios.test']
- start|ROUTE_ADD_CALLINFO_REPLY:
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
@ -65,10 +65,10 @@ flow:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_offline_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_offline_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
@ -128,29 +128,29 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE sip:testuser1003@'
- 'Contact: sip:testuser1002@'
- '^INVITE sip:[% scenarios.0.responders.0.username %]@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 2 INVITE'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'
- 'Proxy-Authorization: Digest username="testuser1002"'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]"'
sip_out:
- [
'^SIP/2.0 100 Trying',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@'
'From: <sip:[% scenarios.0.username %]@'
]
- [
'^SIP/2.0 101 Connecting',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'P-NGCP-Authorization: testuser1002',
'From: <sip:[% scenarios.0.username %]@',
'P-NGCP-Authorization: [% scenarios.0.username %]',
'P-NGCP-Authorized: 1'
]
- [
'^SIP/2.0 480 Offline',
'CSeq: 2 INVITE',
'From: <sip:testuser1002@',
'P-NGCP-Authorization: testuser1002',
'From: <sip:[% scenarios.0.username %]@',
'P-NGCP-Authorization: [% scenarios.0.username %]',
'P-NGCP-Authorized: 1'
]

@ -17,12 +17,12 @@ flow:
- start|ROUTE_FIND_CALLER:
- start|ROUTE_AUTH:
- start|ROUTE_AUTH_HELPER:
$x_hdr(From): spce.test
$var(realm_user): testuser1002
$var(realm_domain): spce.test
$x_hdr(From): invite-offline.scenarios.test
$var(realm_user): [% scenarios.0.username %]
$var(realm_domain): invite-offline.scenarios.test
- return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1002']
$avp(orig_acc_caller_domain): ['spce.test']
$avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
$avp(orig_acc_caller_domain): ['invite-offline.scenarios.test']
- start|ROUTE_ADD_CALLINFO_REPLY:
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
@ -65,10 +65,10 @@ flow:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_offline_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_offline_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
@ -128,25 +128,25 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^INVITE sip:4311003@'
- 'Contact: sip:testuser1002@'
- '^INVITE sip:[% invite_offline_scenarios_test.testuser1003.phone_number %]@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 3 INVITE'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'
- 'Proxy-Authorization: Digest username="testuser1002"'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]"'
sip_out:
- [
'^SIP/2.0 100 Trying',
'CSeq: 3 INVITE',
'From: <sip:testuser1002@'
'From: <sip:[% scenarios.0.username %]@'
]
- [
'^SIP/2.0 101 Connecting',
'CSeq: 3 INVITE',
'From: <sip:testuser1002@'
'From: <sip:[% scenarios.0.username %]@'
]
- [
'^SIP/2.0 480 Offline',
'CSeq: 3 INVITE',
'From: <sip:testuser1002@'
'From: <sip:[% scenarios.0.username %]@'
]

@ -1,20 +1,20 @@
cdr:
- source_user: 'testuser1002'
source_domain: 'spce.test'
source_cli: '4311002'
destination_user: 'testuser1003'
destination_domain: 'spce.test'
destination_user_dialed: '4311003'
- source_user: '[% scenarios.0.username %]'
source_domain: 'invite-offline.scenarios.test'
source_cli: '[% invite_offline_scenarios_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.0.username %]'
destination_domain: 'invite-offline.scenarios.test'
destination_user_dialed: '[% invite_offline_scenarios_test.testuser1003.phone_number %]'
call_type: 'call'
call_status: 'noanswer'
call_code: '480'
duration: '0'
- source_user: 'testuser1002'
source_domain: 'spce.test'
source_cli: '4311002'
destination_user: 'testuser1003'
destination_domain: 'spce.test'
destination_user_dialed: 'testuser1003'
- source_user: '[% scenarios.0.username %]'
source_domain: 'invite-offline.scenarios.test'
source_cli: '[% invite_offline_scenarios_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.0.username %]'
destination_domain: 'invite-offline.scenarios.test'
destination_user_dialed: '[% scenarios.0.responders.0.username %]'
call_type: 'call'
call_status: 'noanswer'
call_code: '480'

@ -1,6 +1,7 @@
---
test_uuid: invite_offline
domains:
'spce.test':
invite-offline.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
invite-offline.scenarios.test:
testuser1003:
customer: 'customer.test'
password: testuser
@ -28,11 +29,11 @@ subscribers:
sn: 1002
scenarios:
- ip: 127.126.0.1
domain: spce.test
domain: invite-offline.scenarios.test
username: testuser1002
responders:
- ip: 127.1.0.1
domain: spce.test
register: no
domain: invite-offline.scenarios.test
register: 'no'
username: testuser1003
active: no
active: 'no'

Loading…
Cancel
Save