aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch.inc
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-06-13 23:29:14 -0600
committermcrane <mctch@yahoo.com>2009-06-14 00:00:56 -0600
commit87af9fbf3bc1abed07190fe7240fc8193a5f972d (patch)
treee74aee7e6fa4a7f3e3a2778419e4663e10e9a397 /config/freeswitch/freeswitch.inc
parentfd75d753f279e3aa774b0b315193e1589d2ae34d (diff)
downloadpfsense-packages-87af9fbf3bc1abed07190fe7240fc8193a5f972d.tar.gz
pfsense-packages-87af9fbf3bc1abed07190fe7240fc8193a5f972d.tar.bz2
pfsense-packages-87af9fbf3bc1abed07190fe7240fc8193a5f972d.zip
FreeSWITCH package clean up blank recordings, add dialplan default.xml, add dialplan public.xml, adjust wording on setup, and extension pages, create lan profile directory if it doesn't exist, status page add rescan and restart.
Diffstat (limited to 'config/freeswitch/freeswitch.inc')
-rw-r--r--config/freeswitch/freeswitch.inc23
1 files changed, 21 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc
index 6930c31f..a4df2be1 100644
--- a/config/freeswitch/freeswitch.inc
+++ b/config/freeswitch/freeswitch.inc
@@ -264,6 +264,12 @@ function byte_convert( $bytes ) {
function lan_sip_profile()
{
global $config;
+
+ //if the lan directory does not exist then create it
+ if (!is_dir('/usr/local/freeswitch/conf/sip_profiles/lan')) {
+ exec("mkdir /usr/local/freeswitch/conf/sip_profiles/lan/");
+ }
+
//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'];
@@ -2569,7 +2575,7 @@ function sync_package_freeswitch()
function freeswitch_php_install_command()
{
global $config;
- $freeswitch_package_version = "0.9.1.1";
+ $freeswitch_package_version = "0.9.2";
$freeswitch_build_version = "1.0.4 pre 6";
$freeswitch_build_revision = "13238";
@@ -2611,7 +2617,18 @@ function freeswitch_php_install_command()
exec("mkdir /usr/local/freeswitch/storage/fax/receive/");
}
- //make a backup copy of the default config
+ //download the dialplan default.xml
+ exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/dialplan.default.xml");
+ exec("cp /tmp/dialplan.default.xml /usr/local/freeswitch/conf/dialplan/default.xml");
+ unlink_if_exists("/tmp/dialplan.default.xml");
+
+ //download the dialplan public.xml
+ exec("cd /tmp/;fetch http://www.pfsense.com/packages/config/freeswitch/dialplan.public.xml");
+ exec("cp /tmp/dialplan.public.xml /usr/local/freeswitch/conf/dialplan/public.xml");
+ unlink_if_exists("/tmp/dialplan.public.xml");
+
+
+ //make a backup copy of the default config used with the 'Restore Default' buttons on the text areas.
exec("cp -R /usr/local/freeswitch/conf /usr/local/freeswitch/conf.orig");
//remove some default config files that are not needed
@@ -2625,7 +2642,9 @@ function freeswitch_php_install_command()
if (!is_dir('/usr/local/freeswitch/sounds/custom/8000/')) {
exec("mkdir /usr/local/freeswitch/sounds/custom/8000/");
}
+
+
//copy audio files
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");