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;
|
$_POST["dialplan_uuid"] = $dialplan_uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
//set the destination_number
|
//escape special characters
|
||||||
$destination_extension = str_replace("*", "\*", $call_flow_extension);
|
$destination_extension = $call_flow_extension;
|
||||||
$destination_feature = str_replace("*", "\*", $call_flow_feature_code);
|
$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
|
//build the xml dialplan
|
||||||
$dialplan_xml = "<extension name=\"".$conference_center_name."\" continue=\"\" uuid=\"".$dialplan_uuid."\">\n";
|
$dialplan_xml = "<extension name=\"".$conference_center_name."\" continue=\"\" uuid=\"".$dialplan_uuid."\">\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user