From 741e581cae3f0bf8712b5cb406925357c3f785ee Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 16 Jan 2009 03:09:58 +0000 Subject: FreeSWITCH package new FreeSWITCH build 1.0.2 Revision revision 11245 added mod_fax to modules tab. --- packages/freeswitch/freeswitch.inc | 20 ++++++++++++++++++-- packages/freeswitch/freeswitch.xml | 17 ++++++++++++++++- packages/freeswitch/freeswitch_modules.xml | 16 ++++++++++++++++ packages/freeswitch/libspandsp.so.1 | Bin 0 -> 1398998 bytes packages/freeswitch/mod_fax.so.1 | Bin 0 -> 80741 bytes packages/freeswitch/mod_shout.so.1 | Bin 0 -> 2147544 bytes 6 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 packages/freeswitch/libspandsp.so.1 create mode 100644 packages/freeswitch/mod_fax.so.1 create mode 100644 packages/freeswitch/mod_shout.so.1 (limited to 'packages') diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc index 531e125a..8f7844db 100644 --- a/packages/freeswitch/freeswitch.inc +++ b/packages/freeswitch/freeswitch.inc @@ -606,6 +606,7 @@ function sync_package_freeswitch_modules() if ($rowhelper['mod_conference'] == "enable"){ $tmpxml .= " \n"; } if ($rowhelper['mod_dptools'] == "enable"){ $tmpxml .= " \n"; } if ($rowhelper['mod_expr'] == "enable"){ $tmpxml .= " \n"; } + if ($rowhelper['mod_fax'] == "enable"){ $tmpxml .= " \n"; } if ($rowhelper['mod_fifo'] == "enable"){ $tmpxml .= " \n"; } if ($rowhelper['mod_voicemail'] == "enable"){ $tmpxml .= " \n"; } if ($rowhelper['mod_limit'] == "enable"){ $tmpxml .= " \n"; } @@ -1674,6 +1675,9 @@ function freeswitch_php_install_command() global $config; conf_mount_rw(); config_lock(); + + //needed for mod_fax support + system('pkg_add -r spandsp'); if (!is_dir('/usr/local/www/freeswitch/')) { exec("mkdir /usr/local/www/freeswitch/"); @@ -1695,6 +1699,15 @@ function freeswitch_php_install_command() exec("cp /tmp/your_pin_number_is_incorect_goodbye.wav /usr/local/freeswitch/recordings/your_pin_number_is_incorect_goodbye.wav"); unlink_if_exists("/tmp/your_pin_number_is_incorect_goodbye.wav"); + + + //rename .so files from .1 to .so + exec("cp /tmp/mod_shout.so.1 /usr/local/freeswitch/mod/mod_shout.so"); + unlink_if_exists("/tmp/mod_shout.so.tmp"); + + exec("cp /tmp/mod_fax.so.1 /usr/local/freeswitch/mod/mod_fax.so"); + unlink_if_exists("/tmp/mod_shout.so.tmp"); + //rename PHP files from .tmp to .php exec("cp /tmp/class.smtp.tmp /usr/local/www/freeswitch/class.smtp.php"); @@ -1995,6 +2008,9 @@ function freeswitch_php_install_command() if (strlen($config['installedpackages']['freeswitchmodules']['config'][0]['mod_expr']) == 0) { $config['installedpackages']['freeswitchmodules']['config'][0]['mod_expr'] = "enable"; } + if (strlen($config['installedpackages']['freeswitchmodules']['config'][0]['mod_fax']) == 0) { + $config['installedpackages']['freeswitchmodules']['config'][0]['mod_fax'] = "enable"; + } if (strlen($config['installedpackages']['freeswitchmodules']['config'][0]['mod_fifo']) == 0) { $config['installedpackages']['freeswitchmodules']['config'][0]['mod_fifo'] = "enable"; } @@ -2151,8 +2167,8 @@ function freeswitch_php_install_command() sync_package_freeswitch_ivr(); } - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.2 revision 11220."; - $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.5.8.8"; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.2 revision 11245."; + $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.6"; conf_mount_ro(); config_unlock(); diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml index c4d76c38..b959d591 100644 --- a/packages/freeswitch/freeswitch.xml +++ b/packages/freeswitch/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.5.8.8 + 0.6 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc @@ -142,6 +142,21 @@ 0755 http://www.pfsense.com/packages/config/freeswitch/libvorbis.so.4 + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/freeswitch/mod_shout.so.1 + + + /tmp/ + 0755 + http://www.pfsense.com/packages/config/freeswitch/mod_fax.so.1 + + + /usr/local/lib/ + 0755 + http://www.pfsense.com/packages/config/freeswitch/libspandsp.so.1 + /tmp/ 0755 diff --git a/packages/freeswitch/freeswitch_modules.xml b/packages/freeswitch/freeswitch_modules.xml index 87ad6a44..91620ac9 100644 --- a/packages/freeswitch/freeswitch_modules.xml +++ b/packages/freeswitch/freeswitch_modules.xml @@ -562,6 +562,22 @@ + + mod_fax + mod_fax + FAX provides fax send and receive. + select + + + + + mod_fifo mod_fifo diff --git a/packages/freeswitch/libspandsp.so.1 b/packages/freeswitch/libspandsp.so.1 new file mode 100644 index 00000000..177b8c22 Binary files /dev/null and b/packages/freeswitch/libspandsp.so.1 differ diff --git a/packages/freeswitch/mod_fax.so.1 b/packages/freeswitch/mod_fax.so.1 new file mode 100644 index 00000000..68bd05d0 Binary files /dev/null and b/packages/freeswitch/mod_fax.so.1 differ diff --git a/packages/freeswitch/mod_shout.so.1 b/packages/freeswitch/mod_shout.so.1 new file mode 100644 index 00000000..26d9b94b Binary files /dev/null and b/packages/freeswitch/mod_shout.so.1 differ -- cgit v1.2.3