From 4d34902d09109f13bc95ee05066fda2b4501a935 Mon Sep 17 00:00:00 2001 From: mcrane Date: Wed, 13 May 2009 12:25:35 -0600 Subject: FreeSWITCH create lan sip profile during install, update dialplan, public, and var textareas, add set to default to the textareas, make the tab menu dynamic so it can be modified from one file rather than having to modify all php files. --- config/freeswitch/freeswitch.inc | 153 ++++++++++++++++--- config/freeswitch/freeswitch.xml | 4 +- config/freeswitch/freeswitch_dialplan.tmp | 163 +++++++++++++++++++++ config/freeswitch/freeswitch_dialplan.xml | 124 ---------------- config/freeswitch/freeswitch_dialplan_includes.tmp | 16 +- .../freeswitch_dialplan_includes_details_edit.tmp | 14 +- .../freeswitch_dialplan_includes_edit.tmp | 14 +- config/freeswitch/freeswitch_extensions.tmp | 14 +- config/freeswitch/freeswitch_extensions_edit.tmp | 14 +- config/freeswitch/freeswitch_features.tmp | 14 +- config/freeswitch/freeswitch_gateways.tmp | 14 +- config/freeswitch/freeswitch_gateways_edit.tmp | 14 +- config/freeswitch/freeswitch_ivr.tmp | 14 +- config/freeswitch/freeswitch_ivr_edit.tmp | 14 +- config/freeswitch/freeswitch_ivr_options_edit.tmp | 14 +- config/freeswitch/freeswitch_modules.xml | 2 +- config/freeswitch/freeswitch_profile_edit.tmp | 28 ++-- config/freeswitch/freeswitch_profiles.tmp | 17 ++- config/freeswitch/freeswitch_public.tmp | 162 ++++++++++++++++++++ config/freeswitch/freeswitch_public.xml | 123 ---------------- config/freeswitch/freeswitch_public_includes.tmp | 16 +- .../freeswitch_public_includes_details_edit.tmp | 14 +- .../freeswitch/freeswitch_public_includes_edit.tmp | 14 +- config/freeswitch/freeswitch_recordings.tmp | 14 +- config/freeswitch/freeswitch_recordings_edit.tmp | 14 +- config/freeswitch/freeswitch_status.tmp | 14 +- config/freeswitch/freeswitch_time_conditions.tmp | 14 +- .../freeswitch/freeswitch_time_conditions_edit.tmp | 14 +- config/freeswitch/freeswitch_vars.tmp | 162 ++++++++++++++++++++ config/freeswitch/freeswitch_vars.xml | 124 ---------------- 30 files changed, 681 insertions(+), 651 deletions(-) create mode 100644 config/freeswitch/freeswitch_dialplan.tmp delete mode 100644 config/freeswitch/freeswitch_dialplan.xml create mode 100644 config/freeswitch/freeswitch_public.tmp delete mode 100644 config/freeswitch/freeswitch_public.xml create mode 100644 config/freeswitch/freeswitch_vars.tmp delete mode 100644 config/freeswitch/freeswitch_vars.xml (limited to 'config/freeswitch') diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc index a9799e9f..37615396 100644 --- a/config/freeswitch/freeswitch.inc +++ b/config/freeswitch/freeswitch.inc @@ -9,9 +9,7 @@ FreeSWITCH (TM) http://www.freeswitch.org/ - */ -/* ========================================================================== */ -/* + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -34,6 +32,73 @@ POSSIBILITY OF SUCH DAMAGE. */ +function build_menu() { + + //$script_name_array = split ("/", $_SERVER["SCRIPT_NAME"]); + //$script_name = $script_name_array[count($script_name_array)-1]; + //echo "script_name: ".$script_name."
"; + + $tab_array = array(); + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/pkg_edit.php?xml=freeswitch.xml&id=0") { $menu_selected = true; } + $tab_array[] = array(gettext("Settings"), $menu_selected, "/pkg_edit.php?xml=freeswitch.xml&id=0"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_dialplan_includes.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_dialplan.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_dialplan_includes_edit.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_dialplan_includes_details_edit.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Dialplan"), $menu_selected, "/packages/freeswitch/freeswitch_dialplan_includes.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_extensions.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_extensions_edit.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Extensions"), $menu_selected, "/packages/freeswitch/freeswitch_extensions.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_features.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_ivr.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_ivr_edit.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_ivr_options_edit.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_recordings.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_recordings_edit.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Features"), $menu_selected, "/packages/freeswitch/freeswitch_features.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_gateways.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_gateways_edit.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Gateways"), $menu_selected, "/packages/freeswitch/freeswitch_gateways.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_profiles.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_profile_edit.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Profiles"), $menu_selected, "/packages/freeswitch/freeswitch_profiles.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_public_includes.php") { $menu_selected = true; } + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_public.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Public"), $menu_selected, "/packages/freeswitch/freeswitch_public_includes.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_status.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Status"), $menu_selected, "/packages/freeswitch/freeswitch_status.php"); + unset($menu_selected); + + $menu_selected = false; + if ($_SERVER["SCRIPT_NAME"] == "/packages/freeswitch/freeswitch_vars.php") { $menu_selected = true; } + $tab_array[] = array(gettext("Vars"), $menu_selected, "/packages/freeswitch/freeswitch_vars.php"); + unset($menu_selected); + + return $tab_array; +} + function guid() { @@ -1707,10 +1772,36 @@ function sync_package_freeswitch() } +function create_lan_sip_profile() +{ + global $config; + //create the LAN profile if it doesn't exist + if (!file_exists('/usr/local/freeswitch/conf/sip_profiles/lan.xml')) { + $lan_ip = $config['interfaces']['lan']['ipaddr']; + + $filename = "/usr/local/freeswitch/conf/sip_profiles/lan.xml"; + $handle = fopen($filename,"rb"); + $contents = fread($handle, filesize($filename)); + fclose($handle); + + $handle = fopen($filename,"w"); + $contents = str_replace("", "", $contents); + $contents = str_replace("", "", $contents); + $contents = str_replace("", "", $contents); + $contents = str_replace("", "", $contents); + $contents = str_replace("", "", $contents); + fwrite($handle, $contents); + unset($contents); + fclose($handle); + unset($filename); + } + +} + function freeswitch_php_install_command() { global $config; - $freeswitch_package_version = "0.8.6.1"; + $freeswitch_package_version = "0.8.7"; $freeswitch_build_version = "1.0.4 pre 6"; $freeswitch_build_revision = "13238"; @@ -1782,12 +1873,12 @@ function freeswitch_php_install_command() //download xml package files //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch.inc"); //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml"); - exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan.xml"); + //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan.xml"); //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_external.xml"); //exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_internal.xml"); exec("cd /usr/local/pkg/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_modules.xml"); - 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"); + //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"); //misc files if (!is_dir('/usr/local/www/edit_area/')) { @@ -1810,6 +1901,10 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_cmd.tmp /usr/local/www/packages/freeswitch/freeswitch_cmd.php"); unlink_if_exists("/tmp/freeswitch_cmd.tmp"); + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan.tmp"); + exec("cp /tmp/freeswitch_dialplan.tmp /usr/local/www/packages/freeswitch/freeswitch_dialplan.php"); + unlink_if_exists("/tmp/freeswitch_dialplan.tmp"); + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan_includes_details.tmp"); exec("cp /tmp/freeswitch_dialplan_includes_details.tmp /usr/local/www/packages/freeswitch/freeswitch_dialplan_includes_details.php"); unlink_if_exists("/tmp/freeswitch_dialplan_includes_details.tmp"); @@ -1821,15 +1916,15 @@ function freeswitch_php_install_command() exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan_includes.tmp"); exec("cp /tmp/freeswitch_dialplan_includes.tmp /usr/local/www/packages/freeswitch/freeswitch_dialplan_includes.php"); unlink_if_exists("/tmp/freeswitch_dialplan_includes.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_dialplan_includes_edit.tmp"); exec("cp /tmp/freeswitch_dialplan_includes_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_dialplan_includes_edit.php"); unlink_if_exists("/tmp/freeswitch_dialplan_includes_edit.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_extensions.tmp"); exec("cp /tmp/freeswitch_extensions.tmp /usr/local/www/packages/freeswitch/freeswitch_extensions.php"); unlink_if_exists("/tmp/freeswitch_extensions.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_extensions_edit.tmp"); exec("cp /tmp/freeswitch_extensions_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_extensions_edit.php"); unlink_if_exists("/tmp/freeswitch_extensions_edit.tmp"); @@ -1837,15 +1932,15 @@ function freeswitch_php_install_command() exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_features.tmp"); exec("cp /tmp/freeswitch_features.tmp /usr/local/www/packages/freeswitch/freeswitch_features.php"); unlink_if_exists("/tmp/freeswitch_features.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_gateways.tmp"); exec("cp /tmp/freeswitch_gateways.tmp /usr/local/www/packages/freeswitch/freeswitch_gateways.php"); unlink_if_exists("/tmp/freeswitch_gateways.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_gateways_edit.tmp"); exec("cp /tmp/freeswitch_gateways_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_gateways_edit.php"); unlink_if_exists("/tmp/freeswitch_gateways_edit.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_ivr.tmp"); exec("cp /tmp/freeswitch_ivr.tmp /usr/local/www/packages/freeswitch/freeswitch_ivr.php"); unlink_if_exists("/tmp/freeswitch_ivr.tmp"); @@ -1853,7 +1948,7 @@ function freeswitch_php_install_command() exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_ivr_edit.tmp"); exec("cp /tmp/freeswitch_ivr_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_ivr_edit.php"); unlink_if_exists("/tmp/freeswitch_ivr_edit.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_ivr_options.tmp"); exec("cp /tmp/freeswitch_ivr_options.tmp /usr/local/www/packages/freeswitch/freeswitch_ivr_options.php"); unlink_if_exists("/tmp/freeswitch_ivr_options.tmp"); @@ -1870,10 +1965,14 @@ function freeswitch_php_install_command() exec("cp /tmp/freeswitch_profile_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_profile_edit.php"); unlink_if_exists("/tmp/freeswitch_profile_edit.tmp"); + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_public.tmp"); + exec("cp /tmp/freeswitch_public.tmp /usr/local/www/packages/freeswitch/freeswitch_public.php"); + unlink_if_exists("/tmp/freeswitch_public.tmp"); + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes.tmp"); exec("cp /tmp/freeswitch_public_includes.tmp /usr/local/www/packages/freeswitch/freeswitch_public_includes.php"); unlink_if_exists("/tmp/freeswitch_public_includes.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_public_includes_edit.tmp"); exec("cp /tmp/freeswitch_public_includes_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_public_includes_edit.php"); unlink_if_exists("/tmp/freeswitch_public_includes_edit.tmp"); @@ -1889,15 +1988,15 @@ function freeswitch_php_install_command() exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_mailto.tmp"); exec("cp /tmp/freeswitch_mailto.tmp /usr/local/www/packages/freeswitch/freeswitch_mailto.php"); unlink_if_exists("/tmp/freeswitch_mailto.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_recordings.tmp"); exec("cp /tmp/freeswitch_recordings.tmp /usr/local/www/packages/freeswitch/freeswitch_recordings.php"); unlink_if_exists("/tmp/freeswitch_recordings.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_recordings_edit.tmp"); exec("cp /tmp/freeswitch_recordings_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_recordings_edit.php"); unlink_if_exists("/tmp/freeswitch_recordings_edit.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_recordings_play.tmp"); exec("cp /tmp/freeswitch_recordings_play.tmp /usr/local/www/packages/freeswitch/freeswitch_recordings_play.php"); unlink_if_exists("/tmp/freeswitch_recordings_play.tmp"); @@ -1905,15 +2004,19 @@ function freeswitch_php_install_command() exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_status.tmp"); exec("cp /tmp/freeswitch_status.tmp /usr/local/www/packages/freeswitch/freeswitch_status.php"); unlink_if_exists("/tmp/freeswitch_status.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_time_conditions.tmp"); exec("cp /tmp/freeswitch_time_conditions.tmp /usr/local/www/packages/freeswitch/freeswitch_time_conditions.php"); unlink_if_exists("/tmp/freeswitch_time_conditions.tmp"); - + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_time_conditions_edit.tmp"); exec("cp /tmp/freeswitch_time_conditions_edit.tmp /usr/local/www/packages/freeswitch/freeswitch_time_conditions_edit.php"); unlink_if_exists("/tmp/freeswitch_time_conditions_edit.tmp"); - + + exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/freeswitch_vars.tmp"); + exec("cp /tmp/freeswitch_vars.tmp /usr/local/www/packages/freeswitch/freeswitch_vars.php"); + unlink_if_exists("/tmp/freeswitch_vars.tmp"); + exec("cd /usr/local/freeswitch/scripts/;fetch http://www.pfsense.com/packages/config/freeswitch/disa.js"); exec("cp /usr/local/freeswitch/htdocs/slim.swf /usr/local/www/packages/freeswitch/slim.swf"); @@ -1957,7 +2060,7 @@ function freeswitch_php_install_command() $xml_rpc_auth_user = $config['installedpackages']['freeswitchsettings']['config'][0]['xml_rpc_auth_user']; $xml_rpc_auth_pass = $config['installedpackages']['freeswitchsettings']['config'][0]['xml_rpc_auth_pass']; $admin_pin = $config['installedpackages']['freeswitchsettings']['config'][0]['admin_pin']; - + //write the recording.js script recording_js(); @@ -2316,15 +2419,17 @@ function freeswitch_php_install_command() system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/sounds/music/8000/'); system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/conf/ssl/'); system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/conf/sip_profiles/'); - //Optional //system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/conf/'); //system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/grammar/'); //system('cd /usr/local; tar xvpfz /root/backup/'.$filename.' freeswitch/htdocs/'); - + unset($filename); } + + //Create the LAN SIP Profile + create_lan_sip_profile(); write_rcfile(array( "file" => "freeswitch.sh", diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml index 3ca8042f..bf4982a6 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.6.1 + 0.8.7 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc @@ -96,7 +96,7 @@ Vars - /pkg_edit.php?xml=freeswitch_vars.xml&id=0 + /packages/freeswitch/freeswitch_vars.php installedpackages->package->$packagename->configuration->freeswitchsettings diff --git a/config/freeswitch/freeswitch_dialplan.tmp b/config/freeswitch/freeswitch_dialplan.tmp new file mode 100644 index 00000000..7c33a28e --- /dev/null +++ b/config/freeswitch/freeswitch_dialplan.tmp @@ -0,0 +1,163 @@ + + + + + + + + + + +

FreeSWITCH: Dialplan

+ +
+ + +
+ +
+ + + + + + +
+ +
+ + + + + + +

Default Dialplan
+
+ The default dialplan is used to setup call destinations based on conditions and context. + You can use the dialplan to send calls to gateways, IVRs, external numbers, to scripts, or any destination. +

+
+
+
+ + +
+
+ + + + + + +
/usr/local/freeswitch/conf/dialplan/default.xml + + + "; + ?> +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+ + + + + + diff --git a/config/freeswitch/freeswitch_dialplan.xml b/config/freeswitch/freeswitch_dialplan.xml deleted file mode 100644 index ef62f844..00000000 --- a/config/freeswitch/freeswitch_dialplan.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - . - All rights reserved. -*/ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ -/* ========================================================================== */ - ]]> - - FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat driven products scaling from a soft-phone up to a soft-switch. It can be used as a simple switching engine, a PBX, a media gateway or a media server to host IVR applications using simple scripts or XML to control the callflow. - Describe your package requirements here - Currently there are no FAQ items provided. - freeswitchdialplan - 0.1 - FreeSWITCH: Dialplan - pkg_edit.php?xml=freeswitch_dialplan.xml&id=0 - /usr/local/pkg/freeswitch.inc - - - Settings - /pkg_edit.php?xml=freeswitch.xml&id=0 - - - Dialplan - /packages/freeswitch/freeswitch_dialplan_includes.php - - - - Extensions - /packages/freeswitch/freeswitch_extensions.php - - - Features - /packages/freeswitch/freeswitch_features.php - - - Gateways - /packages/freeswitch/freeswitch_gateways.php - - - Profiles - /packages/freeswitch/freeswitch_profiles.php - - - Public - /packages/freeswitch/freeswitch_public_includes.php - - - Status - /packages/freeswitch/freeswitch_status.php - - - Vars - /pkg_edit.php?xml=freeswitch_vars.xml&id=0 - - - installedpackages->package->$packagename->configuration->freeswitchdialplan - - - <b>Default Dialplan</b> <br /> <br /> The default dialplan is used to setup call destinations based on conditions and context. You can use the dialplan to send calls to gateways, IVRs, external numbers, to scripts, or any destination. - dialplan_default_xml - <br />Path: /usr/local/freeswitch/conf/dialplan/default.xml <br /><br /> - textarea - base64 - off - 30 - 70 - 33 - - - - - - sync_package_freeswitch_dialplan(); - - - - - - - sync_package_freeswitch_dialplan(); - - \ No newline at end of file diff --git a/config/freeswitch/freeswitch_dialplan_includes.tmp b/config/freeswitch/freeswitch_dialplan_includes.tmp index 7519d052..55379ea5 100644 --- a/config/freeswitch/freeswitch_dialplan_includes.tmp +++ b/config/freeswitch/freeswitch_dialplan_includes.tmp @@ -111,18 +111,8 @@ include("head.inc"); @@ -163,7 +153,7 @@ include("head.inc"); diff --git a/config/freeswitch/freeswitch_dialplan_includes_details_edit.tmp b/config/freeswitch/freeswitch_dialplan_includes_details_edit.tmp index e100ff40..bd719273 100644 --- a/config/freeswitch/freeswitch_dialplan_includes_details_edit.tmp +++ b/config/freeswitch/freeswitch_dialplan_includes_details_edit.tmp @@ -129,18 +129,8 @@ include("head.inc");
- +
diff --git a/config/freeswitch/freeswitch_dialplan_includes_edit.tmp b/config/freeswitch/freeswitch_dialplan_includes_edit.tmp index 491dba21..11ca828b 100644 --- a/config/freeswitch/freeswitch_dialplan_includes_edit.tmp +++ b/config/freeswitch/freeswitch_dialplan_includes_edit.tmp @@ -180,18 +180,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_extensions.tmp b/config/freeswitch/freeswitch_extensions.tmp index a45f1a9c..eea7699e 100644 --- a/config/freeswitch/freeswitch_extensions.tmp +++ b/config/freeswitch/freeswitch_extensions.tmp @@ -60,18 +60,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_extensions_edit.tmp b/config/freeswitch/freeswitch_extensions_edit.tmp index 66cacfd9..deb7a597 100644 --- a/config/freeswitch/freeswitch_extensions_edit.tmp +++ b/config/freeswitch/freeswitch_extensions_edit.tmp @@ -131,18 +131,8 @@ function show_advanced_config() {
diff --git a/config/freeswitch/freeswitch_features.tmp b/config/freeswitch/freeswitch_features.tmp index 4a55c15a..c55e4aa4 100644 --- a/config/freeswitch/freeswitch_features.tmp +++ b/config/freeswitch/freeswitch_features.tmp @@ -60,18 +60,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_gateways.tmp b/config/freeswitch/freeswitch_gateways.tmp index 05ccbf8f..66b30bda 100644 --- a/config/freeswitch/freeswitch_gateways.tmp +++ b/config/freeswitch/freeswitch_gateways.tmp @@ -60,18 +60,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_gateways_edit.tmp b/config/freeswitch/freeswitch_gateways_edit.tmp index f5a54881..28c0a74a 100644 --- a/config/freeswitch/freeswitch_gateways_edit.tmp +++ b/config/freeswitch/freeswitch_gateways_edit.tmp @@ -273,18 +273,8 @@ function show_advanced_config() {
diff --git a/config/freeswitch/freeswitch_ivr.tmp b/config/freeswitch/freeswitch_ivr.tmp index e6dd6a0f..38309ab5 100644 --- a/config/freeswitch/freeswitch_ivr.tmp +++ b/config/freeswitch/freeswitch_ivr.tmp @@ -61,18 +61,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_ivr_edit.tmp b/config/freeswitch/freeswitch_ivr_edit.tmp index e4e8abbf..679f090e 100644 --- a/config/freeswitch/freeswitch_ivr_edit.tmp +++ b/config/freeswitch/freeswitch_ivr_edit.tmp @@ -207,18 +207,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_ivr_options_edit.tmp b/config/freeswitch/freeswitch_ivr_options_edit.tmp index 3d649a3a..1e3313d0 100644 --- a/config/freeswitch/freeswitch_ivr_options_edit.tmp +++ b/config/freeswitch/freeswitch_ivr_options_edit.tmp @@ -115,18 +115,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_modules.xml b/config/freeswitch/freeswitch_modules.xml index 1f14c25e..8c211820 100644 --- a/config/freeswitch/freeswitch_modules.xml +++ b/config/freeswitch/freeswitch_modules.xml @@ -102,7 +102,7 @@ Vars - /pkg_edit.php?xml=freeswitch_vars.xml&id=0 + /packages/freeswitch/freeswitch_vars.php installedpackages->package->$packagename->configuration->freeswitchmodules diff --git a/config/freeswitch/freeswitch_profile_edit.tmp b/config/freeswitch/freeswitch_profile_edit.tmp index b1461dd3..a1faa4de 100644 --- a/config/freeswitch/freeswitch_profile_edit.tmp +++ b/config/freeswitch/freeswitch_profile_edit.tmp @@ -1,12 +1,12 @@ @@ -119,7 +109,9 @@ function sf() { document.forms[0].savetopath.focus(); }
/usr/local/freeswitch/conf/sip_profiles/ - + "; + ?>
diff --git a/config/freeswitch/freeswitch_profiles.tmp b/config/freeswitch/freeswitch_profiles.tmp index da57b249..9bcbd48d 100644 --- a/config/freeswitch/freeswitch_profiles.tmp +++ b/config/freeswitch/freeswitch_profiles.tmp @@ -1,12 +1,12 @@ + + + + + + + + + +

FreeSWITCH: Public

+ +
+ + +
+ +
+ + + + + + +
+ +
+ + + + + + +

Public
+
+ Directs inbound calls to extensions, IVRs, external numbers, and scripts. +

+
+
+
+ + +
+
+ + + + + + +
/usr/local/freeswitch/conf/dialplan/public.xml + + + "; + ?> +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+ + + + + + diff --git a/config/freeswitch/freeswitch_public.xml b/config/freeswitch/freeswitch_public.xml deleted file mode 100644 index 5db5aa1b..00000000 --- a/config/freeswitch/freeswitch_public.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - ]]> - - FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat driven products scaling from a soft-phone up to a soft-switch. It can be used as a simple switching engine, a PBX, a media gateway or a media server to host IVR applications using simple scripts or XML to control the callflow. - Describe your package requirements here - Currently there are no FAQ items provided. - freeswitchpublic - 0.1 - FreeSWITCH: Public - pkg_edit.php?xml=freeswitch_public.xml&id=0 - /usr/local/pkg/freeswitch.inc - - - Settings - /pkg_edit.php?xml=freeswitch.xml&id=0 - - - Dialplan - /packages/freeswitch/freeswitch_dialplan_includes.php - - - Extensions - /packages/freeswitch/freeswitch_extensions.php - - - Features - /packages/freeswitch/freeswitch_features.php - - - Gateways - /packages/freeswitch/freeswitch_gateways.php - - - Profiles - /packages/freeswitch/freeswitch_profiles.php - - - Public - /packages/freeswitch/freeswitch_public_includes.php - - - - Status - /packages/freeswitch/freeswitch_status.php - - - Vars - /pkg_edit.php?xml=freeswitch_vars.xml&id=0 - - - installedpackages->package->$packagename->configuration->freeswitchpublic - - - <b>Public</b> <br /> <br />Directs inbound calls to extensions, IVRs, external numbers, and scripts. - public_xml - <br />Path: /usr/local/freeswitch/conf/dialplan/public.xml <br /><br /> - textarea - base64 - off - 30 - 70 - 33 - - - - - - sync_package_freeswitch_public(); - - - - - - - sync_package_freeswitch_public(); - - \ No newline at end of file diff --git a/config/freeswitch/freeswitch_public_includes.tmp b/config/freeswitch/freeswitch_public_includes.tmp index 09c6c8bb..5b32e710 100644 --- a/config/freeswitch/freeswitch_public_includes.tmp +++ b/config/freeswitch/freeswitch_public_includes.tmp @@ -113,18 +113,8 @@ include("head.inc"); @@ -165,7 +155,7 @@ include("head.inc"); diff --git a/config/freeswitch/freeswitch_public_includes_details_edit.tmp b/config/freeswitch/freeswitch_public_includes_details_edit.tmp index 2b5068cb..30d07f99 100644 --- a/config/freeswitch/freeswitch_public_includes_details_edit.tmp +++ b/config/freeswitch/freeswitch_public_includes_details_edit.tmp @@ -129,18 +129,8 @@ include("head.inc");
- +
diff --git a/config/freeswitch/freeswitch_public_includes_edit.tmp b/config/freeswitch/freeswitch_public_includes_edit.tmp index d045290e..3e0644c3 100644 --- a/config/freeswitch/freeswitch_public_includes_edit.tmp +++ b/config/freeswitch/freeswitch_public_includes_edit.tmp @@ -182,18 +182,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_recordings.tmp b/config/freeswitch/freeswitch_recordings.tmp index a5081993..15f3be5e 100644 --- a/config/freeswitch/freeswitch_recordings.tmp +++ b/config/freeswitch/freeswitch_recordings.tmp @@ -158,18 +158,8 @@ function EvalSound(soundobj) {
diff --git a/config/freeswitch/freeswitch_recordings_edit.tmp b/config/freeswitch/freeswitch_recordings_edit.tmp index 4d7f565d..1e38d616 100644 --- a/config/freeswitch/freeswitch_recordings_edit.tmp +++ b/config/freeswitch/freeswitch_recordings_edit.tmp @@ -107,18 +107,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_status.tmp b/config/freeswitch/freeswitch_status.tmp index 67107d3e..20e286ca 100644 --- a/config/freeswitch/freeswitch_status.tmp +++ b/config/freeswitch/freeswitch_status.tmp @@ -127,18 +127,8 @@ if ($savemsg) {
diff --git a/config/freeswitch/freeswitch_time_conditions.tmp b/config/freeswitch/freeswitch_time_conditions.tmp index 69da11a0..17787ad3 100644 --- a/config/freeswitch/freeswitch_time_conditions.tmp +++ b/config/freeswitch/freeswitch_time_conditions.tmp @@ -62,18 +62,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_time_conditions_edit.tmp b/config/freeswitch/freeswitch_time_conditions_edit.tmp index bd9bb261..45631929 100644 --- a/config/freeswitch/freeswitch_time_conditions_edit.tmp +++ b/config/freeswitch/freeswitch_time_conditions_edit.tmp @@ -114,18 +114,8 @@ include("head.inc");
diff --git a/config/freeswitch/freeswitch_vars.tmp b/config/freeswitch/freeswitch_vars.tmp new file mode 100644 index 00000000..00f2caca --- /dev/null +++ b/config/freeswitch/freeswitch_vars.tmp @@ -0,0 +1,162 @@ + + + + + + + + + + +

FreeSWITCH: Variables

+ +
+
+ +
+ +
+ + + + + + +
+ +
+ + + + + + +

Variables
+
+ Define preprocessor variables here. Can be accessed in the xml configation with $${var_name}. +

+
+
+
+ + +
+
+ + + + + + +
/usr/local/freeswitch/conf/vars.xml + + + "; + ?> +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ + + + + + + + diff --git a/config/freeswitch/freeswitch_vars.xml b/config/freeswitch/freeswitch_vars.xml deleted file mode 100644 index da90b3bc..00000000 --- a/config/freeswitch/freeswitch_vars.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ -/* ========================================================================== */ - ]]> - - FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat driven products scaling from a soft-phone up to a soft-switch. It can be used as a simple switching engine, a PBX, a media gateway or a media server to host IVR applications using simple scripts or XML to control the callflow. - Describe your package requirements here - Currently there are no FAQ items provided. - freeswitchvars - 0.1 - FreeSWITCH: Vars - pkg_edit.php?xml=freeswitch_vars.xml&id=0 - /usr/local/pkg/freeswitch.inc - - - Settings - /pkg_edit.php?xml=freeswitch.xml&id=0 - - - Dialplan - /packages/freeswitch/freeswitch_dialplan_includes.php - - - Extensions - /packages/freeswitch/freeswitch_extensions.php - - - Features - /packages/freeswitch/freeswitch_features.php - - - Gateways - /packages/freeswitch/freeswitch_gateways.php - - - Profiles - /packages/freeswitch/freeswitch_profiles.php - - - Public - /packages/freeswitch/freeswitch_public_includes.php - - - Status - /packages/freeswitch/freeswitch_status.php - - - Vars - /pkg_edit.php?xml=freeswitch_vars.xml&id=0 - - - - installedpackages->package->$packagename->configuration->freeswitchvars - - - <b>Vars</b> <br /> <br />Define preprocessor variables here. Can be accessed in the xml configation with $${var_name}. - vars_xml - <br />Path: /usr/local/freeswitch/conf/vars.xml <br /><br /> - textarea - base64 - off - 30 - 70 - 33 - - - - - - sync_package_freeswitch_vars(); - - - - - - - sync_package_freeswitch_vars(); - - \ No newline at end of file -- cgit v1.2.3