TT#116100 scenarios/invite_voicebox

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I9da0bfc6a6be7566d18a8a7238a63c17cd990a71
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 67443a3112
commit 25ba2ac69f

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

@ -1,4 +1,3 @@
# INVITE_OFFLINE scenario
flow: flow:
- start|DEFAULT_ROUTE: - start|DEFAULT_ROUTE:
- start|ROUTE_ENTRY: - start|ROUTE_ENTRY:
@ -18,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-voicebox.scenarios.test
$var(realm_user): testuser1002 $var(realm_user): [% scenarios.0.username %]
$var(realm_domain): spce.test $var(realm_domain): invite-voicebox.scenarios.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-voicebox.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:
@ -66,10 +65,10 @@ flow:
- return|ROUTE_SET_CALLEE_DIALOG: - return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"total", "total",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1001.uuid %]" "user:[% invite_voicebox_scenarios_test.testuser1001.uuid %]"
] ]
- start|ROUTE_BLOCK_IN: - start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN: - return|ROUTE_BLOCK_IN:
@ -114,18 +113,18 @@ 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_voicebox_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]", "user:[% invite_voicebox_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]", "totaluserout:[% invite_voicebox_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]", "totaluser:[% invite_voicebox_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"total", "total",
"account:[% customer_test.id %]", "account:[% customer_test.id %]",
"user:[% spce_test.testuser1001.uuid %]" "user:[% invite_voicebox_scenarios_test.testuser1001.uuid %]"
] ]
- start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
- return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS: - return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
@ -159,34 +158,34 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE' - '^INVITE'
- '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 %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.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 %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]
- [ - [
'^INVITE sip:vmu4311001@voicebox.local SIP/2.0', '^INVITE sip:vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]@voicebox.local SIP/2.0',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@', 'To: <sip:[% scenarios.0.responders.0.username %]@',
'Content-Type: application/sdp', 'Content-Type: application/sdp',
'P-Caller-UUID: \w+', 'P-Caller-UUID: [% invite_voicebox_scenarios_test.testuser1001.uuid %]',
'P-First-Caller-UPN: 4311002', 'P-First-Caller-UPN: [% invite_voicebox_scenarios_test.testuser1002.phone_number %]',
'P-First-Caller-NPN: 4311002', 'P-First-Caller-NPN: [% invite_voicebox_scenarios_test.testuser1002.phone_number %]',
'P-Acc-Caller-User: testuser1001', 'P-Acc-Caller-User: [% scenarios.0.responders.0.username %]',
'P-Acc-State: cfu', 'P-Acc-State: cfu',
'P-App-Param: ;profile=ngcp_cf', 'P-App-Param: ;profile=ngcp_cf',
'P-App-Name: sbc' 'P-App-Name: sbc'

@ -60,9 +60,9 @@ flow:
- return|ROUTE_SET_CALLER_DIALOG: - return|ROUTE_SET_CALLER_DIALOG:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1001.uuid %]", "totaluserout:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"peer:voicebox", "peer:voicebox",
"local" "local"
] ]
@ -117,34 +117,34 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
$avp(lua_dlg_profile): [ $avp(lua_dlg_profile): [
"totalaccountout:[% customer_test.id %]", "totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1001.uuid %]", "totaluserout:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% invite_voicebox_scenarios_test.testuser1001.uuid %]",
"peer:voicebox", "peer:voicebox",
"local" "local"
] ]
sip_in: sip_in:
- '^INVITE sip:vmu4311001@voicebox.local SIP/2.0' - '^INVITE sip:vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]@voicebox.local SIP/2.0'
- 'Contact: <sip:127.0.0.1:5080(;transport=udp)?>' - 'Contact: <sip:127.0.0.1:5080(;transport=udp)?>'
- 'CSeq: \d+ INVITE' - 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp' - 'Content-Type: application/sdp'
- 'P-Caller-UUID: [% spce_test.testuser1001.uuid %]' - 'P-Caller-UUID: [% invite_voicebox_scenarios_test.testuser1001.uuid %]'
- 'P-First-Caller-UPN: 4311002' - 'P-First-Caller-UPN: [% invite_voicebox_scenarios_test.testuser1002.phone_number %]'
- 'P-First-Caller-NPN: 4311002' - 'P-First-Caller-NPN: [% invite_voicebox_scenarios_test.testuser1002.phone_number %]'
- 'P-Acc-Caller-User: testuser1001' - 'P-Acc-Caller-User: [% scenarios.0.responders.0.username %]'
- 'P-Acc-State: cfu' - 'P-Acc-State: cfu'
sip_out: sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: \d+ INVITE', 'CSeq: \d+ INVITE',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]
- [ - [
'^INVITE sip:vmu4311001@voicebox.local SIP/2.0', '^INVITE sip:vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]@voicebox.local SIP/2.0',
'CSeq: \d+ INVITE', 'CSeq: \d+ INVITE',
'From: <sip:4311002@', 'From: <sip:[% invite_voicebox_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:testuser1001@', 'To: <sip:[% scenarios.0.responders.0.username %]@',
'Contact: <sip:127.0.0.1:5080(;transport=udp)?>', 'Contact: <sip:127.0.0.1:5080(;transport=udp)?>',
'Content-Type: application/sdp' 'Content-Type: application/sdp'
] ]

@ -21,19 +21,19 @@ 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:testuser1001@' - 'To: <sip:[% scenarios.0.responders.0.username %]@'
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:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]

