mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-02 10:03:49 +00:00
Update call_flow_edit.php
Escape the + with the back slash when used in the dialplan.
This commit is contained in:
@@ -158,9 +158,14 @@
|
||||
$_POST["dialplan_uuid"] = $dialplan_uuid;
|
||||
}
|
||||
|
||||
//set the destination_number
|
||||
$destination_extension = str_replace("*", "\*", $call_flow_extension);
|
||||
$destination_feature = str_replace("*", "\*", $call_flow_feature_code);
|
||||
//escape special characters
|
||||
$destination_extension = $call_flow_extension;
|
||||
$destination_extension = str_replace("*", "\*", $destination_extension);
|
||||
$destination_extension = str_replace("+", "\+", $destination_extension);
|
||||
|
||||
$destination_feature = $call_flow_feature_code;
|
||||
$destination_feature = str_replace("*", "\*", $destination_feature);
|
||||
$destination_feature = str_replace("+", "\+", $destination_feature);
|
||||
|
||||
//build the xml dialplan
|
||||
$dialplan_xml = "<extension name=\"".$conference_center_name."\" continue=\"\" uuid=\"".$dialplan_uuid."\">\n";
|
||||
|
||||
Reference in New Issue
Block a user