aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-16 01:55:10 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-16 01:55:10 +0000
commit0d254bdc4b88f3177cb79e645d2f624dccd95397 (patch)
treeccbf8d3cdb8aca7e7a423eedcbbe12259bec2d1e /packages
parentcdd20544f06557fb240efd747d4eaa761c71e7c3 (diff)
downloadpfsense-packages-0d254bdc4b88f3177cb79e645d2f624dccd95397.tar.gz
pfsense-packages-0d254bdc4b88f3177cb79e645d2f624dccd95397.tar.bz2
pfsense-packages-0d254bdc4b88f3177cb79e645d2f624dccd95397.zip
FreeSWITCH package allow more time for socket connection, improve install, remove default example provider.
Diffstat (limited to 'packages')
-rw-r--r--packages/freeswitch/freeswitch.inc22
-rw-r--r--packages/freeswitch/freeswitch.xml2
2 files changed, 16 insertions, 8 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc
index 76621e7b..5ec8e7ce 100644
--- a/packages/freeswitch/freeswitch.inc
+++ b/packages/freeswitch/freeswitch.inc
@@ -89,7 +89,7 @@ function event_socket_create($host, $port, $password)
if (strlen($interface_ip_address) > 0) {
- $fp = fsockopen($interface_ip_address, $port, $errno, $errdesc, 1);
+ $fp = fsockopen($interface_ip_address, $port, $errno, $errdesc, 3);
socket_set_blocking($fp,false);
if (!$fp) {
@@ -1728,10 +1728,8 @@ function freeswitch_php_install_command()
$a_dialplan_include_details[] = $ent;
unset($ent);
- write_config();
- sync_package_freeswitch_dialplan_includes();
- unset($dialplanincludeid);
-
+ write_config();
+
$fout = fopen("/usr/local/freeswitch/conf/autoload_configs/event_socket.conf.xml","w");
$tmpxml = "<configuration name=\"event_socket.conf\" description=\"Socket Client\">\n";
@@ -1957,7 +1955,17 @@ function freeswitch_php_install_command()
);
exec("rm -R /freeswitch");
-
+ exec("cp /usr/local/freeswitch/conf/directory/default/brian.xml /usr/local/freeswitch/conf/directory/default/brian.xml.noload");
+ unlink_if_exists("/usr/local/freeswitch/conf/directory/default/brian.xml");
+ unlink_if_exists("/usr/local/freeswitch/conf/directory/default/example.com.xml");
+
+ write_rcfile(array(
+ "file" => "freeswitch.sh",
+ "start" => "/usr/local/freeswitch/bin/./freeswitch -nc",
+ "stop" => "/usr/local/freeswitch/bin/./freeswitch -stop"
+ )
+ );
+
sync_package_freeswitch();
$handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r");
pclose($handle);
@@ -1967,7 +1975,7 @@ function freeswitch_php_install_command()
}
$config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.1 revision 10638.";
- $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.6";
+ $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.7";
conf_mount_ro();
diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml
index 56c4d584..b59a35a6 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.4.6</version>
+ <version>0.4.7</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>