mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +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
32a6f76ed0
commit
f939c82862
@@ -163,6 +163,10 @@
|
||||
$destination_extension = str_replace("+", "\+", $destination_extension);
|
||||
|
||||
$destination_feature = $call_flow_feature_code;
|
||||
// Allows dial feature code as `flow+<feature_code>`
|
||||
if (substr($destination_feature, 0, 5) != 'flow+') {
|
||||
$destination_feature = '(?:flow+)?' . $destination_feature;
|
||||
}
|
||||
$destination_feature = str_replace("*", "\*", $destination_feature);
|
||||
$destination_feature = str_replace("+", "\+", $destination_feature);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user