You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.3 KiB
68 lines
2.3 KiB
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|REPLY_SCA_UPDATE:
|
|
- return|REPLY_SCA_UPDATE:
|
|
- start|ROUTE_PREPARE_UA:
|
|
- return|ROUTE_PREPARE_UA:
|
|
- start|ROUTE_FIX_PBX_STOP_RECORDS:
|
|
- return|ROUTE_FIX_PBX_STOP_RECORDS:
|
|
- 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): [
|
|
"totalaccountout:[% customerpbx_test.id %]",
|
|
"totaluserout:[% spce_test.testuser1002.uuid %]",
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
"totaluser:[% spce_test.testuser1002.uuid %]",
|
|
"totalaccount:[% customerpbx_test.id %]",
|
|
"totaluser:[% spce_test.testuser1003.uuid %]",
|
|
"total"
|
|
]
|
|
- return|dialog:start:
|
|
sip_in:
|
|
- '^SIP/2.0 200 OK'
|
|
- 'From: <sip:testuser1002@spce.test>;tag='
|
|
- 'To: <sip:1003@spce.test>;tag='
|
|
- 'CSeq: 2 INVITE'
|
|
- 'Contact: <sip:127.0.0.1:508[5|8];transport=udp>'
|
|
- 'Content-Type: application/sdp'
|
|
sip_out:
|
|
- [
|
|
'^NOTIFY sip:testuser1002@127.1.0.1:\d+ SIP/2.0',
|
|
'To: <sip:testuser1002@spce.test>;tag=',
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
'CSeq: 5 NOTIFY',
|
|
'Contact: sip:127.0.0.1:5062',
|
|
'Call-Info: <sip:spce.test>;appearance-index=1;appearance-state=active;appearance-uri=\"<sip:testuser1003@spce.test>\",<sip:spce.test>;appearance-index=\*;appearance-state=idle',
|
|
'Event: call-info',
|
|
'Subscription-State: active;expires=\d+'
|
|
]
|
|
- [
|
|
'^PUBLISH sip:testuser1002@spce.test SIP/2.0',
|
|
'From: <sip:testuser1002@spce.test>',
|
|
'To: <sip:testuser1002@spce.test>',
|
|
'Event: dialog',
|
|
'Content-Type: application/dialog-info\+xml',
|
|
]
|
|
- [
|
|
'^SIP/2.0 200 OK',
|
|
'From: <sip:testuser1002@spce.test>;tag=',
|
|
'To: <sip:1003@spce.test>;tag=',
|
|
'CSeq: 2 INVITE',
|
|
'Contact: <sip:127.0.0.1:508[5|8];transport=udp>',
|
|
'Content-Type: application/sdp',
|
|
'P-COLP-Identity: \"1003\" <sip:1003@spce.test>',
|
|
'P-Asserted-Identity: <sip:testuser1003@spce.test>',
|
|
'P-Out-Socket: udp:127.0.0.1:5060'
|
|
]
|