MT#56901 New scenario invite_xfer_attended_caller_immediat_rel

This scenario tests the following situation with call counters:
A calls B, B takes the call
A holds (B is held)
A calls C, C takes the call

A xfers -> B and C are in communication

Change-Id: I2d5401c0bf128d51d2ae656a3c0948a3e24a8beb
mr11.4.1
Alessio Garzi 2 years ago
parent 2efd0d5cdc
commit a54886bc61

@ -0,0 +1,284 @@
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:
- start|ROUTE_DLG_MANAGE:
- return|ROUTE_DLG_MANAGE:
- 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_DETECT_LOOP:
- return|ROUTE_DETECT_LOOP:
- start|ROUTE_CLEAR_CALLEE_PREF:
- return|ROUTE_CLEAR_CALLEE_PREF:
- start|ROUTE_LOAD_CALLEE_PREF:
- start|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- start|ROUTE_SET_CALLEE_DIALOG:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
$xavp(lua_dlgcnt_vals[0]=>total): 1
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 1
- start|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG:
- 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_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_CHECK:
- start|ROUTE_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_CHECK_APPSRV:
- return|ROUTE_CHECK_APPSRV:
- start|ROUTE_CF_CFU:
- return|ROUTE_CF_CFU:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_CHECK_LOCATIONS:
- start|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
- return|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
- start|ROUTE_OUTBOUND:
- start|ROUTE_SET_CALLER_DIALOG:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_SET_CALLER_DIALOG_TOTAL:
- return|ROUTE_SET_CALLER_DIALOG_TOTAL:
$xavp(lua_dlgcnt_vals[0]=>total): 1
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totaluserout:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 2
$xavp(lua_dlgcnt_vals[0]=>totalaccountout:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 1
- start|ROUTE_SET_CALLER_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLER_DIALOG_ACTIVE:
- 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_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- 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:
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- start|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG:
- start|ROUTE_SET_BRANCH_HDRS:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- return|ROUTE_SET_BRANCH_HDRS:
- start|ROUTE_SET_RUSER:
- return|ROUTE_SET_RUSER:
- start|ROUTE_BRANCH_ACC_RTP:
- return|ROUTE_BRANCH_ACC_RTP:
- start|ROUTE_FILTER_PRACK:
- return|ROUTE_FILTER_PRACK:
- start|ROUTE_PREPARE_SST:
- start|ROUTE_REMOVE_TIMER_SUPP_REQ:
- return|ROUTE_REMOVE_TIMER_SUPP_REQ:
- return|ROUTE_PREPARE_SST:
- start|ROUTE_PREPARE_MOH:
- return|ROUTE_PREPARE_MOH:
- start|ROUTE_SET_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- 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:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]",realm="invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test",uri="sip:[% server_ip %]:5060",nonce="[^"]+",response="[^"]+",algorithm=MD5'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:[% server_ip %]:5060'
- 'P-LB-Uptime:\s+\d+'
- 'P-NGCP-Src-Nat: 1'
- 'v=0'
- 'o=user1 \d+ \d+ IN IP4 [% scenarios.0.ip %]'
- 's=-'
- 'c=IN IP4 [% scenarios.0.ip %]'
- 't=0 0'
- 'm=audio [% scenarios.0.mport %] RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=ptime:50'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'SIP/2.0 101 Connecting',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'P-NGCP-Authorization: testuser1002@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'P-NGCP-Authorized: 1',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]',
'P-Caller-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'PUBLISH sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'Content-Type: application/dialog-info\+xml',
]
- [
'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'P-LB-Uptime:\s+\d+',
'P-Asserted-Identity: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'P-Caller-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]',
'P-Callee-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.uuid %]',
'P-NGCP-Rtpengine-Bleg: 1',
'P-Called-Party-ID: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'P-NGCP-Leg-A-Info: .*',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;fast_ack=no;a_park_domain=[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %];b_park_domain=[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]',
'P-App-Name: sbc',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.responders.0.ip %];port=[% scenarios.0.responders.0.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_phone_number %]',
'P-NGCP-Presence-Caller: sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'P-NGCP-Presence-Callee: sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'v=0',
's=-',
't=0 0',
'm=audio \d+ RTP/AVP 8',
'a=rtpmap:8 PCMA/8000',
'a=sendrecv',
'a=rtcp:\d+',
'a=rtcp-mux',
'a=ptime:50',
]

@ -0,0 +1,284 @@
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:
- start|ROUTE_DLG_MANAGE:
- return|ROUTE_DLG_MANAGE:
- 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_DETECT_LOOP:
- return|ROUTE_DETECT_LOOP:
- start|ROUTE_CLEAR_CALLEE_PREF:
- return|ROUTE_CLEAR_CALLEE_PREF:
- start|ROUTE_LOAD_CALLEE_PREF:
- start|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- return|ROUTE_LOAD_CALLEE_CONTRACT_PREF:
- start|ROUTE_SET_CALLEE_DIALOG:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
$xavp(lua_dlgcnt_vals[0]=>total): 2
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 3
- start|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG:
- 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_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- start|ROUTE_NCOS:
- return|ROUTE_NCOS:
- start|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_SET:
- return|ROUTE_NCOS_CHECK:
- start|ROUTE_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_CHECK_APPSRV:
- return|ROUTE_CHECK_APPSRV:
- start|ROUTE_CF_CFU:
- return|ROUTE_CF_CFU:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_CHECK_LOCATIONS:
- start|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
- return|ROUTE_LOOKUP_SUBSCRIBER_LOCATIONS:
- start|ROUTE_OUTBOUND:
- start|ROUTE_SET_CALLER_DIALOG:
- start|ROUTE_CNT_DLG_CHECK:
- return|ROUTE_CNT_DLG_CHECK:
- start|ROUTE_SET_CALLER_DIALOG_TOTAL:
- return|ROUTE_SET_CALLER_DIALOG_TOTAL:
$xavp(lua_dlgcnt_vals[0]=>total): 2
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 2
$xavp(lua_dlgcnt_vals[0]=>totaluserout:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 2
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 4
$xavp(lua_dlgcnt_vals[0]=>totalaccountout:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 2
- start|ROUTE_SET_CALLER_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLER_DIALOG_ACTIVE:
- 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_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- 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:
- start|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- return|ROUTE_SET_CALLEE_DIALOG_TOTAL:
- start|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG_ACTIVE:
- return|ROUTE_SET_CALLEE_DIALOG:
- start|ROUTE_SET_BRANCH_HDRS:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- return|ROUTE_SET_BRANCH_HDRS:
- start|ROUTE_SET_RUSER:
- return|ROUTE_SET_RUSER:
- start|ROUTE_BRANCH_ACC_RTP:
- return|ROUTE_BRANCH_ACC_RTP:
- start|ROUTE_FILTER_PRACK:
- return|ROUTE_FILTER_PRACK:
- start|ROUTE_PREPARE_SST:
- start|ROUTE_REMOVE_TIMER_SUPP_REQ:
- return|ROUTE_REMOVE_TIMER_SUPP_REQ:
- return|ROUTE_PREPARE_SST:
- start|ROUTE_PREPARE_MOH:
- return|ROUTE_PREPARE_MOH:
- start|ROUTE_SET_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- start|ROUTE_PREPARE_CALLER_CLI:
- return|ROUTE_PREPARE_CALLER_CLI:
- 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:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'INVITE sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>'
- 'Proxy-Authorization: Digest username="[% scenarios.0.username %]",realm="invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test",uri="sip:[% server_ip %]:5060",nonce="[^"]+",response="[^"]+",algorithm=MD5'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:[% server_ip %]:5060'
- 'P-LB-Uptime:\s+\d+'
- 'P-NGCP-Src-Nat: 1'
- 'v=0'
- 'o=user1 \d+ \d+ IN IP4 [% scenarios.0.ip %]'
- 's=-'
- 'c=IN IP4 [% scenarios.0.ip %]'
- 't=0 0'
- 'm=audio [% scenarios.0.mport %] RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=ptime:50'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'SIP/2.0 101 Connecting',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'P-NGCP-Authorization: testuser1002@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'P-NGCP-Authorized: 1',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]',
'P-Caller-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'PUBLISH sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'Content-Type: application/dialog-info\+xml',
]
- [
'INVITE sip:[% scenarios.0.responders.1.username %]@[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %] SIP/2.0',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'CSeq: \d+ INVITE',
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>',
'Content-Type: application/sdp',
'Content-Length:\s+\d+',
'P-LB-Uptime:\s+\d+',
'P-Asserted-Identity: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'P-Caller-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]',
'P-Callee-UUID: [% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.uuid %]',
'P-NGCP-Rtpengine-Bleg: 1',
'P-Called-Party-ID: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'P-NGCP-Leg-A-Info: .*',
'P-App-Param: ;calltimer=21600;aleg_sst_enable=no;sst_enable=no;hold_alter_b2b_bleg=no;hold_alter_b2b_aleg=no;fast_ack=no;a_park_domain=[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %];b_park_domain=[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]',
'P-App-Name: sbc',
'P-NGCP-Caller-Info: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.ip %];port=[% scenarios.0.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]',
'P-NGCP-Callee-Info: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;ip=[% scenarios.0.responders.1.ip %];port=[% scenarios.0.responders.1.port %];primary=[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_phone_number %]',
'P-NGCP-Presence-Caller: sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'P-NGCP-Presence-Callee: sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test',
'v=0',
's=-',
't=0 0',
'm=audio \d+ RTP/AVP 8',
'a=rtpmap:8 PCMA/8000',
'a=sendrecv',
'a=rtcp:\d+',
'a=rtcp-mux',
'a=ptime:50',
]

