Change-Id: I1a666bac845b222adb2ca9ffef169ce7e770963fchanges/81/11181/1
parent
dc5cbba428
commit
805c28813d
@ -0,0 +1,35 @@
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_NET_INFO:
|
||||
- return|ROUTE_NET_INFO:
|
||||
- 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:
|
||||
- exit|ROUTE_AUTH:
|
||||
sip_in:
|
||||
- '^INVITE sip:004321001@'
|
||||
- 'Contact: sip:testuser1002@'
|
||||
- 'To: <sip:004321001@'
|
||||
- 'CSeq: 1 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 407 Proxy Authentication Required',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
@ -0,0 +1,183 @@
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_NET_INFO:
|
||||
- return|ROUTE_NET_INFO:
|
||||
- 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_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_GET_CALLER_CLI:
|
||||
- return|ROUTE_GET_CALLER_CLI:
|
||||
- start|ROUTE_GET_FORWARDER_CLI:
|
||||
- return|ROUTE_GET_FORWARDER_CLI:
|
||||
- start|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_CLI_ALLOWED:
|
||||
- return|ROUTE_CHECK_USERPROV_CLI:
|
||||
- start|ROUTE_CLIR:
|
||||
- return|ROUTE_CLIR:
|
||||
- start|ROUTE_FIND_CALLEE:
|
||||
- start|ROUTE_CLEAR_CALLEE_PREF:
|
||||
- return|ROUTE_CLEAR_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_INVITE_TO_EXT:
|
||||
- start|ROUTE_PSTN:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- start|ROUTE_PSTN_SELECT_PEER:
|
||||
$avp(lua_dlg_profile): ["outgoing"]
|
||||
- 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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"relay",
|
||||
"peerout:[% peer_02_host0.id %]",
|
||||
"peer:[% peer_02_host0.id %]",
|
||||
"outgoing"
|
||||
]
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
- 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 %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"relay",
|
||||
"peerout:[% peer_02_host0.id %]",
|
||||
"peer:[% peer_02_host0.id %]",
|
||||
"outgoing"
|
||||
]
|
||||
- start|ROUTE_ACC_CALLER:
|
||||
- return|ROUTE_ACC_CALLER:
|
||||
- start|ROUTE_ACC_CALLEE:
|
||||
- return|ROUTE_ACC_CALLEE:
|
||||
- start|BRANCH_ROUTE_SBC:
|
||||
- start|ROUTE_BRANCH_ACC_RTP:
|
||||
- return|ROUTE_BRANCH_ACC_RTP:
|
||||
- start|ROUTE_SET_BRANCH_HDRS:
|
||||
- return|ROUTE_SET_BRANCH_HDRS:
|
||||
- start|ROUTE_SET_RUSER:
|
||||
- return|ROUTE_SET_RUSER:
|
||||
- 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:
|
||||
- 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:
|
||||
- return|BRANCH_ROUTE_SBC:
|
||||
# branch ??
|
||||
- return|BRANCH_ROUTE_SBC:
|
||||
- exit|ROUTE_OUTBOUND:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"relay",
|
||||
"peerout:[% peer_02_host0.id %]",
|
||||
"peer:[% peer_02_host0.id %]",
|
||||
"outgoing"
|
||||
]
|
||||
sip_in:
|
||||
- '^INVITE sip:004321001@'
|
||||
- 'Contact: sip:testuser1002@'
|
||||
- 'CSeq: 2 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Proxy-Authorization: Digest username="testuser1002"'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 101 Connecting',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
- [
|
||||
'^INVITE sip:004321001@',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:4311002@',
|
||||
'To: <sip:004321001@',
|
||||
'Content-Type: application/sdp',
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% spce_test.testuser1001.uuid %]',
|
||||
'P-Asserted-Identity: <sip:4311002@',
|
||||
'P-Called-Party-ID: <sip:004321001@',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
|
||||
'P-App-Name: sbc'
|
||||
]
|
||||
@ -0,0 +1,155 @@
|
||||
flow:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"relay",
|
||||
"peerout:[% peer_02_host0.id %]",
|
||||
"peer:[% peer_02_host0.id %]",
|
||||
"outgoing"
|
||||
]
|
||||
- start|FAILURE_ROUTE_PSTN:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- start|ROUTE_FILTER_FAILOVER:
|
||||
- return|ROUTE_FILTER_FAILOVER:
|
||||
- start|ROUTE_PSTN_SELECT_PEER_FAILURE:
|
||||
- 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_FAILURE:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"outgoing"
|
||||
]
|
||||
- start|ROUTE_PSTN_SELECT_PEER_FAILURE:
|
||||
- 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_FAILURE:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"outgoing"
|
||||
]
|
||||
- start|ROUTE_OUTBOUND:
|
||||
$avp(lua_dlg_profile): [
|
||||
"relay",
|
||||
"peerout:[% peer_00_host0.id %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"outgoing"
|
||||
]
|
||||
- start|BRANCH_ROUTE_SBC:
|
||||
- start|ROUTE_BRANCH_ACC_RTP:
|
||||
- start|ROUTE_ACC_CALLEE:
|
||||
- return|ROUTE_ACC_CALLEE:
|
||||
- return|ROUTE_BRANCH_ACC_RTP:
|
||||
- start|ROUTE_SET_BRANCH_HDRS:
|
||||
- return|ROUTE_SET_BRANCH_HDRS:
|
||||
- start|ROUTE_SET_RUSER:
|
||||
- return|ROUTE_SET_RUSER:
|
||||
- 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:
|
||||
- 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:
|
||||
- return|BRANCH_ROUTE_SBC:
|
||||
- return|BRANCH_ROUTE_SBC:
|
||||
- exit|ROUTE_OUTBOUND:
|
||||
$avp(lua_dlg_profile): [
|
||||
"relay",
|
||||
"peerout:[% peer_00_host0.id %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"outgoing"
|
||||
]
|
||||
- exit|ROUTE_OUTBOUND:
|
||||
"sip_in":
|
||||
- "^SIP/2.0 408 Timeout"
|
||||
"sip_out":
|
||||
- [
|
||||
"^ACK sip:004321001@127.0.4.1:50603;transport=udp SIP/2.0",
|
||||
"From: <sip:4311002@spce.test>;tag=",
|
||||
"To: <sip:004321001@spce.test>;tag=",
|
||||
"CSeq: 2 ACK",
|
||||
"Content-Length: 0"
|
||||
]
|
||||
- [
|
||||
'^INVITE sip:004321001@127.0.2.1:\d+;transport=udp SIP/2.0',
|
||||
"From: <sip:4311002@spce.test>;tag=",
|
||||
"To: <sip:004321001@spce.test>",
|
||||
"CSeq: 2 INVITE",
|
||||
"Contact: sip:testuser1002@",
|
||||
"Content-Type: application/sdp",
|
||||
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% spce_test.testuser1001.uuid %]',
|
||||
"P-Asserted-Identity: <sip:4311002@spce.test>",
|
||||
"P-Called-Party-ID: <sip:004321001@127.0.4.1>",
|
||||
"P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no",
|
||||
"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:004321001@spce.test>;ip=127.0.2.1;port=\d+',
|
||||
'P-D-Uri: sip:127.0.0.1:5060;received=',
|
||||
]
|
||||
@ -0,0 +1,15 @@
|
||||
flow:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- exit|REPLY_ROUTE_NAT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 180 Ringing'
|
||||
- 'CSeq: 2 INVITE'
|
||||
- 'From: <sip:4311002@'
|
||||
- 'To: <sip:004321001@'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 180 Ringing',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@',
|
||||
]
|
||||
@ -0,0 +1,34 @@
|
||||
flow:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- start|REPLY_ROUTE_RTPENGINE:
|
||||
- return|REPLY_ROUTE_RTPENGINE:
|
||||
- 'start|dialog:start':
|
||||
- 'return|dialog:start':
|
||||
$avp(lua_dlg_profile): [
|
||||
"relay",
|
||||
"peerout:[% peer_00_host0.id %]",
|
||||
"peer:[% peer_00_host0.id %]",
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% spce_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% spce_test.testuser1002.uuid %]",
|
||||
"total",
|
||||
"outgoing"
|
||||
]
|
||||
- 'return|dialog:start':
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 2 INVITE'
|
||||
- 'From: <sip:4311002@'
|
||||
- 'To: <sip:004321001@'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@',
|
||||
]
|
||||
@ -0,0 +1,33 @@
|
||||
# INVITE_OFFLINE scenario
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_NET_INFO:
|
||||
- return|ROUTE_NET_INFO:
|
||||
- start|ROUTE_PRX_REQUEST:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- start|ROUTE_RESTORE_CLUSTERSET:
|
||||
- return|ROUTE_RESTORE_CLUSTERSET:
|
||||
- start|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- return|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- return|ROUTE_OUTBOUND:
|
||||
sip_in:
|
||||
- '^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
|
||||
- 'Contact: sip:testuser1002@'
|
||||
- 'CSeq: 2 ACK'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:testuser1002@'
|
||||
- 'To: <sip:004321001@'
|
||||
|
||||
sip_out:
|
||||
- [
|
||||
'^ACK sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
|
||||
'Contact: sip:testuser1002@',
|
||||
'CSeq: 2 ACK',
|
||||
'Max-Forwards: 68',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:4311002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
@ -0,0 +1,44 @@
|
||||
# INVITE_OFFLINE scenario
|
||||
flow:
|
||||
- start|DEFAULT_ROUTE:
|
||||
- start|ROUTE_NET_INFO:
|
||||
- return|ROUTE_NET_INFO:
|
||||
- start|ROUTE_PRX_REQUEST:
|
||||
- start|ROUTE_INITVARS:
|
||||
- return|ROUTE_INITVARS:
|
||||
- 'start|dialog:end':
|
||||
- 'return|dialog:end':
|
||||
$avp(lua_dlg_profile): None
|
||||
- 'return|dialog:end':
|
||||
- start|ROUTE_STOP_RTPPROXY:
|
||||
- start|ROUTE_RESTORE_CLUSTERSET:
|
||||
- return|ROUTE_RESTORE_CLUSTERSET:
|
||||
- return|ROUTE_STOP_RTPPROXY:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- exit|ROUTE_OUTBOUND:
|
||||
sip_in:
|
||||
- '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
|
||||
- 'Contact: sip:testuser1002@'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:testuser1002@'
|
||||
- 'To: <sip:004321001@'
|
||||
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
- [
|
||||
'^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
|
||||
'Contact: sip:testuser1002@',
|
||||
'CSeq: 3 BYE',
|
||||
'Max-Forwards: 68',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:4311002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
@ -0,0 +1,17 @@
|
||||
flow:
|
||||
- start|REPLY_ROUTE_NAT:
|
||||
- exit|REPLY_ROUTE_NAT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:4311002@'
|
||||
- 'To: <sip:004321001@'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:testuser1002@',
|
||||
'To: <sip:004321001@'
|
||||
]
|
||||
@ -0,0 +1,57 @@
|
||||
---
|
||||
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: 3
|
||||
description:
|
||||
- name: peer_01_group
|
||||
priority: 2
|
||||
description:
|
||||
- name: peer_02_group
|
||||
priority: 1
|
||||
description:
|
||||
rules:
|
||||
- group_id: peer_00_group
|
||||
callee_prefix: ""
|
||||
callee_pattern: ""
|
||||
caller_pattern: "^sip:.+@spce.test"
|
||||
description: ""
|
||||
- group_id: peer_01_group
|
||||
callee_prefix: ""
|
||||
callee_pattern: ""
|
||||
caller_pattern: "^sip:.+@spce.test"
|
||||
description: ""
|
||||
- group_id: peer_02_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
|
||||
- group_id: peer_01_group
|
||||
name: peer_01_host0
|
||||
ip: 127.0.3.1
|
||||
port: 51602
|
||||
host:
|
||||
transport: 1
|
||||
weight: 1
|
||||
- group_id: peer_02_group
|
||||
name: peer_02_host0
|
||||
ip: 127.0.4.1
|
||||
port: 51602
|
||||
host:
|
||||
transport: 1
|
||||
weight: 1
|
||||
@ -0,0 +1,8 @@
|
||||
{
|
||||
"peer_00_host0": {
|
||||
"concurrent_max": 1
|
||||
},
|
||||
"peer_01_host0": {
|
||||
"concurrent_max_out": -1
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
test_uuid: invite_peerout_failover
|
||||
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
|
||||
scenarios:
|
||||
- ip: 127.126.0.1
|
||||
username: testuser1002
|
||||
domain: spce.test
|
||||
responders:
|
||||
- ip: 127.0.4.1
|
||||
number: 004321001
|
||||
username: 004321001
|
||||
domain: spce.test
|
||||
peer_host: peer_02_host0
|
||||
register: no
|
||||
- ip: 127.0.3.1
|
||||
number: 004321001
|
||||
username: 004321001
|
||||
domain: spce.test
|
||||
peer_host: peer_01_host0
|
||||
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,146 @@
|
||||
<?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"/>
|
||||
<nop>
|
||||
<action>
|
||||
<exec play_pcap_audio="scenarios/media181sec.pcap"/>
|
||||
</action>
|
||||
</nop>
|
||||
|
||||
<pause milliseconds="1000"/>
|
||||
|
||||
<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,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAS Responder">
|
||||
|
||||
<recv request="INVITE" crlf="true" rtd="true">
|
||||
</recv>
|
||||
|
||||
<pause milliseconds="100"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
SIP/2.0 408 Timeout
|
||||
[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>
|
||||
|
||||
</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