TT#116100 scenarios/invite_wrong_reg

* domain per scenario
* dynamic IP/port and numbers

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

@ -14,29 +14,29 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^REGISTER sip:testuser1003@spce.test SIP/2.0'
- 'From: <sip:testuser1003@spce.test>;tag='
- 'To: <sip:testuser1003@spce.test>'
- '^REGISTER sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test SIP/2.0'
- 'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag='
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>'
- 'CSeq: 1 REGISTER'
- 'Contact: sip:testuser1003@@127.1.0.1:\d+'
- 'Contact: sip:[% scenarios.0.responders.0.username %]@@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %]'
- 'Expires: 600'
sip_out:
- [
'^SIP/2.0 100 Trying',
'From: <sip:testuser1003@spce.test>;tag=',
'To: <sip:testuser1003@spce.test>',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>',
'CSeq: 1 REGISTER',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.1.0.1',
'P-NGCP-Auth-IP: [% scenarios.0.responders.0.ip %]',
'Content-Length: 0'
]
- [
'^SIP/2.0 401 Unauthorized',
'From: <sip:testuser1003@spce.test>;tag=',
'To: <sip:testuser1003@spce.test>;tag=',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'CSeq: 1 REGISTER',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.1.0.1',
'P-NGCP-Auth-IP: [% scenarios.0.responders.0.ip %]',
'WWW-Authenticate: Digest',
'Content-Length: 0'
]

@ -23,17 +23,17 @@ flow:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- '^REGISTER sip:testuser1003@spce.test SIP/2.0'
- 'From: <sip:testuser1003@spce.test>;tag='
- 'To: <sip:testuser1003@spce.test>'
- '^REGISTER sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test SIP/2.0'
- 'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag='
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>'
- 'CSeq: 2 REGISTER'
- 'Authorization: Digest'
- 'Contact: sip:testuser1003@@127.1.0.1:\d+'
- 'Contact: sip:[% scenarios.0.responders.0.username %]@@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %]'
- 'Expires: 600'
- 'Max-Forwards: 69'
- 'Content-Length: 0'
- 'P-NGCP-Src-Ip: 127.1.0.1'
- 'P-NGCP-Src-Port: \d+'
- 'P-NGCP-Src-Ip: [% scenarios.0.responders.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:127.0.0.1:5060'
@ -41,21 +41,21 @@ sip_in:
sip_out:
- [
'^SIP/2.0 100 Trying',
'From: <sip:testuser1003@spce.test>;tag=',
'To: <sip:testuser1003@spce.test>',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>',
'CSeq: 2 REGISTER',
'Content-Length: 0'
]
- [
'^SIP/2.0 200 OK',
'From: <sip:testuser1003@spce.test>;tag=',
'To: <sip:testuser1003@spce.test>;tag=',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test>;tag=',
'CSeq: 2 REGISTER',
'P-Out-Socket: udp:127.0.0.1:5060',
'P-NGCP-Auth-IP: 127.1.0.1',
'P-NGCP-Authorization: testuser1003@spce.test',
'P-NGCP-Auth-IP: [% scenarios.0.responders.0.ip %]',
'P-NGCP-Authorization: [% scenarios.0.responders.0.username %]@invite-wrong-reg.scenarios.test',
'P-NGCP-Authorized: 1',
'P-Caller-UUID: [% spce_test.testuser1003.uuid %]',
'Contact: <sip:testuser1003@@127.1.0.1:\d+>;expires=\d+',
'P-Caller-UUID: [% invite_wrong_reg_scenarios_test.testuser1003.uuid %]',
'Contact: <sip:[% scenarios.0.responders.0.username %]@@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %]>;expires=\d+',
'Content-Length: 0'
]

@ -22,7 +22,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-wrong-reg.scenarios.test
$var(realm_user): [% scenarios.0.username %]
$var(realm_domain): invite-wrong-reg.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-wrong-reg.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_wrong_reg_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_wrong_reg_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_BLOCK_IN:
- return|ROUTE_BLOCK_IN:
@ -104,19 +104,19 @@ flow:
- return|ROUTE_SET_CALLER_DIALOG:
$avp(lua_dlg_profile): [
"accountout:[% customer_test.id %]",
"userout:[% spce_test.testuser1002.uuid %]",
"userout:[% invite_wrong_reg_scenarios_test.testuser1002.uuid %]",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1002.uuid %]",
"user:[% invite_wrong_reg_scenarios_test.testuser1002.uuid %]",
"totalaccountout:[% customer_test.id %]",
"totaluserout:[% spce_test.testuser1002.uuid %]",
"totaluserout:[% invite_wrong_reg_scenarios_test.testuser1002.uuid %]",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1002.uuid %]",
"totaluser:[% invite_wrong_reg_scenarios_test.testuser1002.uuid %]",
"local",
"totalaccount:[% customer_test.id %]",
"totaluser:[% spce_test.testuser1003.uuid %]",
"totaluser:[% invite_wrong_reg_scenarios_test.testuser1003.uuid %]",
"total",
"account:[% customer_test.id %]",
"user:[% spce_test.testuser1003.uuid %]"
"user:[% invite_wrong_reg_scenarios_test.testuser1003.uuid %]"
]
- start|ROUTE_ACC_CALLER:
- start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
@ -136,29 +136,29 @@ flow:
- exit|ROUTE_EXIT:
$avp(lua_dlg_profile): None
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 479',
'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'
]

@ -1,6 +1,7 @@
---
test_uuid: invite_wrong_reg
domains:
'spce.test':
invite-wrong-reg.scenarios.test:
reseller_id: 1
customers:
'customer.test':
@ -13,7 +14,7 @@ customers:
billing_profile_id: 1
reseller_id: 1
subscribers:
spce.test:
invite-wrong-reg.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-wrong-reg.scenarios.test
username: testuser1002
responders:
- ip: 127.1.0.1
domain: spce.test
register: no
domain: invite-wrong-reg.scenarios.test
register: 'no'
username: testuser1003
active: yes
active: 'yes'

Loading…
Cancel
Save