New scenario to check FROM anonymization and PAI removal for calls from PSTN with Privacy: id header. Change-Id: If61ec9af775ecf10151ed458fd1ce5e0a5f7b775mr12.2.1
parent
94123dd39f
commit
d69d7e36ff
@ -0,0 +1,224 @@
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_NET_INFO:
|
||||
- return|ROUTE_NET_INFO:
|
||||
- start|ROUTE_CHECK_TEL_URI:
|
||||
- return|ROUTE_CHECK_TEL_URI:
|
||||
- start|ROUTE_PRX_REQUEST:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- start|ROUTE_INVITE:
|
||||
- start|ROUTE_LOAD_CALLEE_DOMAIN_PREF:
|
||||
- start|ROUTE_CLEAR_CALLEE_DOMAIN_PREF:
|
||||
- return|ROUTE_CLEAR_CALLEE_DOMAIN_PREF:
|
||||
- return|ROUTE_LOAD_CALLEE_DOMAIN_PREF:
|
||||
- start|ROUTE_FIND_CALLER:
|
||||
- start|ROUTE_PSTN_SELECT_INBOUND_PEER:
|
||||
- return|ROUTE_PSTN_SELECT_INBOUND_PEER:
|
||||
- start|ROUTE_CLEAR_PEER_IN_PREF:
|
||||
- return|ROUTE_CLEAR_PEER_IN_PREF:
|
||||
- start|ROUTE_LOAD_PEER_IN_PREF:
|
||||
- start|ROUTE_DLG_MANAGE:
|
||||
- return|ROUTE_DLG_MANAGE:
|
||||
- return|ROUTE_LOAD_PEER_IN_PREF:
|
||||
$avp(lua_dlg_profile): ["peer:[% peer_00_host0.id %]", "total"]
|
||||
- return|ROUTE_FIND_CALLER:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_GET_CALLER_CLI:
|
||||
- return|ROUTE_GET_CALLER_CLI:
|
||||
- start|ROUTE_GET_CALLER_CLI:
|
||||
- return|ROUTE_GET_CALLER_CLI:
|
||||
- start|ROUTE_GET_FORWARDER_CLI:
|
||||
- return|ROUTE_GET_FORWARDER_CLI:
|
||||
- start|ROUTE_CLIR:
|
||||
- return|ROUTE_CLIR:
|
||||
$avp(caller_clir): [1]
|
||||
- start|ROUTE_CALLER_BLOCK_CLI:
|
||||
- return|ROUTE_CALLER_BLOCK_CLI:
|
||||
- start|ROUTE_FIND_CALLEE:
|
||||
- start|ROUTE_DETECT_LOOP:
|
||||
- return|ROUTE_DETECT_LOOP:
|
||||
- start|ROUTE_CLEAR_CALLEE_PREF:
|
||||
- return|ROUTE_CLEAR_CALLEE_PREF:
|
||||
- start|ROUTE_LOAD_CALLEE_PREF:
|
||||
- start|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
|
||||
- start|ROUTE_LOAD_CALLEE_RESELLER_PREF:
|
||||
- return|ROUTE_LOAD_CALLEE_RESELLER_PREF:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG_BASE:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG_BASE:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"totalreseller:1",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"reseller:1",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"total"
|
||||
]
|
||||
- start|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_LOAD_CALLEE_PREF:
|
||||
$xavp(caller_peer_prefs[0]=>concurrent_max[*]): [1]
|
||||
- start|ROUTE_NCOS_CHECK:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS_SET:
|
||||
- return|ROUTE_NCOS_SET:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS_SET:
|
||||
- return|ROUTE_NCOS_SET:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS_SET:
|
||||
- return|ROUTE_NCOS_SET:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS_SET:
|
||||
- return|ROUTE_NCOS_SET:
|
||||
- return|ROUTE_NCOS_CHECK:
|
||||
- start|ROUTE_BLOCK_OUT:
|
||||
- return|ROUTE_BLOCK_OUT:
|
||||
- start|ROUTE_CHECK_PBX:
|
||||
- return|ROUTE_CHECK_PBX:
|
||||
- start|ROUTE_CALLEE_DISPATCH:
|
||||
- start|ROUTE_INVITE_TO_INT:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_CF_CFU:
|
||||
- return|ROUTE_CF_CFU:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_CHECK_LOCATIONS:
|
||||
- start|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
|
||||
- return|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"incoming",
|
||||
"totalreseller:1",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"reseller:1",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"total"
|
||||
]
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_SET_CALLER_DIALOG:
|
||||
- start|ROUTE_ACC_CALLER:
|
||||
- start|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
|
||||
- return|ROUTE_SET_ACC_CALLER_CALL_COUNTERS:
|
||||
- return|ROUTE_ACC_CALLER:
|
||||
- start|ROUTE_ACC_CALLEE:
|
||||
- start|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS:
|
||||
- return|ROUTE_SET_ACC_CALLEE_CALL_COUNTERS:
|
||||
- return|ROUTE_ACC_CALLEE:
|
||||
- start|ROUTE_ADD_AOC_HEADER:
|
||||
- return|ROUTE_ADD_AOC_HEADER:
|
||||
- start|BRANCH_ROUTE_SBC:
|
||||
- start|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
|
||||
- start|ROUTE_LOAD_CALLEE_RESELLER_PREF:
|
||||
- return|ROUTE_LOAD_CALLEE_RESELLER_PREF:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG_BASE:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG_BASE:
|
||||
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_SET_BRANCH_HDRS:
|
||||
- start|ROUTE_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- return|ROUTE_SET_BRANCH_HDRS:
|
||||
- start|ROUTE_SET_RUSER:
|
||||
- return|ROUTE_SET_RUSER:
|
||||
- start|ROUTE_BRANCH_ACC_RTP:
|
||||
- return|ROUTE_BRANCH_ACC_RTP:
|
||||
- start|ROUTE_FILTER_PRACK:
|
||||
- return|ROUTE_FILTER_PRACK:
|
||||
- start|ROUTE_PREPARE_SST:
|
||||
- start|ROUTE_REMOVE_TIMER_SUPP_REQ:
|
||||
- return|ROUTE_REMOVE_TIMER_SUPP_REQ:
|
||||
- return|ROUTE_PREPARE_SST:
|
||||
- start|ROUTE_PREPARE_MOH:
|
||||
- return|ROUTE_PREPARE_MOH:
|
||||
- start|ROUTE_SET_CALLER_CLI:
|
||||
- start|ROUTE_PREPARE_CALLER_CLI:
|
||||
- return|ROUTE_PREPARE_CALLER_CLI:
|
||||
- start|ROUTE_PREPARE_CALLER_CLI:
|
||||
- return|ROUTE_PREPARE_CALLER_CLI:
|
||||
- start|ROUTE_PREPARE_CALLER_CLI:
|
||||
- return|ROUTE_PREPARE_CALLER_CLI:
|
||||
- return|ROUTE_SET_CALLER_CLI:
|
||||
- start|ROUTE_SET_CALLEE:
|
||||
- return|ROUTE_SET_CALLEE:
|
||||
- start|ROUTE_ADD_CALLINFO:
|
||||
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- start|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_CALLEE_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|BRANCH_ROUTE_SBC:
|
||||
# branch ??
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
$avp(lua_dlg_profile): [
|
||||
"incoming",
|
||||
"totalreseller:1",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"reseller:1",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% incoming_peer_anonymous.scenarios.test.testuser1003.uuid %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"total"
|
||||
]
|
||||
sip_in:
|
||||
- '^INVITE sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@'
|
||||
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %](;[^>]+)?>'
|
||||
- 'CSeq: 1 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:[% scenarios.0.username %]@',
|
||||
'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@'
|
||||
]
|
||||
- [
|
||||
'^INVITE sip:testuser1003@',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: "Anonymous" <sip:anonymous@anonymous.invalid>;',
|
||||
'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@',
|
||||
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %](;[^>]+)?>',
|
||||
'Content-Type: application/sdp',
|
||||
'P-Caller-UUID: 0',
|
||||
'P-Callee-UUID: [% incoming_peer_anonymous_scenarios_test.testuser1003.uui %]',
|
||||
'_:NOT:_P-Asserted-Identity:',
|
||||
'P-Called-Party-ID: <sip:testuser1003@',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
|
||||
'P-App-Name: sbc'
|
||||
]
|
@ -0,0 +1,10 @@
|
||||
cdr:
|
||||
- source_user: '[% scenarios.0.username %]'
|
||||
source_domain: '[% scenarios.0.ip %]'
|
||||
source_cli: '[% scenarios.0.username %]'
|
||||
destination_user: 'testuser1003'
|
||||
destination_domain: 'incoming-peer-anonymous.scenarios.test'
|
||||
destination_user_dialed: '[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]'
|
||||
call_type: 'call'
|
||||
call_status: 'ok'
|
||||
call_code: '200'
|
@ -0,0 +1 @@
|
||||
../media181sec.pcap
|
@ -0,0 +1,33 @@
|
||||
---
|
||||
peer_incoming_peer_anonymous:
|
||||
contact:
|
||||
company: peer_incoming_peer_anonymous
|
||||
email: peer_incoming_peer_anonymous@host0.not
|
||||
contract:
|
||||
billing_profile_id: 1
|
||||
status: active
|
||||
type: sippeering
|
||||
groups:
|
||||
- name: peer_incoming_peer_anonymous_group
|
||||
priority: 1
|
||||
description:
|
||||
rules:
|
||||
- group_id: peer_incoming_peer_anonymous_group
|
||||
callee_prefix: ""
|
||||
callee_pattern: ''
|
||||
caller_pattern: '^sip:.+@incoming-peer-anonymous.scenarios.test'
|
||||
description: ""
|
||||
inboundrules:
|
||||
- group_id: peer_incoming_peer_anonymous_group
|
||||
field: "ruri_uri"
|
||||
pattern: '.*'
|
||||
priority: 50
|
||||
enabled: 1
|
||||
hosts:
|
||||
- group_id: peer_incoming_peer_anonymous_group
|
||||
name: peer_incoming_peer_anonymous_host0
|
||||
ip: 127.0.2.1
|
||||
port: 51602
|
||||
host:
|
||||
transport: 1
|
||||
weight: 1
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"@incoming-peer-anonymous.scenarios.test": {
|
||||
"nat_sipping": "no"
|
||||
},
|
||||
"peer_incoming_peer_anonymous_host0": {
|
||||
"concurrent_max": 1
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
---
|
||||
test_uuid: incoming_peer_anonymous
|
||||
domains:
|
||||
incoming-peer-anonymous.scenarios.test:
|
||||
reseller_id: 1
|
||||
customers:
|
||||
"customer.test":
|
||||
contacts:
|
||||
- email: "customer.test@spce.test"
|
||||
reseller_id: 1
|
||||
details:
|
||||
status: "active"
|
||||
type: "sipaccount"
|
||||
billing_profile_id: 1
|
||||
reseller_id: 1
|
||||
subscribers:
|
||||
incoming-peer-anonymous.scenarios.test:
|
||||
testuser1003:
|
||||
customer: "customer.test"
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1003
|
||||
scenarios:
|
||||
- ip: 127.0.2.1
|
||||
username: "004321001"
|
||||
domain: incoming-peer-anonymous.host0.peer.scenarios.test
|
||||
peer_host: peer_incoming_peer_anonymous_host0
|
||||
responders:
|
||||
- ip: 127.1.0.1
|
||||
username: testuser1003
|
||||
domain: incoming-peer-anonymous.scenarios.test
|
||||
register: "yes"
|
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAC Caller">
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
INVITE sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0] SIP/2.0
|
||||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||
From: <sip:[field0 file="caller.csv" line=0]@[field2 file="caller.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||
CSeq: 1 INVITE
|
||||
P-Asserted-Identity: <sip:[field0 file="caller.csv" line=0]@[field2 file="caller.csv" line=0]>
|
||||
Privacy: id
|
||||
Contact: <sip:[field0 file="caller.csv" line=0]@[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" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="180" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="183" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="200" rrs="true">
|
||||
</recv>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
ACK [next_url] SIP/2.0
|
||||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||
From: <sip:[field0 file="caller.csv" line=0]@[field2 file="caller.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||
[routes]
|
||||
CSeq: 1 ACK
|
||||
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
<nop>
|
||||
<action>
|
||||
<exec play_pcap_audio="media181sec.pcap"/>
|
||||
</action>
|
||||
</nop>
|
||||
|
||||
<pause milliseconds="1000"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
BYE [next_url] SIP/2.0
|
||||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||
From: <sip:[field0 file="caller.csv" line=0]@[field2 file="caller.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||
To: <sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||
CSeq: 2 BYE
|
||||
Contact: <sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]>
|
||||
[routes]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<recv response="100" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="200">
|
||||
</recv>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||
</scenario>
|
||||
|
@ -0,0 +1,33 @@
|
||||
messages:
|
||||
- - 'SIP/2.0 100 Trying'
|
||||
- 'From: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.host0.peer.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@incoming-peer-anonymous.scenarios.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Server: Sipwise NGCP LB'
|
||||
- 'Content-Length: 0'
|
||||
- - 'SIP/2.0 180 Ringing'
|
||||
- 'From: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.host0.peer.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@incoming-peer-anonymous.scenarios.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Content-Length: 0'
|
||||
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
|
||||
- - 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.host0.peer.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@incoming-peer-anonymous.scenarios.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length: \d+'
|
||||
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
|
||||
- 'v=0'
|
||||
- 's=-'
|
||||
- 't=0 0'
|
||||
- 'm=audio \d+ RTP/AVP 8'
|
||||
- 'a=rtpmap:8 PCMA/8000'
|
||||
- 'a=sendrecv'
|
||||
- 'a=rtcp:\d+'
|
||||
- 'a=ptime:50'
|
||||
- - 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.host0.peer.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% incoming_peer_anonymous_scenarios_test.testuser1003.phone_number %]@incoming-peer-anonymous.scenarios.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ BYE'
|
||||
- 'Content-Length: 0'
|
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAS Responder">
|
||||
|
||||
<recv request="INVITE" crlf="true" rtd="true">
|
||||
</recv>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
SIP/2.0 180 Ringing
|
||||
[last_Via:]
|
||||
[last_From:]
|
||||
[last_To:];tag=[pid]SIPpTag01[call_number]
|
||||
[last_Call-ID:]
|
||||
[last_CSeq:]
|
||||
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
SIP/2.0 200 OK
|
||||
[last_Via:]
|
||||
[last_From:]
|
||||
[last_To:];tag=[pid]SIPpTag01[call_number]
|
||||
[last_Call-ID:]
|
||||
[last_CSeq:]
|
||||
[last_Record-Route:]
|
||||
[last_Route:]
|
||||
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
||||
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 request="ACK"
|
||||
crlf="true">
|
||||
</recv>
|
||||
|
||||
<recv request="BYE">
|
||||
</recv>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
SIP/2.0 200 OK
|
||||
[last_Via:]
|
||||
[last_From:]
|
||||
[last_To:]
|
||||
[last_Call-ID:]
|
||||
[last_CSeq:]
|
||||
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
||||
Content-Length: [len]
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
|
||||
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
|
||||
|
||||
</scenario>
|
||||
|
@ -0,0 +1,29 @@
|
||||
messages:
|
||||
- - '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:[% scenarios.0.responders.0.username %]@incoming-peer-anonymous.scenarios.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- '_:NOT:_P-Asserted-Identity: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.scenarios.test>'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length: \d+'
|
||||
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
|
||||
- 'v=0'
|
||||
- 's=-'
|
||||
- 't=0 0'
|
||||
- 'm=audio \d+ RTP/AVP 8'
|
||||
- 'a=rtpmap:8 PCMA/8000'
|
||||
- 'a=sendrecv'
|
||||
- 'a=rtcp:\d+'
|
||||
- 'a=ptime:50'
|
||||
- - 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
|
||||
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@incoming-peer-anonymous.scenarios.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ ACK'
|
||||
- 'Content-Length: 0'
|
||||
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
|
||||
- - 'BYE sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
|
||||
- 'From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=[\w-]+'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@incoming-peer-anonymous.scenarios.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ BYE'
|
||||
- '_:NOT:_P-Asserted-Identity: <sip:[% scenarios.0.username %]@incoming-peer-anonymous.scenarios.test>'
|
||||
- 'Content-Length: 0'
|
Loading…
Reference in new issue