aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2009-01-29 20:34:36 +0000
committerMark Crane <mcrane@pfsense.org>2009-01-29 20:34:36 +0000
commit05ab46353f2460d272082cc43a41c99f5fdc4637 (patch)
tree2dbbc2ef9c8f94485ce4b064af82d5f5b10dc395 /packages/freeswitch
parent975eda5b2e920f63c069f351580b8138a01d13b9 (diff)
downloadpfsense-packages-05ab46353f2460d272082cc43a41c99f5fdc4637.tar.gz
pfsense-packages-05ab46353f2460d272082cc43a41c99f5fdc4637.tar.bz2
pfsense-packages-05ab46353f2460d272082cc43a41c99f5fdc4637.zip
FreeSWITCH package check to see if the FreeSWITCH service is running before displaying the 'Status' tab start it automatically if it is not started.
Diffstat (limited to 'packages/freeswitch')
-rw-r--r--packages/freeswitch/freeswitch.inc2
-rw-r--r--packages/freeswitch/freeswitch.xml2
-rw-r--r--packages/freeswitch/freeswitch_status.tmp6
3 files changed, 8 insertions, 2 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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.6.3</version>
+ <version>0.6.5</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
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);
+}
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php include("fbegin.inc"); ?>