aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeswitch')
-rw-r--r--packages/freeswitch/freeswitch.inc20
-rw-r--r--packages/freeswitch/freeswitch.xml17
-rw-r--r--packages/freeswitch/freeswitch_modules.xml16
-rw-r--r--packages/freeswitch/libspandsp.so.1bin0 -> 1398998 bytes
-rw-r--r--packages/freeswitch/mod_fax.so.1bin0 -> 80741 bytes
-rw-r--r--packages/freeswitch/mod_shout.so.1bin0 -> 2147544 bytes
6 files changed, 50 insertions, 3 deletions
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 .= " <load module=\"mod_conference\"/>\n"; }
if ($rowhelper['mod_dptools'] == "enable"){ $tmpxml .= " <load module=\"mod_dptools\"/>\n"; }
if ($rowhelper['mod_expr'] == "enable"){ $tmpxml .= " <load module=\"mod_expr\"/>\n"; }
+ if ($rowhelper['mod_fax'] == "enable"){ $tmpxml .= " <load module=\"mod_fax\"/>\n"; }
if ($rowhelper['mod_fifo'] == "enable"){ $tmpxml .= " <load module=\"mod_fifo\"/>\n"; }
if ($rowhelper['mod_voicemail'] == "enable"){ $tmpxml .= " <load module=\"mod_voicemail\"/>\n"; }
if ($rowhelper['mod_limit'] == "enable"){ $tmpxml .= " <load module=\"mod_limit\"/>\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 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.5.8.8</version>
+ <version>0.6</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
@@ -144,6 +144,21 @@
</additional_files_needed>
<additional_files_needed>
<prefix>/tmp/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freeswitch/mod_shout.so.1</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/tmp/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freeswitch/mod_fax.so.1</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/lib/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.com/packages/config/freeswitch/libspandsp.so.1</item>
+ </additional_files_needed>
+ <additional_files_needed>
+ <prefix>/tmp/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/freeswitch/please_enter_your_pin_number.wav</item>
</additional_files_needed>
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
@@ -563,6 +563,22 @@
</options>
</field>
<field>
+ <fielddescr>mod_fax</fielddescr>
+ <fieldname>mod_fax</fieldname>
+ <description>FAX provides fax send and receive.</description>
+ <type>select</type>
+ <options>
+ <option>
+ <name>enable</name>
+ <value>enable</value>
+ </option>
+ <option>
+ <name>disable</name>
+ <value>disable</value>
+ </option>
+ </options>
+ </field>
+ <field>
<fielddescr>mod_fifo</fielddescr>
<fieldname>mod_fifo</fieldname>
<description>FIFO provides custom call queues including call park.</description>
diff --git a/packages/freeswitch/libspandsp.so.1 b/packages/freeswitch/libspandsp.so.1
new file mode 100644
index 00000000..177b8c22
--- /dev/null
+++ b/packages/freeswitch/libspandsp.so.1
Binary files differ
diff --git a/packages/freeswitch/mod_fax.so.1 b/packages/freeswitch/mod_fax.so.1
new file mode 100644
index 00000000..68bd05d0
--- /dev/null
+++ b/packages/freeswitch/mod_fax.so.1
Binary files differ
diff --git a/packages/freeswitch/mod_shout.so.1 b/packages/freeswitch/mod_shout.so.1
new file mode 100644
index 00000000..26d9b94b
--- /dev/null
+++ b/packages/freeswitch/mod_shout.so.1
Binary files differ