diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 993db90567..b063455dcd 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -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) ?> diff --git a/app/dialplan_outbound/dialplan_outbound_add.php b/app/dialplan_outbound/dialplan_outbound_add.php index 86b06ebdf0..ff5e03cc81 100644 --- a/app/dialplan_outbound/dialplan_outbound_add.php +++ b/app/dialplan_outbound/dialplan_outbound_add.php @@ -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); }