@ -0,0 +1,68 @@
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_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|ROUTE_RESTORE_CLUSTERSET:
- return|ROUTE_RESTORE_CLUSTERSET:
- start|ROUTE_WITHINDLG_RTPENGINE:
- start|ROUTE_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- return|ROUTE_WITHINDLG_RTPENGINE:
- start|ROUTE_OUTBOUND:
- start|DEFAULT_SEND:
$dlg_var(xfer_leg_from_a): "1"
- exit|DEFAULT_SEND:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'REFER sip:127.0.0.1:5080;prxroute=1 SIP/2.0'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ REFER'
- 'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>'
- 'Refer-To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test\?Replaces=.*%3bto-tag%3d.*%3bfrom-tag%3d.*>'
- 'Referred-By: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Content-Length:\s+0'
- 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:[% server_ip %]:5060'
- 'P-LB-Uptime:\s+\d+'
- 'P-NGCP-Src-Nat: 1'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ REFER',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'REFER sip:127.0.0.1:5080;prxroute=1 SIP/2.0',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ REFER',
'Contact: <sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^;]+>',
'Refer-To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test\?Replaces=.*%3bto-tag%3d.*%3bfrom-tag%3d.*>',
'Referred-By: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'Content-Length:\s+0',
'P-LB-Uptime:\s+\d+',
]

@ -0,0 +1,33 @@
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:
$dlg_var(xfer_leg_from_a): "1"
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'SIP/2.0 202 Accepted'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ REFER'
- 'P-NGCP-Trans-CID: NGCP'
- 'Content-Length:\s+0'
sip_out:
- [
'SIP/2.0 202 Accepted',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ REFER',
'P-NGCP-Trans-CID: NGCP',
'Content-Length:\s+0',
'P-COLP-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'P-Out-Socket: udp:[% server_ip %]:5060',
]

