diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-10-08 08:34:51 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-10-08 08:34:51 +0000 |
commit | 8ece67c74df50b4ebd00121eccea788718e83d43 (patch) | |
tree | 434ae4a73a002463bda1233ed246840edf1bfa3c /packages/freeswitch | |
parent | e9128e7771647bbc7beaa8d632810e9d9f3b5b68 (diff) | |
download | pfsense-packages-8ece67c74df50b4ebd00121eccea788718e83d43.tar.gz pfsense-packages-8ece67c74df50b4ebd00121eccea788718e83d43.tar.bz2 pfsense-packages-8ece67c74df50b4ebd00121eccea788718e83d43.zip |
freeswitch_status.php get connection from config.xml
Diffstat (limited to 'packages/freeswitch')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 2 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch_status.tmp | 22 |
2 files changed, 11 insertions, 13 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 14cdc759..21bd75b5 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -593,7 +593,7 @@ function freeswitch_php_install_command() pclose($handle); $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.1 revision 9759."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.1"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.1.1"; conf_mount_ro(); config_unlock(); diff --git a/packages/freeswitch/freeswitch_status.tmp b/packages/freeswitch/freeswitch_status.tmp index dcdeede3..67b73767 100644 --- a/packages/freeswitch/freeswitch_status.tmp +++ b/packages/freeswitch/freeswitch_status.tmp @@ -1,11 +1,13 @@ <?php /* $Id$ */ /* - tinydns_view_logs.php - part of pfSense (http://www.pfsense.com/) - - Copyright (C) 2006 Scott Ullrich <sullrich@gmail.com> + freeswitch_status.php + Copyright (C) 2008 Mark J Crane All rights reserved. + + FreeSWITCH (TM) + http://www.freeswitch.org/ + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -31,10 +33,6 @@ require("guiconfig.inc"); -/* Defaults to this page but if no settings are present, redirect to setup page */ -//if(!$config['installedpackages']['tinydns']['config'][0]) { -// Header("Location: /pkg_edit.php?xml=tinydns.xml&id=0"); -//} function event_socket_create($host, $port, $password) { $fp = fsockopen($host, $port, $errno, $errdesc) @@ -107,9 +105,9 @@ function event_socket_request($fp, $cmd) { $pgtitle = "FreeSWITCH: Status"; include("head.inc"); -$password = "ClueCon"; -$port = "8021"; -$host = "192.168.1.1"; +$password = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_password']; +$port = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_port']; +$host = $config['interfaces']['lan']['ipaddr']; ?> @@ -127,7 +125,7 @@ $host = "192.168.1.1"; $tab_array[] = array(gettext("Dialplan"), false, "/pkg_edit.php?xml=freeswitch_dialplan.xml&id=0"); $tab_array[] = array(gettext("Extensions"), false, "/pkg.php?xml=freeswitch_extensions.xml"); $tab_array[] = array(gettext("External"), false, "/pkg_edit.php?xml=freeswitch_external.xml&id=0"); - $tab_array[] = array(gettext("Gateways"), false, "/pkg.php?xml=freeswitch_gateways.xml"); + $tab_array[] = array(gettext("Gateways"), false, "/pkg.php?xml=freeswitch_gateways.xml"); $tab_array[] = array(gettext("Internal"), false, "/pkg_edit.php?xml=freeswitch_internal.xml&id=0"); $tab_array[] = array(gettext("Modules"), false, "/pkg_edit.php?xml=freeswitch_modules.xml&id=0"); $tab_array[] = array(gettext("Public"), false, "/pkg_edit.php?xml=freeswitch_public.xml&id=0"); |