* add new route to stir scenarios flow Change-Id: If2526652bfedfb5e9924b2182b751c854bd81ae2mr10.0
parent
6a8c295e5a
commit
21860b5c25
@ -0,0 +1,42 @@
|
||||
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_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^INVITE'
|
||||
- 'Contact: sip:[% scenarios.0.username %]@'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
- '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:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 407 Proxy Authentication Required',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:[% scenarios.0.username %]@',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,249 @@
|
||||
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:
|
||||
$x_hdr(From): invite-stir.scenarios.test
|
||||
$var(realm_user): [% scenarios.0.username %]
|
||||
$var(realm_domain): invite-stir.scenarios.test
|
||||
- return|ROUTE_AUTH_HELPER:
|
||||
$avp(orig_acc_caller_user): ['[% scenarios.0.username %]']
|
||||
$avp(orig_acc_caller_domain): ['invite-stir.scenarios.test']
|
||||
- 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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1003.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1003.uuid %]"
|
||||
]
|
||||
- start|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_LOAD_CALLEE_PREF:
|
||||
- start|ROUTE_STIR_PAI:
|
||||
$var(idtt_attest): 0
|
||||
- return|ROUTE_STIR_PAI:
|
||||
$avp(pai_params): [';verstat=TN-Validation-Passed-A']
|
||||
- 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_OUTBOUND:
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1003.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1003.uuid %]"
|
||||
]
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_SET_CALLER_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1003.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1003.uuid %]"
|
||||
]
|
||||
- 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_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- 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:
|
||||
- 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:
|
||||
- start|ROUTE_STIR:
|
||||
$var(idtt_attest): A
|
||||
- return|ROUTE_STIR:
|
||||
$avp(pai_params): None
|
||||
- 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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1003.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1003.uuid %]"
|
||||
]
|
||||
sip_in:
|
||||
- '^INVITE'
|
||||
- 'Contact: sip:[% scenarios.0.username %]@'
|
||||
- 'CSeq: 2 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]"'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.0.username %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 101 Connecting',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.0.username %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
]
|
||||
- [
|
||||
'^INVITE sip:[% scenarios.0.responders.0.username %]@',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'Content-Type: application/sdp',
|
||||
'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% invite_stir_scenarios_test.testuser1003.uuid %]',
|
||||
'_:NOT:_\r\nIdentity: ',
|
||||
'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;verstat=TN-Validation-Passed-A',
|
||||
'P-Called-Party-ID: <sip:[% scenarios.0.responders.0.username %]@',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
|
||||
'P-App-Name: sbc'
|
||||
]
|
||||
@ -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:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0'
|
||||
- 'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
- 'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;verstat=TN-Validation-Passed-A'
|
||||
- 'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]'
|
||||
- 'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-stir.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_stir_scenarios_test.testuser1002.phone_number %]'
|
||||
- 'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_stir_scenarios_test.testuser1003.phone_number %]'
|
||||
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
|
||||
- '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:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;verstat=TN-Validation-Passed-A',
|
||||
'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]',
|
||||
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-stir.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_stir_scenarios_test.testuser1002.phone_number %]',
|
||||
'P-NGCP-Callee-Info: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_stir_scenarios_test.testuser1003.phone_number %]',
|
||||
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
|
||||
'Content-Type: application/sdp',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Length:\s+\d+',
|
||||
]
|
||||
@ -0,0 +1,22 @@
|
||||
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_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 180 Ringing'
|
||||
- 'CSeq: 2 INVITE'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 180 Ringing',
|
||||
'CSeq: 2 INVITE',
|
||||
]
|
||||
@ -0,0 +1,44 @@
|
||||
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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1003.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1003.uuid %]"
|
||||
]
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 2 INVITE'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.0.username %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@invite-stir.scenarios.test>;tag=[\w-]+'
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
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_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|ROUTE_RESTORE_CLUSTERSET:
|
||||
- return|ROUTE_RESTORE_CLUSTERSET:
|
||||
- start|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- return|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0'
|
||||
- 'CSeq: 2 ACK'
|
||||
- 'From: <sip:[% scenarios.0.username %]@'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
sip_out:
|
||||
- [
|
||||
'^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0',
|
||||
'CSeq: 2 ACK',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,55 @@
|
||||
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|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_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
|
||||
- 'Contact: sip:[% scenarios.0.username %]@'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:[% scenarios.0.username %]@'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% scenarios.0.username %]@',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
- [
|
||||
'^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
|
||||
'Contact: sip:[% scenarios.0.username %]@',
|
||||
'CSeq: 3 BYE',
|
||||
'Max-Forwards: 68',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,28 @@
|
||||
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_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@'
|
||||
- 'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% scenarios.0.username %]@',
|
||||
'To: <sip:[% scenarios.0.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,42 @@
|
||||
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_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^INVITE'
|
||||
- 'Contact: sip:[% scenarios.1.username %]@'
|
||||
- 'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
- 'CSeq: 1 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:[% scenarios.1.username %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 407 Proxy Authentication Required',
|
||||
'CSeq: 1 INVITE',
|
||||
'From: <sip:[% scenarios.1.username %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,245 @@
|
||||
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:
|
||||
$x_hdr(From): invite-stir.scenarios.test
|
||||
$var(realm_user): [% scenarios.1.username %]
|
||||
$var(realm_domain): invite-stir.scenarios.test
|
||||
- return|ROUTE_AUTH_HELPER:
|
||||
$avp(orig_acc_caller_user): ['[% scenarios.1.username %]']
|
||||
$avp(orig_acc_caller_domain): ['invite-stir.scenarios.test']
|
||||
- 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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1004.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1004.uuid %]"
|
||||
]
|
||||
- start|ROUTE_BLOCK_IN:
|
||||
- return|ROUTE_BLOCK_IN:
|
||||
- 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_OUTBOUND:
|
||||
- start|ROUTE_SET_CALLER_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1004.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1004.uuid %]"
|
||||
]
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_SET_CALLER_DIALOG:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1004.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1004.uuid %]"
|
||||
]
|
||||
- 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_SET_CALLEE_DIALOG:
|
||||
- start|ROUTE_CNT_DLG_CHECK:
|
||||
- return|ROUTE_CNT_DLG_CHECK:
|
||||
- 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:
|
||||
- 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:
|
||||
- start|ROUTE_STIR:
|
||||
$var(idtt_attest): 0
|
||||
- return|ROUTE_STIR:
|
||||
$avp(pai_params): None
|
||||
- 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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1004.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1004.uuid %]"
|
||||
]
|
||||
sip_in:
|
||||
- '^INVITE'
|
||||
- 'Contact: sip:[% scenarios.1.username %]@'
|
||||
- 'CSeq: 2 INVITE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Type: application/sdp'
|
||||
- 'Proxy-Authorization: Digest username="[% scenarios.1.username %]"'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.1.username %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
]
|
||||
- [
|
||||
'^SIP/2.0 101 Connecting',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.1.username %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
]
|
||||
- [
|
||||
'^INVITE sip:[% scenarios.1.responders.0.username %]@',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'Content-Type: application/sdp',
|
||||
'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]',
|
||||
'P-Callee-UUID: [% invite_stir_scenarios_test.testuser1004.uuid %]',
|
||||
'_:NOT:_\r\nIdentity: ',
|
||||
'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>\r\n',
|
||||
'P-Called-Party-ID: <sip:[% scenarios.1.responders.0.username %]@',
|
||||
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no',
|
||||
'P-App-Name: sbc'
|
||||
]
|
||||
@ -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:[% scenarios.1.responders.0.username %]@[% scenarios.1.responders.0.ip %]:[% scenarios.1.responders.0.port %] SIP/2.0'
|
||||
- 'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+'
|
||||
- 'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>'
|
||||
- 'CSeq: \d+ INVITE'
|
||||
- 'P-LB-Uptime: \d+'
|
||||
- 'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>\r\n'
|
||||
- 'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]'
|
||||
- 'P-NGCP-Caller-Info: <sip:[% scenarios.1.username %]@invite-stir.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.1.port %];primary=[% invite_stir_scenarios_test.testuser1002.phone_number %]'
|
||||
- 'P-NGCP-Callee-Info: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_stir_scenarios_test.testuser1004.phone_number %]'
|
||||
- 'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060'
|
||||
- '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:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'Server: Sipwise NGCP Proxy',
|
||||
'Content-Length: 0',
|
||||
]
|
||||
- [
|
||||
'INVITE sip:[% scenarios.1.responders.0.username %]@[% scenarios.1.responders.0.ip %]:[% scenarios.1.responders.0.port %] SIP/2.0',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>',
|
||||
'CSeq: \d+ INVITE',
|
||||
'P-LB-Uptime: \d+',
|
||||
'P-Asserted-Identity: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@invite-stir.scenarios.test>\r\n',
|
||||
'P-Caller-UUID: [% invite_stir_scenarios_test.testuser1002.uuid %]',
|
||||
'P-NGCP-Caller-Info: <sip:[% scenarios.1.username %]@invite-stir.scenarios.test>;ip=[% scenarios.0.ip %];port=[% scenarios.1.port %];primary=[% invite_stir_scenarios_test.testuser1002.phone_number %]',
|
||||
'P-NGCP-Callee-Info: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>;ip=127.0.0.1;port=5060;primary=[% invite_stir_scenarios_test.testuser1004.phone_number %]',
|
||||
'P-D-Uri: sip:lb@127.0.0.1;lr;socket=sip:127.0.0.1:5060',
|
||||
'Content-Type: application/sdp',
|
||||
'Contact: <sip:127.0.0.1:508[08];transport=udp>',
|
||||
'Content-Length:\s+\d+',
|
||||
]
|
||||
@ -0,0 +1,22 @@
|
||||
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_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 180 Ringing'
|
||||
- 'CSeq: 2 INVITE'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 180 Ringing',
|
||||
'CSeq: 2 INVITE',
|
||||
]
|
||||
@ -0,0 +1,44 @@
|
||||
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:
|
||||
$avp(lua_dlg_profile): [
|
||||
"accountout:[% customer_test.id %]",
|
||||
"userout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccountout:[% customer_test.id %]",
|
||||
"totaluserout:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1002.uuid %]",
|
||||
"local",
|
||||
"totalaccount:[% customer_test.id %]",
|
||||
"totaluser:[% invite_stir_scenarios_test.testuser1004.uuid %]",
|
||||
"total",
|
||||
"account:[% customer_test.id %]",
|
||||
"user:[% invite_stir_scenarios_test.testuser1004.uuid %]"
|
||||
]
|
||||
- return|dialog:start:
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 2 INVITE'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 2 INVITE',
|
||||
'From: <sip:[% scenarios.1.username %]@invite-stir.scenarios.test>;tag=[\w-]+',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test>;tag=[\w-]+'
|
||||
]
|
||||
@ -0,0 +1,37 @@
|
||||
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_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|ROUTE_RESTORE_CLUSTERSET:
|
||||
- return|ROUTE_RESTORE_CLUSTERSET:
|
||||
- start|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- return|ROUTE_WITHINDLG_RTPENGINE:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0'
|
||||
- 'CSeq: 2 ACK'
|
||||
- 'From: <sip:[% scenarios.1.username %]@'
|
||||
- 'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
sip_out:
|
||||
- [
|
||||
'^ACK sip:127.0.0.1:5080;prxroute=1 SIP/2.0',
|
||||
'CSeq: 2 ACK',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,55 @@
|
||||
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|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_PREPARE_UA:
|
||||
- return|ROUTE_PREPARE_UA:
|
||||
- start|ROUTE_OUTBOUND:
|
||||
- start|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- exit|DEFAULT_SEND:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0'
|
||||
- 'Contact: sip:[% scenarios.1.username %]@'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Max-Forwards: 69'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:[% scenarios.1.username %]@'
|
||||
- 'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 100 Trying',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% scenarios.1.username %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
- [
|
||||
'^BYE sip:127.0.0.1:5080(;prxroute=1)? SIP/2.0',
|
||||
'Contact: sip:[% scenarios.1.username %]@',
|
||||
'CSeq: 3 BYE',
|
||||
'Max-Forwards: 68',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,28 @@
|
||||
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_NAT_CONTINUE:
|
||||
- start|ROUTE_EXIT:
|
||||
- start|ROUTE_RUNTIME:
|
||||
- return|ROUTE_RUNTIME:
|
||||
- exit|ROUTE_EXIT:
|
||||
sip_in:
|
||||
- '^SIP/2.0 200 OK'
|
||||
- 'CSeq: 3 BYE'
|
||||
- 'Content-Length: 0'
|
||||
- 'From: <sip:[% invite_stir_scenarios_test.testuser1002.phone_number %]@'
|
||||
- 'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
sip_out:
|
||||
- [
|
||||
'^SIP/2.0 200 OK',
|
||||
'CSeq: 3 BYE',
|
||||
'Content-Length: 0',
|
||||
'From: <sip:[% scenarios.1.username %]@',
|
||||
'To: <sip:[% scenarios.1.responders.0.username %]@'
|
||||
]
|
||||
@ -0,0 +1,20 @@
|
||||
---
|
||||
cdr:
|
||||
- source_user: '[% scenarios.0.username %]'
|
||||
source_domain: 'invite-stir.scenarios.test'
|
||||
source_cli: '[% invite_stir_scenarios_test.testuser1002.phone_number %]'
|
||||
destination_user: '[% scenarios.0.responders.0.username %]'
|
||||
destination_domain: 'invite-stir.scenarios.test'
|
||||
destination_user_dialed: '[% scenarios.0.responders.0.username %]'
|
||||
call_type: 'call'
|
||||
call_status: 'ok'
|
||||
call_code: '200'
|
||||
- source_user: '[% scenarios.1.username %]'
|
||||
source_domain: 'invite-stir.scenarios.test'
|
||||
source_cli: '[% invite_stir_scenarios_test.testuser1002.phone_number %]'
|
||||
destination_user: '[% scenarios.1.responders.0.username %]'
|
||||
destination_domain: 'invite-stir.scenarios.test'
|
||||
destination_user_dialed: '[% scenarios.1.responders.0.username %]'
|
||||
call_type: 'call'
|
||||
call_status: 'ok'
|
||||
call_code: '200'
|
||||
@ -0,0 +1 @@
|
||||
../media181sec.pcap
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"@invite-stir.scenarios.test": {
|
||||
"stir_pub_url": "http://fake.url/pub.key",
|
||||
"stir_check": true
|
||||
},
|
||||
"[% scenarios.1.responders.0.username %]@invite-stir.scenarios.test": {
|
||||
"stir_check": false
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
---
|
||||
test_uuid: invite_stir
|
||||
description: |
|
||||
check stir enabled domain between local subscribers.
|
||||
First scenario with stir_check enabled for callee,
|
||||
second one with stir_check disabled
|
||||
kamailio:
|
||||
proxy:
|
||||
debugger:
|
||||
- name: secsipid
|
||||
level: 3
|
||||
domains:
|
||||
invite-stir.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:
|
||||
invite-stir.scenarios.test:
|
||||
testuser1004:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1004
|
||||
testuser1003:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1003
|
||||
testuser1002:
|
||||
customer: 'customer.test'
|
||||
password: testuser
|
||||
cc: 43
|
||||
ac: 1
|
||||
sn: 1002
|
||||
scenarios:
|
||||
- ip: 127.126.0.1
|
||||
username: testuser1002
|
||||
domain: invite-stir.scenarios.test
|
||||
responders:
|
||||
- ip: 127.1.0.1
|
||||
username: testuser1003
|
||||
domain: invite-stir.scenarios.test
|
||||
register: 'yes'
|
||||
- ip: 127.126.0.1
|
||||
username: testuser1002
|
||||
domain: invite-stir.scenarios.test
|
||||
responders:
|
||||
- ip: 127.1.0.2
|
||||
username: testuser1004
|
||||
domain: invite-stir.scenarios.test
|
||||
register: 'yes'
|
||||
@ -0,0 +1,132 @@
|
||||
<?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"]@[field2 file="caller.csv"]>;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"]@[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 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"]@[field2 file="caller.csv"]>;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"]@[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"]@[field2 file="caller.csv"]>;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"]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
[field1 file="caller.csv"]
|
||||
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 response="180" optional="true"/>
|
||||
<recv response="183" optional="true"/>
|
||||
<recv response="200" rrs="true" rtd="3"/>
|
||||
|
||||
<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"]@[field2 file="caller.csv"]>;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"]@[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 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"]@[field2 file="caller.csv"]>;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"]@[local_ip]:[local_port]
|
||||
[routes]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<recv response="100" optional="true"/>
|
||||
<recv response="200" rtd="4"/>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||
|
||||
</scenario>
|
||||
|
||||
@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAC Caller">
|
||||
<send start_rtd="1" start_rtd="2">
|
||||
<![CDATA[
|
||||
|
||||
INVITE sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1] SIP/2.0
|
||||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv" line=1]>;tag=[pid]SIPpTag01[call_number]
|
||||
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
|
||||
CSeq: 1 INVITE
|
||||
Contact: sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
Content-Type: application/sdp
|
||||
Content-Length: [len]
|
||||
|
||||
v=0
|
||||
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
|
||||
s=-
|
||||
c=IN IP[media_ip_type] [media_ip]
|
||||
t=0 0
|
||||
m=audio [media_port] RTP/AVP 8
|
||||
a=rtpmap:8 PCMA/8000
|
||||
a=ptime:50
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<recv response="100" rtd="1" optional="true"/>
|
||||
<recv response="407" rtd="2" auth="true"/>
|
||||
|
||||
<send>
|
||||
<![CDATA[
|
||||
|
||||
ACK sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]:[remote_port] SIP/2.0
|
||||
[last_Via:]
|
||||
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv" line=1]>;tag=[pid]SIPpTag01[call_number]
|
||||
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
|
||||
CSeq: 1 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<pause milliseconds="500"/>
|
||||
|
||||
<send start_rtd="3">
|
||||
<![CDATA[
|
||||
|
||||
INVITE sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1] SIP/2.0
|
||||
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
||||
From: <sip:[field0 file="caller.csv" line=1]@[field2 file="caller.csv" line=1]>;tag=[pid]SIPpTag01[call_number]
|
||||
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
|
||||
CSeq: 2 INVITE
|
||||
Contact: sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]
|
||||
Max-Forwards: 70
|
||||
[field1 file="caller.csv" line=1]
|
||||
Content-Type: application/sdp
|
||||
Content-Length: [len]
|
||||
|
||||
v=0
|
||||
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
|
||||
s=-
|
||||
c=IN IP[media_ip_type] [media_ip]
|
||||
t=0 0
|
||||
m=audio [media_port] RTP/AVP 8
|
||||
a=rtpmap:8 PCMA/8000
|
||||
a=ptime:50
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<recv response="100" optional="true"/>
|
||||
<recv response="180" optional="true"/>
|
||||
<recv response="183" optional="true"/>
|
||||
<recv response="200" rrs="true" rtd="3"/>
|
||||
|
||||
<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=1]@[field2 file="caller.csv" line=1]>;tag=[pid]SIPpTag01[call_number]
|
||||
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
|
||||
[routes]
|
||||
CSeq: 2 ACK
|
||||
Contact: sip:[field0 file="caller.csv" line=1]@[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 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=1]@[field2 file="caller.csv" line=1]>;tag=[pid]SIPpTag01[call_number]
|
||||
To: <sip:[field0 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
|
||||
Call-ID: NGCP%[field4 file="callee.csv" line=1]%///[call_id]
|
||||
CSeq: 3 BYE
|
||||
Contact: sip:[field0 file="caller.csv" line=1]@[local_ip]:[local_port]
|
||||
[routes]
|
||||
Max-Forwards: 70
|
||||
Content-Length: 0
|
||||
|
||||
]]>
|
||||
</send>
|
||||
|
||||
<recv response="100" optional="true"/>
|
||||
<recv response="200" crlf="true" rtd="4"/>
|
||||
|
||||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200, 500, 1000"/>
|
||||
|
||||
</scenario>
|
||||
|
||||
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAS Responder">
|
||||
|
||||
<recv request="INVITE" rtd="true"/>
|
||||
|
||||
<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"/>
|
||||
<recv request="BYE"/>
|
||||
|
||||
<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,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<scenario name="Sipwise NGCP Benchmark UAS Responder">
|
||||
|
||||
<recv request="INVITE" rtd="true"/>
|
||||
|
||||
<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"/>
|
||||
<recv request="BYE"/>
|
||||
|
||||
<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