diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-07 00:03:05 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-07 00:03:05 +0000 |
commit | b3bcd4c3a8cb24d8bea41add44268639f49f88ae (patch) | |
tree | f95ba524111b744104dedd7cd417660c99e0354f | |
parent | 39637e44e81156b05377bcb6ddcb70314f191781 (diff) | |
download | pfsense-packages-b3bcd4c3a8cb24d8bea41add44268639f49f88ae.tar.gz pfsense-packages-b3bcd4c3a8cb24d8bea41add44268639f49f88ae.tar.bz2 pfsense-packages-b3bcd4c3a8cb24d8bea41add44268639f49f88ae.zip |
pfSense FreeSWITCH package additional file changes
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 54 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch.xml | 8 |
2 files changed, 33 insertions, 29 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 9cfa5446..714005a3 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -1425,6 +1425,17 @@ function freeswitch_php_install_command() exec("mkdir /usr/local/www/freeswitch/"); } + exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/"); + unlink_if_exists("/tmp/freeswitch.tgz"); + + exec("cp /tmp/please_enter_your_pin_number.wav /usr/local/www/freeswitch/please_enter_your_pin_number.wav"); + unlink_if_exists("/tmp/please_enter_your_pin_number.wav"); + + exec("cp /tmp/begin_recording.wav /usr/local/www/freeswitch/begin_recording.wav"); + unlink_if_exists("/tmp/begin_recording.wav"); + + exec("cp /tmp/your_pin_number_is_incorect_goodbye.wav /usr/local/www/freeswitch/your_pin_number_is_incorect_goodbye.wav"); + unlink_if_exists("/tmp/your_pin_number_is_incorect_goodbye.wav"); exec("cp /tmp/freeswitch_cmd.tmp /usr/local/www/freeswitch/freeswitch_cmd.php"); unlink_if_exists("/tmp/freeswitch_cmd.tmp"); @@ -1441,6 +1452,12 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_dialplan_includes_edit.tmp /usr/local/www/freeswitch/freeswitch_dialplan_includes_edit.php"); unlink_if_exists("/tmp/freeswitch_dialplan_includes_edit.tmp"); + exec("cp /tmp/freeswitch_gateways.tmp /usr/local/www/freeswitch/freeswitch_gateways.php"); + unlink_if_exists("/tmp/freeswitch_gateways.tmp"); + + exec("cp /tmp/freeswitch_gateways_edit.tmp /usr/local/www/freeswitch/freeswitch_gateways_edit.php"); + unlink_if_exists("/tmp/freeswitch_gateways_edit.tmp"); + exec("cp /tmp/freeswitch_ivr.tmp /usr/local/www/freeswitch/freeswitch_ivr.php"); unlink_if_exists("/tmp/freeswitch_ivr.tmp"); @@ -1452,6 +1469,12 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_ivr_options_edit.tmp /usr/local/www/freeswitch/freeswitch_ivr_options_edit.php"); unlink_if_exists("/tmp/freeswitch_ivr_options_edit.tmp"); + + exec("cp /tmp/freeswitch_public_includes.tmp /usr/local/www/freeswitch/freeswitch_public_includes.php"); + unlink_if_exists("/tmp/freeswitch_public_includes.tmp"); + + exec("cp /tmp/freeswitch_public_includes_edit.tmp /usr/local/www/freeswitch/freeswitch_public_includes_edit.php"); + unlink_if_exists("/tmp/freeswitch_public_includes_edit.tmp"); exec("cp /tmp/freeswitch_public_includes_details.tmp /usr/local/www/freeswitch/freeswitch_public_includes_details.php"); unlink_if_exists("/tmp/freeswitch_public_includes_details.tmp"); @@ -1459,20 +1482,19 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_public_includes_details_edit.tmp /usr/local/www/freeswitch/freeswitch_public_includes_details_edit.php"); unlink_if_exists("/tmp/freeswitch_public_includes_details_edit.tmp"); - exec("cp /tmp/freeswitch_public_includes.tmp /usr/local/www/freeswitch/freeswitch_public_includes.php"); - unlink_if_exists("/tmp/freeswitch_public_includes.tmp"); - - exec("cp /tmp/freeswitch_public_includes_edit.tmp /usr/local/www/freeswitch/freeswitch_public_includes_edit.php"); - unlink_if_exists("/tmp/freeswitch_public_includes_edit.tmp"); + + exec("cp /tmp/freeswitch_recordings.tmp /usr/local/www/freeswitch/freeswitch_recordings.php"); + unlink_if_exists("/tmp/freeswitch_recordings.tmp"); + exec("cp /tmp/freeswitch_recordings_edit.tmp /usr/local/www/freeswitch/freeswitch_recordings_edit.php"); unlink_if_exists("/tmp/freeswitch_recordings_edit.tmp"); exec("cp /tmp/freeswitch_recordings_play.tmp /usr/local/www/freeswitch/freeswitch_recordings_play.php"); unlink_if_exists("/tmp/freeswitch_recordings_play.tmp"); - exec("cp /tmp/freeswitch_recordings.tmp /usr/local/www/freeswitch/freeswitch_recordings.php"); - unlink_if_exists("/tmp/freeswitch_recordings.tmp"); + exec("cp /tmp/freeswitch_status.tmp /usr/local/www/freeswitch/freeswitch_status.php"); + unlink_if_exists("/tmp/freeswitch_status.tmp"); exec("cp /tmp/freeswitch_time_conditions.tmp /usr/local/www/freeswitch/freeswitch_time_conditions.php"); unlink_if_exists("/tmp/freeswitch_time_conditions.tmp"); @@ -1480,21 +1502,6 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_time_conditions_edit.tmp /usr/local/www/freeswitch/freeswitch_time_conditions_edit.php"); unlink_if_exists("/tmp/freeswitch_time_conditions_edit.tmp"); - exec("cp /tmp/freeswitch_status.tmp /usr/local/www/freeswitch/freeswitch_status.php"); - unlink_if_exists("/tmp/freeswitch_status.tmp"); - - exec("tar zxvf /tmp/freeswitch.tgz -C /usr/local/"); - unlink_if_exists("/tmp/freeswitch.tgz"); - - exec("cp /tmp/please_enter_your_pin_number.wav /usr/local/www/freeswitch/please_enter_your_pin_number.wav"); - unlink_if_exists("/tmp/please_enter_your_pin_number.wav"); - - exec("cp /tmp/begin_recording.wav /usr/local/www/freeswitch/begin_recording.wav"); - unlink_if_exists("/tmp/begin_recording.wav"); - - exec("cp /tmp/your_pin_number_is_incorect_goodbye.wav /usr/local/www/freeswitch/your_pin_number_is_incorect_goodbye.wav"); - unlink_if_exists("/tmp/your_pin_number_is_incorect_goodbye.wav"); - /* freeswitch settings defaults */ if (strlen($config['installedpackages']['freeswitchsettings']['config'][0]['numbering_plan']) == 0) { @@ -1776,9 +1783,6 @@ function freeswitch_php_install_command() $handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r"); pclose($handle); - $cmd = "api reloadxml"; - event_socket_request_cmd($cmd); - unset($cmd); $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.1 revision 10638."; $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.3"; diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index c57b4394..9a3fc852 100644 --- a/packages/freeswitch/freeswitch.xml +++ b/packages/freeswitch/freeswitch.xml @@ -235,22 +235,22 @@ <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes.php</item> + <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes.tmp</item> </additional_files_needed> <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_edit.php</item> + <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_edit.tmp</item> </additional_files_needed> <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_details.php</item> + <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_details.tmp</item> </additional_files_needed> <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_details_edit.php</item> + <item>http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_details_edit.tmp</item> </additional_files_needed> <additional_files_needed> <prefix>/tmp/</prefix> |