From 4941d1603c5205fddac1196b64d9017716f3b302 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 4 Nov 2008 09:10:23 +0000 Subject: FreeSWITCH package add commands to status tab and fix minor syntax --- packages/freeswitch/freeswitch.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/freeswitch/freeswitch.inc') diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index cfbe2ab8..83c169f2 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -277,7 +277,7 @@ function sync_package_freeswitch_extensions() /* Optional: Enter the email address to send voicemail to. */ /* input */ /* */ - $tmpxml .= " >\n"; + $tmpxml .= " \n"; $tmpxml .= " \n"; $tmpxml .= " \n"; $tmpxml .= " \n"; @@ -667,6 +667,9 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_status.tmp /usr/local/www/freeswitch/freeswitch_status.php"); unlink_if_exists("/tmp/freeswitch_status.tmp"); + exec("cp /tmp/freeswitch_cmd.tmp /usr/local/www/freeswitch/freeswitch_cmd.php"); + unlink_if_exists("/tmp/freeswitch_cmd.tmp"); + exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/"); unlink_if_exists("/tmp/freeswitch.tgz"); @@ -931,7 +934,8 @@ function freeswitch_deinstall_command() unlink_if_exists("/usr/local/pkg/freeswitch_modules.xml"); unlink_if_exists("/usr/local/pkg/freeswitch_public.xml"); unlink_if_exists("/usr/local/pkg/freeswitch_vars.xml"); - unlink_if_exists("/usr/local/www/freeswitch/freeswitch_status.xml"); + unlink_if_exists("/usr/local/www/freeswitch/freeswitch_status.xml"); + unlink_if_exists("/usr/local/www/freeswitch/freeswitch_cmd.xml"); exec("rm -R /usr/local/freeswitch/"); exec("rm -R /usr/local/www/freeswitch/"); unlink_if_exists("/usr/local/etc/rc.d/freeswitch.sh"); -- cgit v1.2.3