Clear memcache for call forward follow me and dnd.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user