Update dialplan_add.php
This commit is contained in:
parent
fbfd8703b0
commit
fec97a0a20
|
|
@ -252,16 +252,14 @@
|
||||||
//synchronize the xml config
|
//synchronize the xml config
|
||||||
save_dialplan_xml();
|
save_dialplan_xml();
|
||||||
|
|
||||||
//delete the dialplan context from memcache
|
//clear the cache
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
$cache = new cache;
|
||||||
if ($fp) {
|
$cache->delete("dialplan:".$_SESSION["context"]);
|
||||||
$switch_cmd = "memcache delete dialplan:".$dialplan_context;
|
|
||||||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
|
||||||
}
|
|
||||||
|
|
||||||
message::add($text['message-update']);
|
//send a message and redirect the user
|
||||||
header("Location: ".PROJECT_PATH."/app/dialplans/dialplans.php");
|
message::add($text['message-update']);
|
||||||
return;
|
header("Location: ".PROJECT_PATH."/app/dialplans/dialplans.php");
|
||||||
|
return;
|
||||||
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
||||||
//initialize the destinations object
|
//initialize the destinations object
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue