Update ivr_menu.php
This commit is contained in:
@@ -280,12 +280,9 @@ include "root.php";
|
|||||||
$database->where[1]['operator'] = '=';
|
$database->where[1]['operator'] = '=';
|
||||||
$database->delete();
|
$database->delete();
|
||||||
|
|
||||||
//delete the dialplan context from memcache
|
//clear the cache
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
$cache = new cache;
|
||||||
if ($fp) {
|
$cache->delete("dialplan:".$_SESSION["context"]);
|
||||||
$switch_cmd = "memcache delete dialplan:".$_SESSION["context"];
|
|
||||||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
//commit the transaction
|
//commit the transaction
|
||||||
//$count = $database->db->exec("COMMIT;");
|
//$count = $database->db->exec("COMMIT;");
|
||||||
|
|||||||
Reference in New Issue
Block a user