diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-11-04 09:10:23 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-11-04 09:10:23 +0000 |
commit | 4941d1603c5205fddac1196b64d9017716f3b302 (patch) | |
tree | 0326d175a48db1f8958ab48855da0b9b9fcf26b6 /packages/freeswitch/freeswitch.inc | |
parent | 2716f5c5716977c220668d919d63c4b57583791c (diff) | |
download | pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.tar.gz pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.tar.bz2 pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.zip |
FreeSWITCH package add commands to status tab and fix minor syntax
Diffstat (limited to 'packages/freeswitch/freeswitch.inc')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 8 |
1 files changed, 6 insertions, 2 deletions
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() /* <description>Optional: Enter the email address to send voicemail to.</description> */ /* <type>input</type> */ /* </field> */ - $tmpxml .= " </params>>\n"; + $tmpxml .= " </params>\n"; $tmpxml .= " <variables>\n"; $tmpxml .= " <variable name=\"toll_allow\" value=\"domestic,international,local\"/>\n"; $tmpxml .= " <variable name=\"accountcode\" value=\"" . $rowhelper['accountcode'] . "\"/>\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"); |