force_inbound_calls_to_peer * Test 1 : scenario for force_outbound_calls_to_peer * Test 2 : scenario for force_inbound_calls_to_peer Change-Id: Ic45f9edc66193aa5850d32ccc94659a95d4d4186mr9.4
parent
1ca6bf1c74
commit
c347842b8d
@ -0,0 +1,233 @@
|
||||
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_AUTH:
|
||||
- start|ROUTE_AUTH_HELPER:
|
||||
- return|ROUTE_AUTH_HELPER:
|
||||
- start|ROUTE_ADD_CALLINFO_REPLY:
|
||||
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_REPLY:
|
||||
- return|ROUTE_AUTH:
|
||||
- return|ROUTE_FIND_CALLER:
|
||||
- start|ROUTE_LOAD_CALLER_PREF:
|
||||
- start|ROUTE_CLEAR_CALLER_PREF:
|
||||
- return|ROUTE_CLEAR_CALLER_PREF:
|
||||
- start|ROUTE_CHECK_UA:
|
||||
- return|ROUTE_CHECK_UA:
|
||||
- start|ROUTE_LOAD_CALLER_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLER_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLER_PREF:
|
||||
- start|ROUTE_DLG_MANAGE:
|
||||
- return|ROUTE_DLG_MANAGE:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- 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:
|
||||
- start|ROUTE_CALLER_BLOCK_CLI:
|
||||
- return|ROUTE_CALLER_BLOCK_CLI:
|
||||
- start|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_FIND_CALLEE:
|
||||
- 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_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_BLOCK_IN:
|
||||
- start|ROUTE_ORDER_CF_MAP_ID:
|
||||
- return|ROUTE_ORDER_CF_MAP_ID:
|
||||
- return|ROUTE_LOAD_CALLEE_PREF:
|
||||
- start|ROUTE_NCOS_CHECK:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- 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_LOOKUP_SUBSCRIBER_LOCATIONS:
|
||||
- return|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
|
||||
- start|ROUTE_CF_CFNA:
|
||||
- return|ROUTE_CF_CFNA:
|
||||
- start|ROUTE_CHECK_PBX:
|
||||
- return|ROUTE_CHECK_PBX:
|
||||
- start|ROUTE_INVITE_TO_EXT:
|
||||
$var(forced_inbound_call_to_peer): 1
|
||||
- start|ROUTE_PSTN:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
$var(forced_inbound_call_to_peer): 1
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_PSTN_SELECT_PEER:
|
||||
- start|ROUTE_CHECK_PEER_PROBE:
|
||||
- return|ROUTE_CHECK_PEER_PROBE:
|
||||
- start|ROUTE_CLEAR_PEER_OUT_PREF:
|
||||
- return|ROUTE_CLEAR_PEER_OUT_PREF:
|
||||
- start|ROUTE_LOAD_PEER_OUT_PREF:
|
||||
- return|ROUTE_LOAD_PEER_OUT_PREF:
|
||||
- return|ROUTE_PSTN_SELECT_PEER:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
- 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_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:
|
||||
- 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:
|
||||
- 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:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- 'INVITE sip:4311003@spce.test SIP/2.0'
|
||||
- 'From: <sip:testuser1002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:4311003@spce.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: sip:testuser1002@127.126.0.1:\d+'
|
||||
- 'Proxy-Authorization: Digest username="testuser1002",realm="spce.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
- 'P-NGCP-Src-Ip: 127.126.0.1'
|
||||
- 'P-NGCP-Src-Port: \d+'
|
||||
- 'P-NGCP-Src-Proto: udp'
|
||||
- 'P-NGCP-Src-Af: 4'
|
||||
- 'P-Sock-Info: udp:127.0.0.1:5060'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 100 Trying',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
'P-NGCP-Auth-IP: 127.126.0.1',
|
||||
'P-NGCP-Auth-UA: <null>',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'SIP/2.0 101 Connecting',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
'P-NGCP-Auth-IP: 127.126.0.1',
|
||||
'P-NGCP-Auth-UA: <null>',
|
||||
'P-NGCP-Authorization: testuser1002@spce.test',
|
||||
'P-NGCP-Authorized: 1',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:4311003@127.0.2.1:\d+;transport=udp SIP/2.0',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: sip:testuser1002@127.126.0.1:\d+',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:4311002@spce.test>',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
|
||||
'P-Called-Party-ID: <sip:4311003@127.0.2.1>',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;a_park_domain=[% customer_test.id %];b_park_domain=26',
|
||||
'P-App-Name: sbc',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-NGCP-Callee-Info: <sip:4311003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003',
|
||||
'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp',
|
||||
'P-Proxy-Uri: sip:127.0.0.1:5062',
|
||||
]
|
||||
@ -0,0 +1,52 @@
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_LEG_B:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- 'INVITE sip:4311003@127.0.2.1:\d+;transport=udp SIP/2.0'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:4311003@127.0.2.1>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
- 'P-Asserted-Identity: <sip:4311002@spce.test>'
|
||||
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]'
|
||||
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002'
|
||||
- 'P-NGCP-Callee-Info: <sip:4311003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003'
|
||||
- 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
- 'Content-Length:\s+\d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 100 Trying',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@127.0.2.1>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:4311003@127.0.2.1:\d+;transport=udp SIP/2.0',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@127.0.2.1>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:4311002@spce.test>',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-NGCP-Callee-Info: <sip:4311003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003',
|
||||
'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp',
|
||||
'Content-Type: application/sdp',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Length:\s+\d+',
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- start|REPLY_ROUTE_LEG_B:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- start|dialog:start:
|
||||
- return|dialog:start:
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:4311003@127.0.2.1>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: <sip:127.0.2.1:\d+;transport=UDP>'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
- 'P-NGCP-Src-Ip: 127.0.2.1'
|
||||
- 'P-NGCP-Src-Port: \d+'
|
||||
- 'P-NGCP-Src-Proto: udp'
|
||||
- 'P-NGCP-Src-Af: 4'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 200 OK',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@127.0.2.1>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: <sip:127.0.2.1:\d+;transport=UDP>',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-NGCP-Src-Ip: 127.0.2.1',
|
||||
'P-NGCP-Src-Port: \d+',
|
||||
'P-NGCP-Src-Proto: udp',
|
||||
'P-NGCP-Src-Af: 4',
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|REPLY_ROUTE_RTPENGINE:
|
||||
- return|REPLY_ROUTE_RTPENGINE:
|
||||
- start|REPLY_ROUTE_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- start|dialog:start:
|
||||
- return|dialog:start:
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:4311003@spce.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 200 OK',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:4311003@spce.test>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
]
|
||||
@ -0,0 +1,27 @@
|
||||
---
|
||||
peer_00:
|
||||
contact:
|
||||
company: peer_00
|
||||
email: peer_00@host0.not
|
||||
contract:
|
||||
billing_profile_id: 1
|
||||
status: active
|
||||
type: sippeering
|
||||
groups:
|
||||
- name: peer_00_group
|
||||
priority: 1
|
||||
description:
|
||||
rules:
|
||||
- group_id: peer_00_group
|
||||
callee_prefix: ""
|
||||
callee_pattern: ''
|
||||
caller_pattern: '^sip:.+@spce.test'
|
||||
description: ""
|
||||
hosts:
|
||||
- group_id: peer_00_group
|
||||
name: peer_00_host0
|
||||
ip: 127.0.2.1
|
||||
port: 51602
|
||||
host:
|
||||
transport: 1
|
||||
weight: 1
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"testuser1003@spce.test": {
|
||||
"force_inbound_calls_to_peer":"force_offline"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
---
|
||||
test_uuid: invite_force_inbound_calls_to_peer
|
||||
domains:
|
||||
'spce.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:
|
||||
spce.test:
|
||||
testuser1002:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1002
|
||||
testuser1003:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1003
|
||||
scenarios:
|
||||
- ip: 127.126.0.1
|
||||
username: testuser1002
|
||||
domain: spce.test
|
||||
responders:
|
||||
- ip: 127.1.0.1
|
||||
username: testuser1003
|
||||
domain: spce.test
|
||||
register: 'no'
|
||||
active: 'no'
|
||||
- ip: 127.0.2.1
|
||||
number: 004321001
|
||||
username: 004321001
|
||||
domain: spce.test
|
||||
peer_host: peer_00_host0
|
||||
register: 'no'
|
||||
@ -0,0 +1,139 @@
|
||||
<?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:[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
|
||||
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" rtd="1" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="407" rtd="2" auth="true"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
ACK sip:[field1 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]:[remote_port] SIP/2.0
|
||||
[last_Via:]
|
||||
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: 1 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
|
||||
<send start_rtd="3">
|
||||
<![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: 2 INVITE
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
[field1 file="caller.csv" line=0]
|
||||
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" rtd="3">
|
||||
</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: 2 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
|
||||
<send start_rtd="4">
|
||||
<![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: 3 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" crlf="true" rtd="4">
|
||||
</recv>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||
|
||||
<!-- <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> -->
|
||||
|
||||
</scenario>
|
||||
|
||||
@ -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,220 @@
|
||||
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_AUTH:
|
||||
- start|ROUTE_AUTH_HELPER:
|
||||
- return|ROUTE_AUTH_HELPER:
|
||||
- start|ROUTE_ADD_CALLINFO_REPLY:
|
||||
- start|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_CALLER_PRIMARY:
|
||||
- return|ROUTE_ADD_CALLINFO_REPLY:
|
||||
- return|ROUTE_AUTH:
|
||||
- return|ROUTE_FIND_CALLER:
|
||||
- start|ROUTE_LOAD_CALLER_PREF:
|
||||
- start|ROUTE_CLEAR_CALLER_PREF:
|
||||
- return|ROUTE_CLEAR_CALLER_PREF:
|
||||
- start|ROUTE_CHECK_UA:
|
||||
- return|ROUTE_CHECK_UA:
|
||||
- start|ROUTE_LOAD_CALLER_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLER_CONTRACT_PREF:
|
||||
- return|ROUTE_LOAD_CALLER_PREF:
|
||||
- start|ROUTE_DLG_MANAGE:
|
||||
- return|ROUTE_DLG_MANAGE:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- 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:
|
||||
- start|ROUTE_CALLER_BLOCK_CLI:
|
||||
- return|ROUTE_CALLER_BLOCK_CLI:
|
||||
- start|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_FIND_CALLEE:
|
||||
- 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_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_BLOCK_IN:
|
||||
- start|ROUTE_ORDER_CF_MAP_ID:
|
||||
- return|ROUTE_ORDER_CF_MAP_ID:
|
||||
- return|ROUTE_LOAD_CALLEE_PREF:
|
||||
- start|ROUTE_NCOS_CHECK:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- start|ROUTE_NCOS:
|
||||
- return|ROUTE_NCOS:
|
||||
- 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_EXT:
|
||||
- start|ROUTE_PSTN:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_PSTN_SELECT_PEER:
|
||||
- start|ROUTE_CHECK_PEER_PROBE:
|
||||
- return|ROUTE_CHECK_PEER_PROBE:
|
||||
- start|ROUTE_CLEAR_PEER_OUT_PREF:
|
||||
- return|ROUTE_CLEAR_PEER_OUT_PREF:
|
||||
- start|ROUTE_LOAD_PEER_OUT_PREF:
|
||||
- return|ROUTE_LOAD_PEER_OUT_PREF:
|
||||
- return|ROUTE_PSTN_SELECT_PEER:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
- 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:
|
||||
$var(forced_outbound_call_to_peer): 1
|
||||
- start|ROUTE_SET_BRANCH_HDRS:
|
||||
- start|ROUTE_PREPARE_UA:
|
||||
$var(forced_outbound_call_to_peer): 1
|
||||
- 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:
|
||||
- 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:
|
||||
- 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:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- 'INVITE sip:testuser1003@spce.test SIP/2.0'
|
||||
- 'From: <sip:testuser1002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1003@spce.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: sip:testuser1002@127.126.0.1:\d+'
|
||||
- 'Proxy-Authorization: Digest username="testuser1002",realm="spce.test",uri="sip:127.0.0.1:5060",nonce=".+",response=".+",algorithm=MD5'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
- 'P-NGCP-Src-Ip: 127.126.0.1'
|
||||
- 'P-NGCP-Src-Port: \d+'
|
||||
- 'P-NGCP-Src-Proto: udp'
|
||||
- 'P-NGCP-Src-Af: 4'
|
||||
- 'P-Sock-Info: udp:127.0.0.1:5060'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 100 Trying',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
'P-NGCP-Auth-IP: 127.126.0.1',
|
||||
'P-NGCP-Auth-UA: <null>',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'SIP/2.0 101 Connecting',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
'P-NGCP-Auth-IP: 127.126.0.1',
|
||||
'P-NGCP-Auth-UA: <null>',
|
||||
'P-NGCP-Authorization: testuser1002@spce.test',
|
||||
'P-NGCP-Authorized: 1',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:testuser1003@127.0.2.1:\d+;transport=udp SIP/2.0',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@spce.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: sip:testuser1002@127.126.0.1:\d+',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:4311002@spce.test>',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
|
||||
'P-Called-Party-ID: <sip:testuser1003@127.0.2.1>',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;a_park_domain=[% customer_test.id %];b_park_domain=26',
|
||||
'P-App-Name: sbc',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003',
|
||||
'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp',
|
||||
'P-Proxy-Uri: sip:127.0.0.1:5062',
|
||||
]
|
||||
@ -0,0 +1,52 @@
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_LEG_B:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- 'INVITE sip:testuser1003@127.0.2.1:\d+;transport=udp SIP/2.0'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1003@127.0.2.1>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
- 'P-Asserted-Identity: <sip:4311002@spce.test>'
|
||||
- 'P-Caller-UUID: [% spce_test.testuser1002.uuid %]'
|
||||
- 'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002'
|
||||
- 'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003'
|
||||
- 'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
- 'Content-Length:\s+\d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 100 Trying',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@127.0.2.1>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:testuser1003@127.0.2.1:\d+;transport=udp SIP/2.0',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@127.0.2.1>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:4311002@spce.test>',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
||||
'P-NGCP-Callee-Info: <sip:testuser1003@spce.test>;ip=127.0.2.1;port=\d+;primary=4311003',
|
||||
'P-D-Uri: sip:127.0.0.1:5060;received=sip:127.0.2.1:\d+%3blr%3btransport%3dudp',
|
||||
'Content-Type: application/sdp',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Length:\s+\d+',
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- start|REPLY_ROUTE_LEG_B:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- start|dialog:start:
|
||||
- return|dialog:start:
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1003@127.0.2.1>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: <sip:127.0.2.1:\d+;transport=UDP>'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
- 'P-NGCP-Src-Ip: 127.0.2.1'
|
||||
- 'P-NGCP-Src-Port: \d+'
|
||||
- 'P-NGCP-Src-Proto: udp'
|
||||
- 'P-NGCP-Src-Af: 4'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 200 OK',
|
||||
'From: <sip:4311002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@127.0.2.1>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: <sip:127.0.2.1:\d+;transport=UDP>',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-NGCP-Src-Ip: 127.0.2.1',
|
||||
'P-NGCP-Src-Port: \d+',
|
||||
'P-NGCP-Src-Proto: udp',
|
||||
'P-NGCP-Src-Af: 4',
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
flow:
|
||||
- start|DEFAULT_ONREPLY:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- start|ROUTE_ENTRY:
|
||||
- return|ROUTE_ENTRY:
|
||||
- start|ROUTE_APPLY_HEADER_RULES:
|
||||
- return|ROUTE_APPLY_HEADER_RULES:
|
||||
- start|ROUTE_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|REPLY_ROUTE_RTPENGINE:
|
||||
- return|REPLY_ROUTE_RTPENGINE:
|
||||
- start|REPLY_ROUTE_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- start|dialog:start:
|
||||
- return|dialog:start:
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- 'SIP/2.0 200 OK'
|
||||
- 'From: <sip:4311002@spce.test>;tag=[\w-]+'
|
||||
- 'To: <sip:testuser1003@spce.test>;tag=[\w-]+'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'Contact: <sip:127.0.0.1:508[08];transport=udp>'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Content-Length:\s+\d+'
|
||||
sip_out:
|
||||
- [
|
||||
'SIP/2.0 200 OK',
|
||||
'From: <sip:testuser1002@spce.test>;tag=[\w-]+',
|
||||
'To: <sip:testuser1003@spce.test>;tag=[\w-]+',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Type: application/sdp',
|
||||
'Content-Length:\s+\d+',
|
||||
'P-Out-Socket: udp:127.0.0.1:5060',
|
||||
]
|
||||
@ -0,0 +1,27 @@
|
||||
---
|
||||
peer_00:
|
||||
contact:
|
||||
company: peer_00
|
||||
email: peer_00@host0.not
|
||||
contract:
|
||||
billing_profile_id: 1
|
||||
status: active
|
||||
type: sippeering
|
||||
groups:
|
||||
- name: peer_00_group
|
||||
priority: 1
|
||||
description:
|
||||
rules:
|
||||
- group_id: peer_00_group
|
||||
callee_prefix: ""
|
||||
callee_pattern: ''
|
||||
caller_pattern: '^sip:.+@spce.test'
|
||||
description: ""
|
||||
hosts:
|
||||
- group_id: peer_00_group
|
||||
name: peer_00_host0
|
||||
ip: 127.0.2.1
|
||||
port: 51602
|
||||
host:
|
||||
transport: 1
|
||||
weight: 1
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"testuser1002@spce.test": {
|
||||
"force_outbound_calls_to_peer":"force"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
test_uuid: invite_force_outbound_calls_to_peer
|
||||
domains:
|
||||
'spce.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:
|
||||
spce.test:
|
||||
testuser1002:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1002
|
||||
testuser1003:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1003
|
||||
scenarios:
|
||||
- ip: 127.126.0.1
|
||||
username: testuser1002
|
||||
domain: spce.test
|
||||
responders:
|
||||
- ip: 127.1.0.1
|
||||
username: testuser1003
|
||||
domain: spce.test
|
||||
register: no
|
||||
- ip: 127.0.2.1
|
||||
number: 004321001
|
||||
username: 004321001
|
||||
domain: spce.test
|
||||
peer_host: peer_00_host0
|
||||
register: no
|
||||
@ -0,0 +1,139 @@
|
||||
<?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=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:[field0 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
|
||||
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" rtd="1" optional="true">
|
||||
</recv>
|
||||
|
||||
<recv response="407" rtd="2" auth="true"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
ACK sip:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]:[remote_port] SIP/2.0
|
||||
[last_Via:]
|
||||
From: <sip:[field0 file="caller.csv" line=0]@[field2 file="caller.csv" line=0]>;tag=[pid]SIPpTag00[call_number]
|
||||
To: <sip:[field0 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: 1 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[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=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:[field0 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=0]%///[call_id]
|
||||
CSeq: 2 INVITE
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
[field1 file="caller.csv" line=0]
|
||||
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" rtd="3">
|
||||
</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:[field0 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: 2 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=0]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
|
||||
<send start_rtd="4">
|
||||
<![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:[field0 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: 3 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" crlf="true" rtd="4">
|
||||
</recv>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||
|
||||
<!-- <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> -->
|
||||
|
||||
</scenario>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in new issue