TT#116100 scenarios/reminder

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I45d1e43081c1eaae3a4fc8744c2b248ff2965ec3
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 79e32b52a6
commit 0ac1a52ad5

@ -22,7 +22,7 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^INVITE' - '^INVITE'
- 'Contact: sip:testuser1001@' - 'Contact: sip:[% scenarios.0.username %]@'
- 'To: <sip:\*55\*\d{4}@' - 'To: <sip:\*55\*\d{4}@'
- 'CSeq: 1 INVITE' - 'CSeq: 1 INVITE'
- 'Max-Forwards: 69' - 'Max-Forwards: 69'
@ -31,12 +31,12 @@ sip_out:
- [ - [
'^SIP/2.0 100 Trying', '^SIP/2.0 100 Trying',
'CSeq: 1 INVITE', 'CSeq: 1 INVITE',
'From: <sip:testuser1001@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:\*55\*\d{4}@' 'To: <sip:\*55\*\d{4}@'
] ]
- [ - [
'^SIP/2.0 407 Proxy Authentication Required', '^SIP/2.0 407 Proxy Authentication Required',
'CSeq: 1 INVITE', 'CSeq: 1 INVITE',
'From: <sip:testuser1001@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:\*55\*\d{4}@' 'To: <sip:\*55\*\d{4}@'
] ]

@ -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): reminder.scenarios.test
$var(realm_user): testuser1001 $var(realm_user): [% scenarios.0.username %]
$var(realm_domain): spce.test $var(realm_domain): reminder.scenarios.test
- return|ROUTE_AUTH_HELPER: - return|ROUTE_AUTH_HELPER:
$avp(orig_acc_caller_user): ['testuser1001'] $avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
$avp(orig_acc_caller_domain): ['spce.test'] $avp(orig_acc_caller_domain): ['reminder.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:
@ -67,9 +67,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:[% reminder_scenarios_test.testuser1001.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% reminder_scenarios_test.testuser1001.uuid %]",
"total", "total",
"peer:appsrv", "peer:appsrv",
"local" "local"
@ -126,25 +126,25 @@ 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:[% reminder_scenarios_test.testuser1001.uuid %]",
"totalaccount:[% customer_test.id %]", "totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1001.uuid %]", "totaluser:[% reminder_scenarios_test.testuser1001.uuid %]",
"total", "total",
"peer:appsrv", "peer:appsrv",
"local" "local"
] ]
sip_in: sip_in:
- '^INVITE' - '^INVITE'
- 'Contact: sip:testuser1001@' - '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="testuser1001"' - '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:testuser1001@', 'From: <sip:[% scenarios.0.username %]@',
'To: <sip:\*55\*\d{4}@' 'To: <sip:\*55\*\d{4}@'
] ]
- [ - [
@ -156,10 +156,10 @@ sip_out:
- [ - [
'^INVITE sip:\*55\*\d{4}@', '^INVITE sip:\*55\*\d{4}@',
'CSeq: 2 INVITE', 'CSeq: 2 INVITE',
'From: <sip:4311001@', 'From: <sip:[% reminder_scenarios_test.testuser1001.phone_number %]@',
'To: <sip:\*55\*\d{4}@', 'To: <sip:\*55\*\d{4}@',
'Content-Type: application/sdp', 'Content-Type: application/sdp',
'P-Caller-UUID: [% spce_test.testuser1001.uuid %]', 'P-Caller-UUID: [% reminder_scenarios_test.testuser1001.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1001.uuid %]', 'P-Callee-UUID: [% reminder_scenarios_test.testuser1001.uuid %]',
'P-App-Name: sw_vsc' 'P-App-Name: sw_vsc'
] ]

@ -26,12 +26,12 @@ flow:
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'
- 'CSeq: 2 ACK' - 'CSeq: 2 ACK'
- 'From: <sip:testuser1001@' - 'From: <sip:[% scenarios.0.username %]@'
- 'To: <sip:\*55\*\d{4}@' - 'To: <sip:\*55\*\d{4}@'
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',
'CSeq: 2 ACK', 'CSeq: 2 ACK',
'From: <sip:4311001@', 'From: <sip:[% reminder_scenarios_test.testuser1001.phone_number %]@',
'To: <sip:\*55\*\d{4}@' 'To: <sip:\*55\*\d{4}@'
] ]

@ -14,12 +14,12 @@ flow:
- exit|ROUTE_EXIT: - exit|ROUTE_EXIT:
sip_in: sip_in:
- '^SIP/2.0 200 OK' - '^SIP/2.0 200 OK'
- 'From: <sip:\*55\*1420@spce.test>;tag=' - 'From: <sip:\*55\*1420@reminder.scenarios.test>;tag='
- 'To: <sip:testuser1001@spce.test>;tag=' - 'To: <sip:[% scenarios.0.username %]@reminder.scenarios.test>;tag='
- 'CSeq: \d+ BYE' - 'CSeq: \d+ BYE'
- 'Content-Length:\s+0' - 'Content-Length:\s+0'
- 'P-NGCP-Src-Ip: 127.126.0.1' - 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: \d+' - 'P-NGCP-Src-Port: [% scenarios.0.port %]'
- 'P-NGCP-Src-Proto: udp' - 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4' - 'P-NGCP-Src-Af: 4'
sip_out: sip_out:

@ -1,7 +1,7 @@
cdr: cdr:
- source_user: 'testuser1001' - source_user: '[% scenarios.0.username %]'
source_domain: 'spce.test' source_domain: 'reminder.scenarios.test'
source_cli: '4311001' source_cli: '[% reminder_scenarios_test.testuser1001.phone_number %]'
destination_user: '\*55\*1420' destination_user: '\*55\*1420'
destination_domain: 'vsc.local' destination_domain: 'vsc.local'
destination_user_dialed: '\*55\*1420' destination_user_dialed: '\*55\*1420'

@ -1,6 +1,7 @@
---
test_uuid: reminder test_uuid: reminder
domains: domains:
'spce.test': reminder.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: reminder.scenarios.test:
testuser1003: testuser1003:
customer: 'customer.test' customer: 'customer.test'
password: testuser password: testuser
@ -28,11 +29,11 @@ subscribers:
sn: 1001 sn: 1001
scenarios: scenarios:
- ip: 127.126.0.1 - ip: 127.126.0.1
domain: spce.test domain: reminder.scenarios.test
username: testuser1001 username: testuser1001
responders: responders:
- ip: 127.1.0.1 - ip: 127.1.0.1
domain: spce.test domain: reminder.scenarios.test
register: no register: 'no'
username: testuser1003 username: testuser1003
active: no active: 'no'

Loading…
Cancel
Save