diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index 2d9b846c6b..1bcf8e2d86 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -508,6 +508,18 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //display the results if ($result_count > 0) { + //get the list of applications + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); + if ($fp) { + $result = event_socket_request($fp, 'api show application'); + $installed_app = explode("\n\n", $result); + $installed_app = explode("\n", $installed_app[0]); + unset($result); + unset($fp); + } else { + $installed_app = Array(); + } + echo "