diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index d5b4d2e65e..77d92ccd5b 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -335,7 +335,7 @@ $dialplan["dialplan_xml"] .= " \n"; } if (strlen($destination_accountcode) > 0) { - $dialplan["dialplan_xml"] .= " \n"; + $dialplan["dialplan_xml"] .= " \n"; } if (strlen($destination_carrier) > 0) { $dialplan["dialplan_xml"] .= " \n"; @@ -439,7 +439,7 @@ if (strlen($destination_accountcode) > 0) { $dialplan["dialplan_details"][$y]["domain_uuid"] = $domain_uuid; $dialplan["dialplan_details"][$y]["dialplan_detail_tag"] = "action"; - $dialplan["dialplan_details"][$y]["dialplan_detail_type"] = "set"; + $dialplan["dialplan_details"][$y]["dialplan_detail_type"] = "export"; $dialplan["dialplan_details"][$y]["dialplan_detail_data"] = "accountcode=".$destination_accountcode; $dialplan["dialplan_details"][$y]["dialplan_detail_inline"] = "true"; $dialplan["dialplan_details"][$y]["dialplan_detail_order"] = $dialplan_detail_order; @@ -1112,7 +1112,7 @@ if (is_array($dialplan_details) && @sizeof($dialplan_details) != 0) { foreach($dialplan_details as $row) { if ($row["dialplan_detail_tag"] != "condition") { - if ($row["dialplan_detail_tag"] == "action" && $row["dialplan_detail_type"] == "set" && strpos($row["dialplan_detail_data"], "accountcode") == 0) { continue; } //exclude set:accountcode actions + if ($row["dialplan_detail_tag"] == "action" && ($row["dialplan_detail_type"] == "set" || $row["dialplan_detail_type"] == "export") && strpos($row["dialplan_detail_data"], "accountcode") == 0) { continue; } //exclude set:accountcode actions if (strlen($row['dialplan_detail_uuid']) > 0) { echo " \n"; }