@ -0,0 +1,76 @@
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(xfer_leg_from_a): ["1"]
$xavp(lua_dlgcnt_vals[0]=>total): 1
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 1
$xavp(lua_dlgcnt_vals[0]=>totaluserout:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.uuid %]): 1
- start|ROUTE_STOP_RTPPROXY:
- start|ROUTE_RESTORE_CLUSTERSET:
- return|ROUTE_RESTORE_CLUSTERSET:
- return|ROUTE_STOP_RTPPROXY:
- start|ROUTE_FIX_PBX_STOP_RECORDS:
- return|ROUTE_FIX_PBX_STOP_RECORDS:
- start|ROUTE_SCA_UPDATE:
- return|ROUTE_SCA_UPDATE:
- start|ROUTE_PREPARE_UA:
- return|ROUTE_PREPARE_UA:
- start|ROUTE_OUTBOUND:
- start|DEFAULT_SEND:
- exit|DEFAULT_SEND:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'BYE sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^; ]+ SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'P-NGCP-Attended-Transfer: 1'
- 'P-NGCP-Refer-Callid: .*'
- 'P-NGCP-Refer-From-Tag: .*'
- 'P-NGCP-Refer-To-Tag: .*'
- 'Content-Length:\s+0'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'PUBLISH sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'SIP-If-Match:',
'Content-Type: application/dialog-info\+xml',
]
- [
'BYE sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %];alias=[^; ]+ SIP/2.0',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'_:NOT:_P-NGCP-Attended-Transfer: 1',
'_:NOT:_P-NGCP-Refer-Callid: .*',
'_:NOT:_P-NGCP-Refer-From-Tag: .*',
'_:NOT:_P-NGCP-Refer-To-Tag: .*',
'Content-Length:\s+0',
'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
]

@ -0,0 +1,75 @@
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:
$dlg_var(force_decrease_counters_callee): "1"
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): 1
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.uuid %]): None
- 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:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'BYE sip:.*:5080 SIP/2.0'
- 'From: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'Contact: <sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP>'
- 'Content-Length:\s+0'
- 'P-NGCP-Src-Ip: [% scenarios.0.ip %]'
- 'P-NGCP-Src-Port: [% scenarios.0.responders.0.port %]'
- 'P-NGCP-Src-Proto: udp'
- 'P-NGCP-Src-Af: 4'
- 'P-Sock-Info: udp:[% server_ip %]:5060'
- 'P-LB-Uptime:\s+\d+'
- 'P-NGCP-Src-Nat: 1'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'P-Out-Socket: udp:[% server_ip %]:5060',
'P-NGCP-Auth-IP: [% scenarios.0.ip %]',
'P-NGCP-Auth-UA: <null>',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'PUBLISH sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'SIP-If-Match:',
'Content-Type: application/dialog-info\+xml',
]
- [
'BYE sip:.*:5080 SIP/2.0',
'From: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'Contact: <sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP>',
'Content-Length:\s+0',
'P-LB-Uptime:\s+\d+',
]

@ -0,0 +1,64 @@
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:
$dlg_var(force_decrease_counters_callee): "1"
$xavp(lua_dlgcnt_vals[0]=>totaluser:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.uuid %]): None
$xavp(lua_dlgcnt_vals[0]=>totalaccount:[% invite_xfer_attended_caller_immediat_rel_customerpbx_test.id %]): None
- 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:
- start|ROUTE_EXIT:
- start|ROUTE_RUNTIME:
- return|ROUTE_RUNTIME:
- exit|ROUTE_EXIT:
sip_in:
- 'BYE sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'P-LB-Uptime:\s+\d+'
- 'Content-Length:\s+0'
sip_out:
- [
'SIP/2.0 100 Trying',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'Server: Sipwise NGCP Proxy',
'Content-Length:\s+0',
]
- [
'PUBLISH sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test SIP/2.0',
'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>',
'From: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ PUBLISH',
'Content-Length:\s+\d+',
'User-Agent: Sipwise NGCP Proxy',
'Event: dialog',
'SIP-If-Match:',
'Content-Type: application/dialog-info\+xml',
]
- [
'BYE sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0',
'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+',
'CSeq: \d+ BYE',
'P-LB-Uptime:\s+\d+',
'Content-Length:\s+0',
]

