Fix a bug with follow me where disabling it didn't clear the dial string.

This commit is contained in:
Mark Crane
2013-01-17 06:14:31 +00:00
parent 54614de30f
commit ce1c49d909
4 changed files with 14 additions and 56 deletions
+10
View File
@@ -328,6 +328,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
}
//synchronize configuration
save_extension_xml();
//delete extension 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 directory:".$extension."@".$_SESSION['domain_name'];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
//redirect the user
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"3;url=".PROJECT_PATH."/app/calls/calls.php\">\n";