MT#56358 Test new HM reject possibility

Scenario invite_hm extended, it now dials a second call with
P-Asserted-Identity header so that the corresponding HM will reject the call
with a 456 error message.

Change-Id: Ie71666ad4478b47aebc3ceac851aff439ef4ac84
mr13.0
Alessio Garzi 2 years ago
parent e2484798b4
commit 8be7577812

@ -7,4 +7,12 @@ cdr:
destination_user_dialed: '[% scenarios.0.responders.0.username %]'
call_type: 'call'
call_status: 'ok'
call_code: '200'
call_code: '200'
- source_user: '[% scenarios.1.username %]'
source_domain: 'invite-hm.scenarios.test'
destination_user: '[% scenarios.1.responders.0.username %]'
destination_domain: 'invite-hm.scenarios.test'
destination_user_dialed: '[% scenarios.1.responders.0.username %]'
call_type: 'call'
call_status: 'other'
call_code: '456'

@ -215,3 +215,31 @@ hm_invite_hm_01:
value: no this_is_second_reply
value_part: full
rwr_set_id:
hm_invite_hm_02:
header_rules:
- data:
direction: a_inbound
description: Reject if PAI equals to 112
name: hm_invite_hm_02_00
stopper: 1
enabled: 1
priority: 1
conditions:
- enabled: 1
match_name: P-Asserted-Identity
match_part: username
match_type: header
expression: is
expression_negation: 0
value_type: input
values:
- value: '112'
rwr_set_id:
actions:
- enabled: 1
action_type: set
header: $avp(s:hm_reject)
header_part: full
value: 456
value_part: full
rwr_set_id:

@ -5,7 +5,7 @@
"testuser1002@invite-hm.scenarios.test": {
"header_rule_set": "hm_invite_hm_00"
},
"testuser1003@invite-hm.scenarios.test": {
"header_rule_set": "hm_invite_hm_01"
"testuser1004@invite-hm.scenarios.test": {
"header_rule_set": "hm_invite_hm_02"
}
}

@ -21,6 +21,18 @@ subscribers:
cc: 43
ac: 1
sn: 1003
testuser1004:
customer: 'customer.test'
password: testuser
cc: 43
ac: 1
sn: 1003
testuser1005:
customer: 'customer.test'
password: testuser
cc: 43
ac: 1
sn: 1003
testuser1002:
customer: 'customer.test'
password: testuser
@ -40,3 +52,11 @@ scenarios:
username: testuser1003
domain: invite-hm.scenarios.test
register: 'yes'
- ip: 127.126.0.2
username: testuser1004
domain: invite-hm.scenarios.test
responders:
- ip: 127.1.0.1
username: testuser1005
domain: invite-hm.scenarios.test
register: 'no'

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<scenario name="Sipwise NGCP Benchmark UAC Caller">
<send start_rtd="1" start_rtd="2">
<![CDATA[
INVITE sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
CSeq: 1 INVITE
Contact: <sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]>
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: [len]
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[media_ip_type] [media_ip]
t=0 0
m=audio [media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:50
]]>
</send>
<recv response="100" rtd="1" optional="true">
</recv>
<recv response="407" rtd="2" auth="true"/>
<send>
<![CDATA[
ACK sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]:[remote_port] SIP/2.0
[last_Via:]
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
CSeq: 1 ACK
Contact: <sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]>
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<pause milliseconds="500"/>
<send start_rtd="3">
<![CDATA[
INVITE sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
CSeq: 2 INVITE
Contact: <sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]>
P-Asserted-Identity: <sip:112@[field2 file="caller.csv"]>
Max-Forwards: 70
[field1 file="caller.csv" line=1]
Content-Type: application/sdp
Content-Length: [len]
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[media_ip_type] [media_ip]
t=0 0
m=audio [media_port] RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:50
]]>
</send>
<recv response="100" rtd="1" optional="true">
</recv>
<recv response="456" rtd="3">
</recv>
<send>
<![CDATA[
ACK sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]:[remote_port] SIP/2.0
[last_Via:]
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
CSeq: 2 ACK
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
<!-- <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> -->
</scenario>
Loading…
Cancel
Save