aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch/freeswitch_status.tmp
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeswitch/freeswitch_status.tmp')
-rw-r--r--packages/freeswitch/freeswitch_status.tmp6
1 files changed, 6 insertions, 0 deletions
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"); ?>