Fix the dialplan context for clearing memcache when adding an outbound route.
This commit is contained in:
@@ -601,9 +601,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||||||
//synchronize the xml config
|
//synchronize the xml config
|
||||||
save_dialplan_xml();
|
save_dialplan_xml();
|
||||||
|
|
||||||
$_SESSION["message"] = $text['confirm-update-complete'];
|
//redirect message
|
||||||
header("Location: ".PROJECT_PATH."/app/dialplan/dialplans.php?app_uuid=c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4");
|
$_SESSION["message"] = $text['confirm-update-complete'];
|
||||||
return;
|
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)
|
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ else {
|
|||||||
//delete the dialplan context from memcache
|
//delete the dialplan context from memcache
|
||||||
$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 dialplan:".$dialplan_context."@".$_SESSION['domain_name'];
|
$switch_cmd = "memcache delete dialplan:".$dialplan_context;
|
||||||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user