From 78ac4797c39e9dc7e9c121cc89cdfd40c8a139e8 Mon Sep 17 00:00:00 2001 From: mcrane Date: Thu, 30 Apr 2009 15:51:52 -0600 Subject: FreeSWITCH status if FreeSWITCH is not running then it starts add a sleep to delay processing until it has time to load. --- config/freeswitch/freeswitch_status.tmp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/freeswitch/freeswitch_status.tmp b/config/freeswitch/freeswitch_status.tmp index d64a8980..dbe1c9cb 100644 --- a/config/freeswitch/freeswitch_status.tmp +++ b/config/freeswitch/freeswitch_status.tmp @@ -102,6 +102,8 @@ $savemsg = $_GET["savemsg"]; if (!pkg_is_service_running('freeswitch')) { $handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r"); pclose($handle); + //give freeswitch time to load before processing the rest of the page. + sleep(7); } ?> -- cgit v1.2.3