diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index ab86f92c73..25e6efe7d7 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -935,11 +935,15 @@ $cache->delete("dialplan:".$destination_context); } if ($_SESSION['destinations']['dialplan_mode']['text'] == 'single') { - if (isset($destination_number) && is_numeric($destination_number)) { - $cache->delete("dialplan:".$destination_context.":".$destination_number); - } if (isset($destination_prefix) && is_numeric($destination_prefix) && isset($destination_number) && is_numeric($destination_number)) { $cache->delete("dialplan:".$destination_context.":".$destination_prefix.$destination_number); + $cache->delete("dialplan:".$destination_context.":+".$destination_prefix.$destination_number); + } + if (isset($destination_number) && substr($destination_number, 0, 1) == '+' && is_numeric(str_replace('+', '', $destination_number))) { + $cache->delete("dialplan:".$destination_context.":".$destination_number); + } + if (isset($destination_number) && is_numeric($destination_number)) { + $cache->delete("dialplan:".$destination_context.":".$destination_number); } }