diff --git a/app/dialplan/dialplans.php b/app/dialplan/dialplans.php index 56c6536073..0dcb9c7a03 100644 --- a/app/dialplan/dialplans.php +++ b/app/dialplan/dialplans.php @@ -49,6 +49,13 @@ else { unset($sql); $_SESSION["message"] = $text['message-update']; } + +//delete the dialplan context from memcache + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); + if ($fp) { + $switch_cmd = "memcache delete dialplan:".$_SESSION["context"]; + $switch_result = event_socket_request($fp, 'api '.$switch_cmd); + } //set the http values as php variables $search = check_str($_REQUEST["search"]); @@ -403,4 +410,4 @@ else { unset ($val); unset ($c); -?> \ No newline at end of file +?>