@ -0,0 +1,21 @@
cdr:
- source_user: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.username %]'
source_domain: 'invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test'
source_cli: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.1.username %]'
destination_domain: 'invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test'
destination_user_dialed: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.extension %]'
destination_user_in: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_phone_number %]'
call_type: 'call'
call_status: 'ok'
call_code: '200'
- source_user: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.username %]'
source_domain: 'invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test'
source_cli: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]'
destination_user: '[% scenarios.0.responders.2.username %]'
destination_domain: 'invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test'
destination_user_dialed: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.extension %]'
destination_user_in: '[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_phone_number %]'
call_type: 'call'
call_status: 'ok'
call_code: '200'

@ -0,0 +1,5 @@
{
"@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test": {
"nat_sipping": "no"
}
}

@ -0,0 +1,56 @@
# Call 1: A calls B , A calls C, A xfers -> B and C are in communication, A is out of the call
# Warning||| in order to make this scenario work you have to install this:
# https://gerrit.mgm.sipwise.com/c/lua-ngcp-kamailio/+/69161
test_uuid: invite_xfer_attended_caller_immediat_rel
domains:
invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test:
reseller_id: 1
customers:
'invite_xfer_attended_caller_immediat_rel.customerpbx.test':
contacts:
- email: "invite_xfer_attended_caller_immediat_rel.customerpbx.test@spce.test"
reseller_id: 1
details:
status: 'active'
type: 'pbxaccount'
billing_profile_id: 1
reseller_id: 1
subscribers:
invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test:
testuser1002:
customer: 'invite_xfer_attended_caller_immediat_rel.customerpbx.test'
password: testuser
cc: 43
ac: 1
sn: 1002
is_pbx_pilot: 1
pbx_extension: 1002
testuser1003:
customer: 'invite_xfer_attended_caller_immediat_rel.customerpbx.test'
password: testuser
cc: 43
ac: 1
sn: 1003
is_pbx_pilot: 0
pbx_extension: 1003
testuser1004:
customer: 'invite_xfer_attended_caller_immediat_rel.customerpbx.test'
password: testuser
cc: 43
ac: 1
sn: 1004
is_pbx_pilot: 0
pbx_extension: 1004
scenarios:
- ip: 127.126.0.1
username: testuser1002
domain: invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test
responders:
- ip: 127.1.0.1
username: testuser1003
domain: invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test
register: yes
- ip: 127.1.0.2
username: testuser1004
domain: invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test
register: yes

