TT#116100 scenarios/invite_trusted_anonymous

* domain per scenario
* dynamic IP/port and numbers

Change-Id: I5fe4622793e7e47c81e008a8f127d690e38a8dbe
mr9.5.1
Victor Seva 5 years ago committed by Víctor Seva
parent 41147af724
commit 67443a3112

@ -52,10 +52,10 @@ flow:
- return|ROUTE_SET_CALLEE_DIALOG:
$avp(lua_dlg_profile): [
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
@ -89,29 +89,29 @@ flow:
$avp(lua_dlg_profile): [
"local",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_SET_CALLER_DIALOG:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"local",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_ACC_CALLER:
- start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
@ -172,26 +172,26 @@ flow:
- exit|ROUTE_EXIT:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"local",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]"
]
sip_in:
- '^INVITE'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag='
- 'Contact: sip:testuser1002@'
- 'Contact: sip:[% scenarios.0.username %]@'
- 'CSeq: 1 INVITE'
- 'P-Asserted-Identity: "long name here" <sip:testuser1002@spce.test>'
- 'P-Asserted-Identity: "long name here" <sip:[% scenarios.0.username %]@invite-trusted-anonymous.scenarios.test>'
- 'Max-Forwards: 69'
- 'Content-Type: application/sdp'
sip_out:
@ -199,19 +199,19 @@ sip_out:
'^SIP/2.0 100 Trying',
'CSeq: 1 INVITE',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]
- [
'^INVITE sip:testuser1003@',
'^INVITE sip:[% scenarios.0.responders.0.username %]@',
'CSeq: 1 INVITE',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'Content-Type: application/sdp',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
'P-Caller-UUID: [% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]',
'P-Callee-UUID: [% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]',
'_:NOT:_P-Asserted-Identity: \w+',
'P-Called-Party-ID: <sip:testuser1003@',
'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,15 +13,15 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0'
- 'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+'
- 'To: <sip:testuser1003@spce.test>'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>'
- 'CSeq: \d+ INVITE'
- 'P-LB-Uptime: \d+'
- 'Privacy: id'
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:anonymous@anonymous.invalid>;ip=127.126.0.1;port=\d+;primary=4311002'
- 'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.0.1;port=5060;primary=4311003'
- 'P-Caller-UUID: [% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]'
- 'P-NGCP-Caller-Info: <sip:anonymous@anonymous.invalid>;ip=127.126.0.1;port=\d+;primary=[% invite_trusted_anonymous_scenarios_test.testuser1002.phone_number %]'
- 'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_trusted_anonymous_scenarios_test.testuser1003.phone_number %]'
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
- 'Content-Type: application/sdp'
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
@ -30,21 +30,21 @@ sip_out:
- [
'SIP/2.0 100 Trying',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+',
'To: <sip:testuser1003@spce.test>',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>',
'CSeq: \d+ INVITE',
'Server: Sipwise NGCP Proxy',
'Content-Length: 0',
]
- [
'INVITE sip:testuser1003@127.1.0.1:\d+ SIP/2.0',
'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+',
'To: <sip:testuser1003@spce.test>',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>',
'CSeq: \d+ INVITE',
'P-LB-Uptime: \d+',
'Privacy: id',
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:anonymous@anonymous.invalid>;ip=127.126.0.1;port=\d+;primary=4311002',
'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.0.1;port=5060;primary=4311003',
'P-Caller-UUID: [% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]',
'P-NGCP-Caller-Info: <sip:anonymous@anonymous.invalid>;ip=127.126.0.1;port=\d+;primary=[% invite_trusted_anonymous_scenarios_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_trusted_anonymous_scenarios_test.testuser1003.phone_number %]',
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
'Content-Type: application/sdp',
'Contact: <sip:127.0.0.1:508[08];transport=udp>',

@ -10,7 +10,7 @@ flow:
sip_in:
- 'SIP/2.0 100 Trying'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+'
- 'To: <sip:testuser1003@spce.test>'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-trusted-anonymous.scenarios.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length: 0'

@ -17,19 +17,19 @@ flow:
- return|dialog:start:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1002.uuid %]",
"local",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_trusted_anonymous_scenarios_test.testuser1003.uuid %]"
]
- return|dialog:start:
sip_in:
@ -40,6 +40,6 @@ sip_out:
'^SIP/2.0 200 OK',
'CSeq: 1 INVITE',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]

@ -27,13 +27,13 @@ sip_in:
- '^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0'
- 'CSeq: 1 ACK'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>'
- 'To: <sip:testuser1003@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
- '_:NOT:_P-Asserted-Identity: \w+'
sip_out:
- [
'^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0',
'CSeq: 1 ACK',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]

@ -34,7 +34,7 @@ sip_in:
- 'Max-Forwards: 69'
- 'Content-Length: 0'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>'
- 'To: <sip:testuser1003@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
sip_out:
- [
@ -42,7 +42,7 @@ sip_out:
'CSeq: 2 BYE',
'Content-Length: 0',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]
- [
@ -52,6 +52,6 @@ sip_out:
'Max-Forwards: 68',
'Content-Length: 0',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]

@ -17,13 +17,13 @@ sip_in:
- 'CSeq: 2 BYE'
- 'Content-Length: 0'
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>'
- 'To: <sip:testuser1003@'
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
sip_out:
- [
'^SIP/2.0 200 OK',
'CSeq: 2 BYE',
'Content-Length: 0',
'From: "Anonymous" <sip:anonymous@anonymous.invalid>',
'To: <sip:testuser1003@',
'To: <sip:[% scenarios.0.responders.0.username %]@',
'_:NOT:_P-Asserted-Identity: \w+'
]

@ -1,11 +1,11 @@
cdr:
- source_user: 'anonymous'
source_domain: 'spce.test'
source_cli: '4311002'
source_domain: 'invite-trusted-anonymous.scenarios.test'
source_cli: '[% invite_trusted_anonymous_scenarios_test.testuser1002.phone_number %]'
source_clir: '1'
destination_user: 'testuser1003'
destination_domain: 'spce.test'
destination_user_dialed: 'testuser1003'
destination_user: '[% scenarios.0.responders.0.username %]'
destination_domain: 'invite-trusted-anonymous.scenarios.test'
destination_user_dialed: '[% scenarios.0.responders.0.username %]'
call_type: 'call'
call_status: 'ok'
call_code: '200'

@ -1,6 +1,7 @@
---
test_uuid: invite_trusted_anonymous
domains:
'spce.test':
invite-trusted-anonymous.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
invite-trusted-anonymous.scenarios.test:
testuser1003:
customer: 'customer.test'
password: testuser
@ -33,9 +34,9 @@ subscribers:
scenarios:
- ip: 127.126.0.1
username: testuser1002
domain: spce.test
domain: invite-trusted-anonymous.scenarios.test
responders:
- ip: 127.1.0.1
username: testuser1003
domain: spce.test
register: yes
domain: invite-trusted-anonymous.scenarios.test
register: 'yes'

@ -1,6 +0,0 @@
---
testuser1002@spce.test:
from_pattern: 1002
protocol: UDP
src_ip: 127.126.0.1

@ -0,0 +1,5 @@
---
[% scenarios.0.username %]@invite-trusted-anonymous.scenarios.test:
from_pattern: 1002
protocol: UDP
src_ip: [% scenarios.0.ip %]
Loading…
Cancel
Save