diff options
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 22 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch.xml | 2 | ||||
-rw-r--r-- | pkg_config.7.xml | 2 |
3 files changed, 17 insertions, 9 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> diff --git a/pkg_config.7.xml b/pkg_config.7.xml index a4a84113..3febe4ff 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -66,7 +66,7 @@ <pkginfolink>http://forum.pfsense.org/index.php/topic,11930.0.html</pkginfolink> <config_file>http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml</config_file> <depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url> - <version>0.4.6</version> + <version>0.4.7</version> <status>Beta</status> <required_version>1.2.1</required_version> <maintainer>markjcrane@gmail.com</maintainer> |