@ -0,0 +1,368 @@
<?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:[field5 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:[field5 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
Call-ID: NGCP%[field4 file="callee.csv" line=0]%1///[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>
<recv response="407" rtd="2" auth="true"/>
<send>
<![CDATA[
ACK sip:[field5 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:[field5 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=0]%1///[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:[field5 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:[field5 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>
Call-ID: NGCP%[field4 file="callee.csv" line=0]%1///[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>
<recv response="180" optional="true">
</recv>
<recv response="183" optional="true">
</recv>
<recv response="200" rrs="true" rtd="3">
<action>
<ereg regexp="(.*)" search_in="hdr" header="To:" assign_to="call_1_to" />
</action>
</recv>
<Reference variables="call_1_to" />
<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:[field5 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=0]%1///[call_id]
[routes]
CSeq: 2 ACK
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<!-- CALL 1 IS UP -->
<pause milliseconds="500"/>
<nop>
<action>
<exec play_pcap_audio="media181sec.pcap"/>
</action>
</nop>
<pause milliseconds="1000"/>
<!-- PUT CALLEE ON HOLD -->
<send start_rtd="4">
<![CDATA[
INVITE [next_url] SIP/2.0
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
CSeq: 3 INVITE
[routes]
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 53655766 2353687638 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
a=sendonly
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200" rrs="true" rtd="4">
</recv>
<send>
<![CDATA[
ACK [next_url] SIP/2.0
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[routes]
CSeq: 3 ACK
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<pause milliseconds="500"/>
<!-- START OF SECOND CALL -->
<send start_rtd="5" start_rtd="6">
<![CDATA[
INVITE sip:[field5 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"]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field5 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
Call-ID: NGCP%[field4 file="callee.csv" line=1]%2///[call_id]
CSeq: 4 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="5" optional="true">
</recv>
<recv response="407" rtd="6" auth="true"/>
<send>
<![CDATA[
ACK sip:[field5 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]:[remote_port] SIP/2.0
[last_Via:]
From: <sip:[field0 file="caller.csv"]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field5 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=1]%2///[call_id]
CSeq: 4 ACK
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<pause milliseconds="500"/>
<send start_rtd="7">
<![CDATA[
INVITE sip:[field5 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"]@[field2 file="caller.csv"]>;tag=[pid]SIPpTag00[call_number]
To: <sip:[field5 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>
Call-ID: NGCP%[field4 file="callee.csv" line=1]%2///[call_id]
CSeq: 5 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>
<recv response="180" optional="true">
</recv>
<recv response="183" optional="true">
</recv>
<recv response="200" rrs="true" rtd="7">
<action>
<ereg regexp="=(.*)$" search_in="hdr" header="To:" assign_to="junk,call_2_to" />
</action>
</recv>
<Reference variables="junk" />
<Reference variables="call_2_to" />
<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:[field5 file="callee.csv" line=1]@[field3 file="callee.csv" line=1]>[peer_tag_param]
Call-ID: NGCP%[field4 file="callee.csv" line=1]%2///[call_id]
[routes]
CSeq: 5 ACK
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<!-- CALL 2 IS UP -->
<!-- XFER START -->
<pause milliseconds="1500"/>
<send start_rtd="5" start_rtd="6">
<![CDATA[
REFER [next_url] SIP/2.0
[last_Via:]
[last_From:]
To: [$call_1_to]
Call-ID: NGCP%[field4 file="callee.csv" line=1]%1///[call_id]
[routes]
CSeq: 6 REFER
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
Max-Forwards: 70
Refer-To: <sip:[field5 file="callee.csv" line=0]@[field3 file="callee.csv" line=0]?Replaces=NGCP%[field4 file="callee.csv" line=1]%2///[call_id]%3bto-tag%3d[$call_2_to]%3bfrom-tag%3d[pid]SIPpTag01[call_number]>
Referred-By: <sip:[field0 file="caller.csv"]@[field2 file="caller.csv"]>
Content-Length: 0
]]>
</send>
<recv response="202" rrs="true" rtd="5">
</recv>
<recv request="BYE" rrs="true" rtd="6">
</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>
<!-- XFER COMPLETED -->
<!-- BYE AFTER XFER FOR CALL 1 -->
<recv request="BYE" rrs="true" rtd="6">
</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, 500, 1000"/>
<!-- <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> -->
</scenario>

@ -0,0 +1,125 @@
messages:
- - 'SIP/2.0 100 Trying'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length:\s+0'
- - 'SIP/2.0 407 Proxy Authentication Required'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Proxy-Authenticate: Digest realm="invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test", nonce="[^"]+"'
- 'Server: Sipwise NGCP Proxy'
- 'Content-Length:\s+0'
- - 'SIP/2.0 100 Trying'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length:\s+0'
- - 'SIP/2.0 180 Ringing'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Length:\s+0'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'SIP/2.0 200 OK'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'SIP/2.0 100 Trying'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length:\s+0'
- - 'SIP/2.0 200 OK'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=recvonly'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'SIP/2.0 100 Trying'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length:\s+0'
- - 'SIP/2.0 407 Proxy Authentication Required'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Proxy-Authenticate: Digest realm="invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test", nonce="[^"]+"'
- 'Server: Sipwise NGCP Proxy'
- 'Content-Length:\s+0'
- - 'SIP/2.0 100 Trying'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'Server: Sipwise NGCP LB'
- 'Content-Length:\s+0'
- - 'SIP/2.0 180 Ringing'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Length:\s+0'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'SIP/2.0 200 OK'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'SIP/2.0 202 Accepted'
- 'From: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ REFER'
- 'Content-Length:\s+0'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- - 'BYE sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %] SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'Content-Length:\s+0'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1004.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- - 'BYE sip:[% scenarios.0.username %]@[% scenarios.0.ip %]:[% scenarios.0.port %] SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'Content-Length:\s+0'
- 'P-Asserted-Identity: "[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]" <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1003.pbx_extension %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'

@ -0,0 +1,188 @@
<?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" rtd="true" rrs="true">
</recv>
<!-- CALL IS UP -->
<recv request="INVITE" crlf="true" rtd="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[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
a=recvonly
]]>
</send>
<recv request="ACK" crlf="true" rtd="true" rrs="true">
</recv>
<!-- CALLEE IS ON HOLD -->
<recv request="INVITE" crlf="true" rtd="true">
</recv>
<send>
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[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
a=sendrecv
]]>
</send>
<recv request="ACK" crlf="true" rtd="true" rrs="true">
<action>
<ereg regexp=".*" search_in="hdr" header="From:" assign_to="1" />
<ereg regexp=".*" search_in="hdr" header="To:" assign_to="2" />
</action>
</recv>
<!-- CALLEE IS OFF HOLD -->
<pause milliseconds="500"/>
<nop>
<action>
<exec play_pcap_audio="media181sec.pcap"/>
</action>
</nop>
<pause milliseconds="1500"/>
<!-- SEND BYE -->
<send start_rtd="4">
<![CDATA[
BYE [next_url] SIP/2.0
[last_Via:]
From: [$2]
To: [$1]
[last_Call-ID:]
CSeq: 10 BYE
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
[routes]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200" crlf="true" rtd="4">
</recv>
<send>
<![CDATA[
ACK [next_url] SIP/2.0
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[routes]
CSeq: 10 ACK
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
[routes]
Max-Forwards: 70
Content-Length: 0
]]>
</send>
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
</scenario>

@ -0,0 +1,71 @@
messages:
- - 'INVITE sip:[% scenarios.0.responders.0.username %]@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'P-Asserted-Identity: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'INVITE sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'P-Asserted-Identity: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendonly'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'INVITE sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'SIP/2.0 200 OK'
- 'From: <sip:[% scenarios.0.responders.0.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'Content-Length:\s+0'

@ -0,0 +1,149 @@
<?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" rtd="true" rrs="true">
</recv>
<!-- CALL IS UP -->
<!-- START OF XFERRED CALL, FIRST REINVITE-->
<recv request="INVITE" crlf="true" rtd="true">
</recv>
<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="INVITE" crlf="true" rtd="true">
</recv>
<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,70 @@
messages:
- - 'INVITE sip:[% scenarios.0.responders.1.username %]@[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %] SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'CSeq: \d+ INVITE'
- 'P-Asserted-Identity: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'INVITE sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendonly'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'INVITE sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ INVITE'
- 'Content-Type: application/sdp'
- 'Content-Length:\s+\d+'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- 'v=0'
- 's=-'
- 't=0 0'
- 'm=audio \d+ RTP/AVP 8'
- 'a=rtpmap:8 PCMA/8000'
- 'a=sendrecv'
- 'a=rtcp:\d+'
- 'a=ptime:50'
- - 'ACK sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ ACK'
- 'Content-Length:\s+0'
- 'Contact: <sip:ngcp-lb@[% server_ip %]:5060;ngcpct=[^;]+>'
- - 'BYE sip:[% scenarios.0.responders.1.ip %]:[% scenarios.0.responders.1.port %];transport=UDP SIP/2.0'
- 'From: <sip:[% invite_xfer_attended_caller_immediat_rel_scenarios_pbx_test.testuser1002.phone_number %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'To: <sip:[% scenarios.0.responders.1.username %]@invite-xfer-attended-caller-immediat-rel.scenarios-pbx.test>;tag=[\w-]+'
- 'CSeq: \d+ BYE'
- 'Content-Length:\s+0'
Loading…
Cancel
Save