Clear memcache for call forward follow me and dnd.

This commit is contained in:
Mark Crane
2013-01-15 22:56:40 +00:00
parent 313036be9c
commit 583b68415d
3 changed files with 13 additions and 18 deletions
@@ -85,12 +85,10 @@ include "root.php";
unset($sql); unset($sql);
//delete extension from memcache //delete extension from memcache
if ($this->dial_string_update) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) {
if ($fp) { $switch_cmd .= "memcache delete directory:".$this->extension."@".$this->domain_name;
$switch_cmd .= "memcache delete ".$this->extension."@".$this->domain_name; $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
} }
//syncrhonize configuration //syncrhonize configuration
@@ -111,12 +111,10 @@ include "root.php";
unset($sql); unset($sql);
//delete extension from memcache //delete extension from memcache
if ($this->dial_string_update) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) {
if ($fp) { $switch_cmd .= "memcache delete directory:".$this->extension."@".$this->domain_name;
$switch_cmd .= "memcache delete ".$this->extension."@".$this->domain_name; $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
} }
//syncrhonize configuration //syncrhonize configuration
@@ -328,12 +328,11 @@ include "root.php";
unset($sql); unset($sql);
//delete extension from memcache //delete extension from memcache
if ($this->dial_string_update) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) {
if ($fp) { $switch_cmd .= "memcache delete directory:".$this->extension."@".$this->domain_name;
$switch_cmd .= "memcache delete ".$this->extension."@".$this->domain_name; echo $switch_cmd; exit;
$switch_result = event_socket_request($fp, 'api '.$switch_cmd); $switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
} }
//syncrhonize configuration //syncrhonize configuration