Add. Handler for SUBSCRIBE method for call flow application. (#1701)
* Add. Handler for SUBSCRIBE method for call flow application. Usage: 1. Run form fs_cli `luarun call_flow_subscribe` 2. Create new call flow extension and set feature code to `flow+<EXTENSION>`(e.g. `flow+401`). 3. Set on the phone BLF key to `flow+401` This code based on `mod_valet_parking`. * Add. prevent running 2 copy of script. Remove some unused vars and simplify implementation. * Fix. Use correct protocol for send event. * Fix. Do escape SQL arguments * Fix. escape `+` sign in call flow extension.
This commit is contained in:
committed by
FusionPBX
parent
628c825201
commit
61d6f0be6c
@@ -230,7 +230,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$dialplan->dialplan_uuid = $dialplan_uuid;
|
||||
$dialplan->dialplan_detail_tag = 'condition'; //condition, action, antiaction
|
||||
$dialplan->dialplan_detail_type = 'destination_number';
|
||||
$dialplan->dialplan_detail_data = '^'.str_replace('*', '\*', $call_flow_feature_code).'$';
|
||||
$dialplan->dialplan_detail_data = '^'.str_replace('+', '\+', str_replace('*', '\*', $call_flow_feature_code)).'$';
|
||||
$dialplan->dialplan_detail_break = 'on-true';
|
||||
//$dialplan->dialplan_detail_inline = '';
|
||||
$dialplan->dialplan_detail_group = '1';
|
||||
@@ -287,7 +287,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$dialplan->dialplan_uuid = $dialplan_uuid;
|
||||
$dialplan->dialplan_detail_tag = 'condition'; //condition, action, antiaction
|
||||
$dialplan->dialplan_detail_type = 'destination_number';
|
||||
$dialplan->dialplan_detail_data = '^'.str_replace('*', '\*', $call_flow_extension).'$';
|
||||
$dialplan->dialplan_detail_data = '^'.str_replace('+', '\+', str_replace('*', '\*', $call_flow_extension)).'$';
|
||||
//$dialplan->dialplan_detail_break = '';
|
||||
//$dialplan->dialplan_detail_inline = '';
|
||||
$dialplan->dialplan_detail_group = '2';
|
||||
|
||||
Reference in New Issue
Block a user