|
|
|
|
@ -62,7 +62,7 @@ flow:
|
|
|
|
|
- return|ROUTE_SET_CALLEE_DIALOG:
|
|
|
|
|
$avp(lua_dlg_profile): [
|
|
|
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluser:[% spce_test.testuser1003.uuid %]",
|
|
|
|
|
"totaluser:[% invite_shared_line_scenarios_pbx_test.testuser1003.uuid %]",
|
|
|
|
|
"total"
|
|
|
|
|
]
|
|
|
|
|
- start|ROUTE_BLOCK_IN:
|
|
|
|
|
@ -90,11 +90,11 @@ flow:
|
|
|
|
|
- return|ROUTE_SET_CALLER_DIALOG:
|
|
|
|
|
$avp(lua_dlg_profile): [
|
|
|
|
|
"totalaccountout:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
|
|
|
|
"totaluserout:[% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]",
|
|
|
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluser:[% spce_test.testuser1002.uuid %]",
|
|
|
|
|
"totaluser:[% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]",
|
|
|
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluser:[% spce_test.testuser1003.uuid %]",
|
|
|
|
|
"totaluser:[% invite_shared_line_scenarios_pbx_test.testuser1003.uuid %]",
|
|
|
|
|
"total"
|
|
|
|
|
]
|
|
|
|
|
- start|ROUTE_ACC_CALLER:
|
|
|
|
|
@ -133,87 +133,87 @@ flow:
|
|
|
|
|
- start|ROUTE_EXIT:
|
|
|
|
|
$avp(lua_dlg_profile): [
|
|
|
|
|
"totalaccountout:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
|
|
|
|
"totaluserout:[% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]",
|
|
|
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluser:[% spce_test.testuser1002.uuid %]",
|
|
|
|
|
"totaluser:[% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]",
|
|
|
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
|
|
|
"totaluser:[% spce_test.testuser1003.uuid %]",
|
|
|
|
|
"totaluser:[% invite_shared_line_scenarios_pbx_test.testuser1003.uuid %]",
|
|
|
|
|
"total"
|
|
|
|
|
]
|
|
|
|
|
- start|ROUTE_RUNTIME:
|
|
|
|
|
- return|ROUTE_RUNTIME:
|
|
|
|
|
- exit|ROUTE_EXIT:
|
|
|
|
|
sip_in:
|
|
|
|
|
- '^INVITE sip:1003@spce.test SIP/2.0'
|
|
|
|
|
- 'From: <sip:testuser1002@spce.test>;tag='
|
|
|
|
|
- 'To: <sip:1003@spce.test>'
|
|
|
|
|
- '^INVITE sip:1003@invite-shared-line.scenarios-pbx.test SIP/2.0'
|
|
|
|
|
- 'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag='
|
|
|
|
|
- 'To: <sip:1003@invite-shared-line.scenarios-pbx.test>'
|
|
|
|
|
- 'CSeq: 2 INVITE'
|
|
|
|
|
- 'Contact: sip:testuser1002@127.126.0.1:\d+'
|
|
|
|
|
- 'Contact: sip:[% scenarios.0.username %]@[% scenarios.2.ip %]:[% scenarios.2.port %]'
|
|
|
|
|
- 'Content-Type: application/sdp'
|
|
|
|
|
- 'Content-Length:\s+\d+'
|
|
|
|
|
- 'P-NGCP-Src-Ip: 127.126.0.1'
|
|
|
|
|
- 'P-NGCP-Src-Port: \d+'
|
|
|
|
|
- 'P-NGCP-Src-Ip: [% scenarios.2.ip %]'
|
|
|
|
|
- 'P-NGCP-Src-Port: [% scenarios.2.port %]'
|
|
|
|
|
- 'P-NGCP-Src-Proto: udp'
|
|
|
|
|
- 'P-NGCP-Src-Af: 4'
|
|
|
|
|
- 'P-Sock-Info: udp:127.0.0.1:5060'
|
|
|
|
|
sip_out:
|
|
|
|
|
- [
|
|
|
|
|
'^SIP/2.0 100 Trying',
|
|
|
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
|
|
|
'To: <sip:1003@spce.test>',
|
|
|
|
|
'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag=',
|
|
|
|
|
'To: <sip:1003@invite-shared-line.scenarios-pbx.test>',
|
|
|
|
|
'CSeq: 2 INVITE',
|
|
|
|
|
'P-Out-Socket: udp:127.0.0.1:5060',
|
|
|
|
|
'P-NGCP-Auth-IP: 127.126.0.1',
|
|
|
|
|
'P-NGCP-Auth-IP: [% scenarios.2.ip %]',
|
|
|
|
|
'P-NGCP-Auth-UA: <null>',
|
|
|
|
|
'Content-Length: 0'
|
|
|
|
|
]
|
|
|
|
|
- [
|
|
|
|
|
'^SIP/2.0 101 Connecting',
|
|
|
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
|
|
|
'To: <sip:1003@spce.test>',
|
|
|
|
|
'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag=',
|
|
|
|
|
'To: <sip:1003@invite-shared-line.scenarios-pbx.test>',
|
|
|
|
|
'CSeq: 2 INVITE',
|
|
|
|
|
'P-Out-Socket: udp:127.0.0.1:5060',
|
|
|
|
|
'P-NGCP-Auth-IP: 127.126.0.1',
|
|
|
|
|
'P-NGCP-Auth-IP: [% scenarios.2.ip %]',
|
|
|
|
|
'P-NGCP-Auth-UA: <null>',
|
|
|
|
|
'P-NGCP-Authorization: testuser1002@spce.test',
|
|
|
|
|
'P-NGCP-Authorization: [% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test',
|
|
|
|
|
'P-NGCP-Authorized: 1',
|
|
|
|
|
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
|
|
|
|
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
|
|
|
|
'P-NGCP-Caller-Info: <sip:testuser1002@invite-shared-line.scenarios-pbx.test>;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %];primary=[% invite_shared_line_scenarios_pbx_test.testuser1002.phone_number %]',
|
|
|
|
|
'P-Caller-UUID: [% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]',
|
|
|
|
|
'Content-Length: 0'
|
|
|
|
|
]
|
|
|
|
|
- [
|
|
|
|
|
'^PUBLISH sip:testuser1002@spce.test SIP/2.0',
|
|
|
|
|
'From: <sip:testuser1002@spce.test>',
|
|
|
|
|
'To: <sip:testuser1002@spce.test>',
|
|
|
|
|
'^PUBLISH sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test SIP/2.0',
|
|
|
|
|
'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>',
|
|
|
|
|
'To: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>',
|
|
|
|
|
'Event: dialog',
|
|
|
|
|
'Content-Type: application/dialog-info\+xml',
|
|
|
|
|
]
|
|
|
|
|
- [
|
|
|
|
|
'^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0',
|
|
|
|
|
'To: <sip:testuser1002@spce.test>;tag=',
|
|
|
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
|
|
|
'^NOTIFY sip:testuser1002@[% scenarios.0.responders.0.ip %]:[% scenarios.0.responders.0.port %] SIP/2.0',
|
|
|
|
|
'To: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag=',
|
|
|
|
|
'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag=',
|
|
|
|
|
'CSeq: 3 NOTIFY',
|
|
|
|
|
'Content-Length: 0',
|
|
|
|
|
'Contact: sip:127.0.0.1:5062',
|
|
|
|
|
'Call-Info: <sip:spce.test>;appearance-index=1;appearance-state=seized,<sip:spce.test>;appearance-index=\*;appearance-state=idle',
|
|
|
|
|
'Call-Info: <sip:invite-shared-line.scenarios-pbx.test>;appearance-index=1;appearance-state=seized,<sip:invite-shared-line.scenarios-pbx.test>;appearance-index=\*;appearance-state=idle',
|
|
|
|
|
'Event: call-info',
|
|
|
|
|
'Subscription-State: active;expires=\d+'
|
|
|
|
|
]
|
|
|
|
|
- [
|
|
|
|
|
'^INVITE sip:testuser1003@spce.test SIP/2.0',
|
|
|
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
|
|
|
'To: <sip:1003@spce.test>',
|
|
|
|
|
'^INVITE sip:testuser1003@invite-shared-line.scenarios-pbx.test SIP/2.0',
|
|
|
|
|
'From: <sip:[% scenarios.0.username %]@invite-shared-line.scenarios-pbx.test>;tag=',
|
|
|
|
|
'To: <sip:1003@invite-shared-line.scenarios-pbx.test>',
|
|
|
|
|
'CSeq: 2 INVITE',
|
|
|
|
|
'Contact: sip:testuser1002@127.126.0.1:\d+',
|
|
|
|
|
'Contact: sip:[% scenarios.0.username %]@[% scenarios.2.ip %]:[% scenarios.2.port %]',
|
|
|
|
|
'Content-Type: application/sdp',
|
|
|
|
|
'P-NGCP-Src-Ip: 127.126.0.1',
|
|
|
|
|
'P-NGCP-Src-Port: \d+',
|
|
|
|
|
'P-NGCP-Src-Ip: [% scenarios.2.ip %]',
|
|
|
|
|
'P-NGCP-Src-Port: [% scenarios.2.port %]',
|
|
|
|
|
'P-NGCP-Src-Proto: udp',
|
|
|
|
|
'P-NGCP-Src-Af: 4',
|
|
|
|
|
'P-NGCP-Src-Nat: 0',
|
|
|
|
|
'P-Caller-CLIR: 0',
|
|
|
|
|
'P-NGCP-Orig-User: 43110021003',
|
|
|
|
|
'P-NGCP-Orig-Domain: spce.test',
|
|
|
|
|
'P-NGCP-Orig-User: [% invite_shared_line_scenarios_pbx_test.testuser1003.pbx_phone_number %]',
|
|
|
|
|
'P-NGCP-Orig-Domain: invite-shared-line.scenarios-pbx.test',
|
|
|
|
|
'P-NGCP-Orig-Dialed: 1003',
|
|
|
|
|
'P-NGCP-Orig-PBX-Ext: 1003',
|
|
|
|
|
'P-First-Caller-Cloud-PBX: \d+',
|
|
|
|
|
@ -222,12 +222,12 @@ sip_out:
|
|
|
|
|
'P-NGCP-AdmBlockOut-Override: 0',
|
|
|
|
|
'P-NGCP-ContBlockOut-Override: 0',
|
|
|
|
|
'P-NGCP-ContAdmBlockOut-Override: 0',
|
|
|
|
|
'P-Caller-UUID: [% spce_test.testuser1002.uuid %]',
|
|
|
|
|
'P-Callee-UUID: [% spce_test.testuser1003.uuid %]',
|
|
|
|
|
'P-Caller-UUID: [% invite_shared_line_scenarios_pbx_test.testuser1002.uuid %]',
|
|
|
|
|
'P-Callee-UUID: [% invite_shared_line_scenarios_pbx_test.testuser1003.uuid %]',
|
|
|
|
|
'P-App-Name: sbc',
|
|
|
|
|
'P-App-Param: ;profile=ngcp_pbx;a_park_domain=\d+;b_park_domain=\d+',
|
|
|
|
|
'P-NGCP-Acc-Src-Leg: \w+',
|
|
|
|
|
'P-NGCP-Acc-Dst-Leg: \w+',
|
|
|
|
|
'P-NGCP-Caller-Info: <sip:testuser1002@spce.test>;ip=127.126.0.1;port=\d+;primary=4311002',
|
|
|
|
|
'P-NGCP-Callee-Info: <sip:43110021003@spce.test>;ip=127.0.0.1;port=5080;primary=43110021003',
|
|
|
|
|
'P-NGCP-Caller-Info: <sip:testuser1002@invite-shared-line.scenarios-pbx.test>;ip=[% scenarios.2.ip %];port=[% scenarios.2.port %];primary=[% invite_shared_line_scenarios_pbx_test.testuser1002.phone_number %]',
|
|
|
|
|
'P-NGCP-Callee-Info: <sip:[% invite_shared_line_scenarios_pbx_test.testuser1003.pbx_phone_number %]@invite-shared-line.scenarios-pbx.test>;ip=127.0.0.1;port=5080;primary=[% invite_shared_line_scenarios_pbx_test.testuser1003.pbx_phone_number %]',
|
|
|
|
|
]
|
|
|
|
|
|