Update ivr_menu.php
This commit is contained in:
parent
1b4e080b53
commit
c9787b0865
|
|
@ -280,12 +280,9 @@ include "root.php";
|
|||
$database->where[1]['operator'] = '=';
|
||||
$database->delete();
|
||||
|
||||
//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);
|
||||
}
|
||||
//clear the cache
|
||||
$cache = new cache;
|
||||
$cache->delete("dialplan:".$_SESSION["context"]);
|
||||
|
||||
//commit the transaction
|
||||
//$count = $database->db->exec("COMMIT;");
|
||||
|
|
|
|||
Loading…
Reference in New Issue