From e309ede0e6d2ca56f3e1b0c877366a0ae163a29b Mon Sep 17 00:00:00 2001 From: mcrane Date: Wed, 6 May 2009 04:56:05 -0600 Subject: FreeSWITCH package update path to DISA sound files, New FreeSWITCH build rev 13238, add TLS support for Gateways/Providers --- config/freeswitch/freeswitch.inc | 56 +++++++++++++++----------- config/freeswitch/freeswitch.xml | 2 +- config/freeswitch/freeswitch_gateways_edit.tmp | 8 +++- 3 files changed, 41 insertions(+), 25 deletions(-) (limited to 'config/freeswitch') diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc index fd7a2041..4a6546eb 100644 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -535,9 +535,24 @@ function sync_package_freeswitch_gateways() if (strlen($rowhelper['register']) > 0) { $tmpxml .= " \n"; } + if (strlen($rowhelper['register-transport']) > 0) { - $tmpxml .= " \n"; - } + switch ($rowhelper['register-transport']) { + case "udp": + $tmpxml .= " \n"; + break; + case "tcp": + $tmpxml .= " \n"; + break; + case "tls": + $tmpxml .= " \n"; + $tmpxml .= " \n"; + break; + default: + $tmpxml .= " \n"; + } + } + if (strlen($rowhelper['retry-seconds']) > 0) { $tmpxml .= " \n"; } @@ -1695,9 +1710,9 @@ function sync_package_freeswitch() function freeswitch_php_install_command() { global $config; - $freeswitch_package_version = "0.8.5.3"; - $freeswitch_build_version = "1.0.3"; - $freeswitch_build_revision = "12545"; + $freeswitch_package_version = "0.8.5.4"; + $freeswitch_build_version = "1.0.4 pre 6"; + $freeswitch_build_revision = "13238"; //set script execution time limit to 24 hours set_time_limit (86400); @@ -1734,23 +1749,23 @@ function freeswitch_php_install_command() unlink_if_exists("/usr/local/freeswitch/conf/dialplan/default/01_example.com.xml"); unlink_if_exists("/usr/local/freeswitch/conf/dialplan/public/00_inbound_did.xml"); - if (!is_dir('/usr/local/www/packages/freeswitch/sounds/custom/')) { - exec("mkdir /usr/local/www/packages/freeswitch/sounds/custom/"); + if (!is_dir('/usr/local/freeswitch/sounds/custom/')) { + exec("mkdir /usr/local/freeswitch/sounds/custom/"); } - if (!is_dir('/usr/local/www/packages/freeswitch/sounds/custom/8000/')) { - exec("mkdir /usr/local/www/packages/freeswitch/sounds/custom/8000/"); + if (!is_dir('/usr/local/freeswitch/sounds/custom/8000/')) { + exec("mkdir /usr/local/freeswitch/sounds/custom/8000/"); } //copy audio files - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_your_pin_number.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_pin_number.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_extension_number.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_phone_number.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/call_forward_has_been_set.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/call_forward_has_been_deleted.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/begin_recording.wav"); - exec("cd /usr/local/www/packages/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/your_pin_number_is_incorect_goodbye.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_your_pin_number.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_pin_number.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_extension_number.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/please_enter_the_phone_number.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/call_forward_has_been_set.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/call_forward_has_been_deleted.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/begin_recording.wav"); + exec("cd /usr/local/freeswitch/sounds/custom/8000/;fetch http://www.pfsense.com/packages/config/freeswitch/your_pin_number_is_incorect_goodbye.wav"); //download lib files @@ -1763,12 +1778,6 @@ function freeswitch_php_install_command() exec("cd /usr/local/lib/;fetch http://www.pfsense.com/packages/config/freeswitch/libodbc.so.1"); exec("cd /usr/local/lib/;fetch http://www.pfsense.com/packages/config/freeswitch/libiconv.so.3"); - //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_fax.so.tmp"); //download xml package files //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch.inc"); @@ -1780,6 +1789,7 @@ function freeswitch_php_install_command() exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_public.xml"); exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_vars.xml"); + //rename PHP files from .tmp to .php exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/class.smtp.tmp"); exec("cp /tmp/class.smtp.tmp /usr/local/www/packages/freeswitch/class.smtp.php"); diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml index af395a9e..28450fe1 100644 --- a/config/freeswitch/freeswitch.xml +++ b/config/freeswitch/freeswitch.xml @@ -44,7 +44,7 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.8.5.3 + 0.8.5.4 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc diff --git a/config/freeswitch/freeswitch_gateways_edit.tmp b/config/freeswitch/freeswitch_gateways_edit.tmp index adeacff6..d2f52051 100644 --- a/config/freeswitch/freeswitch_gateways_edit.tmp +++ b/config/freeswitch/freeswitch_gateways_edit.tmp @@ -428,15 +428,21 @@ function show_advanced_config() { case "udp": echo " \n"; echo " \n"; + echo " \n"; break; case "tcp": echo " \n"; echo " \n"; - + echo " \n"; + case "tls": + echo " \n"; + echo " \n"; + echo " \n"; break; default: echo " \n"; echo " \n"; + echo " \n"; } echo " \n"; ?> -- cgit v1.2.3