Fix the dialplan context for clearing memcache when adding an outbound route.

This commit is contained in:
Mark Crane
2014-08-02 01:43:25 +00:00
parent 8dc1ec43ee
commit 8623b34b80
2 changed files with 5 additions and 4 deletions

View File

@@ -601,9 +601,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//synchronize the xml config
save_dialplan_xml();
$_SESSION["message"] = $text['confirm-update-complete'];
header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4");
return;
//redirect message
$_SESSION["message"] = $text['confirm-update-complete'];
header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4");
return;
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
?>

View File

@@ -502,7 +502,7 @@ else {
//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:".$dialplan_context."@".$_SESSION['domain_name'];
$switch_cmd = "memcache delete dialplan:".$dialplan_context;
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}