mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use and update the description
This commit is contained in:
@@ -459,7 +459,7 @@
|
||||
//set the last destination_app and destination_data variables
|
||||
foreach($destination_actions as $destination_action) {
|
||||
$action_array = explode(":", $destination_action, 2);
|
||||
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||
if (isset($action_array[0]) && !empty($action_array[0])) {
|
||||
$destination_app = $action_array[0];
|
||||
$destination_data = $action_array[1];
|
||||
}
|
||||
@@ -532,7 +532,7 @@
|
||||
//add the actions to the dialplan_xml
|
||||
foreach($destination_actions as $destination_action) {
|
||||
$action_array = explode(":", $destination_action, 2);
|
||||
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||
if (isset($action_array[0]) && !empty($action_array[0])) {
|
||||
if ($destination->valid($action_array[0].':'.$action_array[1])) {
|
||||
$dialplan["dialplan_xml"] .= " <action application=\"".xml::sanitize($action_array[0])."\" data=\"".$action_array[1]."\"/>\n";
|
||||
}
|
||||
@@ -826,7 +826,7 @@
|
||||
$action_array = explode(":", $field, 2);
|
||||
$action_app = $action_array[0] ?? null;
|
||||
$action_data = $action_array[1] ?? null;
|
||||
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||
if (isset($action_array[0]) && !empty($action_array[0])) {
|
||||
if ($destination->valid($action_app.':'.$action_data)) {
|
||||
//add to the dialplan_details array
|
||||
$dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;
|
||||
@@ -924,7 +924,7 @@
|
||||
$action_array = explode(":", $destination_action, 2);
|
||||
$action_app = $action_array[0] ?? null;
|
||||
$action_data = $action_array[1] ?? null;
|
||||
if (isset($action_array[0]) && $action_array[0] != '') {
|
||||
if (isset($action_array[0]) && !empty($action_array[0])) {
|
||||
if ($destination->valid($action_app.':'.$action_data)) {
|
||||
$actions[$y]['destination_app'] = $action_app;
|
||||
$actions[$y]['destination_data'] = $action_data;
|
||||
@@ -1200,6 +1200,7 @@
|
||||
}
|
||||
//increment the row id
|
||||
$x++;
|
||||
}
|
||||
|
||||
//set the defaults
|
||||
if (empty($destination_order)) { $destination_order = '100'; }
|
||||
@@ -1518,7 +1519,7 @@
|
||||
echo " <option value=\"caller_id_number\">".$text['option-caller_id_number']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <input class='formfld' type='text' name=\"destination_conditions[$x][condition_expression]\" id='destination_conditions' maxlength='255' value=\"".escape($row['condition_expression'])."\">\n";
|
||||
echo " <input class='formfld' type='text' name=\"destination_conditions[$x][condition_expression]\" id='destination_conditions' maxlength='255' value=\"".escape($row['condition_expression'] ?? '')."\">\n";
|
||||
echo " <br />\n";
|
||||
echo $destination->select('dialplan', "destination_conditions[$x][condition_action]", $row['condition_app'].':'.$row['condition_data'])."<br />\n";
|
||||
if (!empty($row['condition_app'])) {
|
||||
|
||||
Reference in New Issue
Block a user