@ -27,27 +27,27 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^BYE sip:127.0.0.1:5080(;prxroute=1)?(;transport=udp)? SIP/2.0' - '^BYE sip:127.0.0.1:5080(;prxroute=1)?(;transport=udp)? 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:testuser1001@' - 'To: <sip:[% scenarios.0.responders.0.username %]@'
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:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]
- [ - [
'^BYE sip:127.0.0.1:5080(;prxroute=1)?(;transport=udp)? SIP/2.0', '^BYE sip:127.0.0.1:5080(;prxroute=1)?(;transport=udp)? 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:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]

@ -28,24 +28,24 @@ flow:
- return|ROUTE_RUNTIME: - return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^BYE sip:vmu4311001@127.0.0.1:5070 SIP/2.0' - '^BYE sip:vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]@127.0.0.1:5070 SIP/2.0'
- 'CSeq: \d+ BYE' - 'CSeq: \d+ BYE'
- 'Content-Length: 0' - 'Content-Length: 0'
- 'From: <sip:testuser1002@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:testuser1001@' - 'To: <sip:[% scenarios.0.responders.0.username %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: \d+ BYE', 'CSeq: \d+ BYE',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]
- [ - [
'^BYE sip:vmu4311001@127.0.0.1:5070 SIP/2.0', '^BYE sip:vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]@127.0.0.1:5070 SIP/2.0',
'CSeq: \d+ BYE', 'CSeq: \d+ BYE',
'Max-Forwards: 69', 'Max-Forwards: 69',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:4311002@', 'From: <sip:[% invite_voicebox_scenarios_test.testuser1002.phone_number %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]

@ -15,14 +15,14 @@ flow:
sip_in: sip_in:
- '^SIP/2.0 200 OK' - '^SIP/2.0 200 OK'
- 'CSeq: \d+ BYE' - 'CSeq: \d+ BYE'
- 'From: <sip:4311002@' - 'From: <sip:[% invite_voicebox_scenarios_test.testuser1002.phone_number %]@'
- 'Content-Length: 0' - 'Content-Length: 0'
- 'To: <sip:testuser1001@' - 'To: <sip:[% scenarios.0.responders.0.username %]@'
sip_out: sip_out:
- [ - [
'^SIP/2.0 200 OK', '^SIP/2.0 200 OK',
'CSeq: \d+ BYE', 'CSeq: \d+ BYE',
'Content-Length: 0', 'Content-Length: 0',
'From: <sip:testuser1002@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:testuser1001@' 'To: <sip:[% scenarios.0.responders.0.username %]@'
] ]

@ -1,5 +1,5 @@
--- ---
testuser1001@spce.test: [% scenarios.0.responders.0.username %]@invite-voicebox.scenarios.test:
destinations: destinations:
destinations: destinations:
- destination: voicebox - destination: voicebox
@ -21,6 +21,6 @@ testuser1001@spce.test:
cfo: [] cfo: []
voicebox: voicebox:
pin: 0000 pin: 0000
email: root@spce.test email: root@invite-voicebox.scenarios.test
attach: 1 attach: 1
delete: 1 delete: 1

@ -1,20 +1,20 @@
cdr: cdr:
- source_user: 'testuser1002' - source_user: '[% scenarios.0.username %]'
source_domain: 'spce.test' source_domain: 'invite-voicebox.scenarios.test'
source_cli: '4311002' source_cli: '[% invite_voicebox_scenarios_test.testuser1002.phone_number %]'
destination_user: 'testuser1001' destination_user: '[% scenarios.0.responders.0.username %]'
destination_domain: 'spce.test' destination_domain: 'invite-voicebox.scenarios.test'
destination_user_dialed: 'testuser1001' destination_user_dialed: '[% scenarios.0.responders.0.username %]'
call_type: 'call' call_type: 'call'
call_status: 'ok' call_status: 'ok'
call_code: '200' call_code: '200'
- source_user: 'testuser1001' - source_user: '[% scenarios.0.responders.0.username %]'
source_domain: 'spce.test' source_domain: 'invite-voicebox.scenarios.test'
source_cli: '4311001' source_cli: '[% invite_voicebox_scenarios_test.testuser1001.phone_number %]'
destination_user: 'vmu4311001' destination_user: 'vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]'
destination_domain: 'voicebox.local' destination_domain: 'voicebox.local'
destination_user_dialed: 'vmu4311001' destination_user_dialed: 'vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]'
destination_user_in: 'vmu4311001' destination_user_in: 'vmu[% invite_voicebox_scenarios_test.testuser1001.phone_number %]'
destination_domain_in: 'voicebox.local' destination_domain_in: 'voicebox.local'
call_type: 'cfu' call_type: 'cfu'
call_status: 'ok' call_status: 'ok'

@ -1,6 +1,7 @@
---
test_uuid: invite_voicebox test_uuid: invite_voicebox
domains: domains:
'spce.test': invite-voicebox.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-voicebox.scenarios.test:
testuser1001: testuser1001:
customer: 'customer.test' customer: 'customer.test'
password: testuser password: testuser
@ -29,10 +30,10 @@ subscribers:
scenarios: scenarios:
- ip: 127.126.0.1 - ip: 127.126.0.1
username: testuser1002 username: testuser1002
domain: spce.test domain: invite-voicebox.scenarios.test
responders: responders:
- ip: 127.1.0.1 - ip: 127.1.0.1
username: testuser1001 username: testuser1001
domain: spce.test domain: invite-voicebox.scenarios.test
register: no register: 'no'
active: no active: 'no'

Loading…
Cancel
Save