mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +00:00
Add. Allow use call_flow_subscribe.lua with feature codes without flow+ prefix. (#2609)
This commit allows create call flow extension with some feature code (e.g. `*401`) Then on the phone you can configure BLF like `flow+*401` and use `call_flow_subscribe` to track current status of this call flow. BLF like `*401` will also works but only if use `call_flow_monitor` script. Also it is possible dial `flow+*401` as well as `*401` to toggle call flow state.
This commit is contained in:
committed by
FusionPBX
parent
7015209e54
commit
d43cb9e700
@@ -207,6 +207,12 @@ if (session:ready()) then
|
||||
call_flow_feature_code.."@"..domain_name,
|
||||
call_flow_uuid
|
||||
);
|
||||
if string.find(call_flow_feature_code, 'flow+', nil, true) ~= 1 then
|
||||
presence_in.turn_lamp( toggle == "false",
|
||||
'flow+'..call_flow_feature_code.."@"..domain_name,
|
||||
call_flow_uuid
|
||||
);
|
||||
end
|
||||
|
||||
--active label
|
||||
local active_flow_label = (toggle == "true") and call_flow_label or call_flow_alternate_label
|
||||
|
||||
Reference in New Issue
Block a user