From 05ab46353f2460d272082cc43a41c99f5fdc4637 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 29 Jan 2009 20:34:36 +0000 Subject: FreeSWITCH package check to see if the FreeSWITCH service is running before displaying the 'Status' tab start it automatically if it is not started. --- packages/freeswitch/freeswitch.inc | 2 +- packages/freeswitch/freeswitch.xml | 2 +- packages/freeswitch/freeswitch_status.tmp | 6 ++++++ pkg_config.7.xml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 1a906dfc..198b403d 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -2169,7 +2169,7 @@ function freeswitch_php_install_command() } $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.2 revision 11245."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.6.3"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.6.5"; conf_mount_ro(); config_unlock(); diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index 4df4dfc7..a3c314b5 100644 --- a/packages/freeswitch/freeswitch.xml +++ b/packages/freeswitch/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.6.3 + 0.6.5 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc diff --git a/packages/freeswitch/freeswitch_status.tmp b/packages/freeswitch/freeswitch_status.tmp index 07128835..2d84a6ec 100644 --- a/packages/freeswitch/freeswitch_status.tmp +++ b/packages/freeswitch/freeswitch_status.tmp @@ -97,6 +97,12 @@ $port = $config['installedpackages']['freeswitchsettings']['config'][0]['event_s $host = $config['interfaces']['lan']['ipaddr']; $savemsg = $_GET["savemsg"]; + +//if freeswitch is not running then start it +if (!pkg_is_service_running('freeswitch')) { + $handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r"); + pclose($handle); +} ?> diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 7db1903f..8c4c20de 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -78,7 +78,7 @@ http://doc.pfsense.org/index.php/FreeSWITCH http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml http://files.pfsense.org/packages/7/All/ - 0.6.4 + 0.6.5 Beta 1.2.1 markjcrane@gmail.com -- cgit v1.2.3