aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeswitch')
-rw-r--r--config/freeswitch/freeswitch.inc23
-rw-r--r--config/freeswitch/freeswitch.xml4
-rw-r--r--config/freeswitch/freeswitch_extensions_edit.tmp2
-rw-r--r--config/freeswitch/freeswitch_recordings.tmp10
-rw-r--r--config/freeswitch/freeswitch_status.tmp8
5 files changed, 40 insertions, 7 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");
diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml
index 9b4f2d2d..c786a41b 100644
--- a/config/freeswitch/freeswitch.xml
+++ b/config/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.9.1.1</version>
+ <version>0.9.2</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
@@ -120,7 +120,7 @@
<field>
<fielddescr>Default Gateway</fielddescr>
<fieldname>default_gateway</fieldname>
- <description>Enter the default gateway name here. example: asterlink.com</description>
+ <description>Enter the default gateway name here.</description>
<type>input</type>
</field>
<field>
diff --git a/config/freeswitch/freeswitch_extensions_edit.tmp b/config/freeswitch/freeswitch_extensions_edit.tmp
index 5cedd96d..636a548f 100644
--- a/config/freeswitch/freeswitch_extensions_edit.tmp
+++ b/config/freeswitch/freeswitch_extensions_edit.tmp
@@ -159,7 +159,7 @@ display_top_tabs(build_menu());
<td width="25%" valign="top" class="vncellreq">Extension</td>
<td width="75%" class="vtable">
<input name="extension" type="text" class="formfld unknown" id="extension" size="40" value="<?=htmlspecialchars($pconfig['extension']);?>">
- <br><span class="vexpl">Enter the extension here. The default configuration expects extension numbers between 1000 -1019. To use 3 digit extensions adjust the dialplan 'default.xml' under name="Local_Extension" change the regular expression="^(10[01][0-9])$" to expression="^(\d{3})$".<br></span>
+ <br><span class="vexpl">Enter the extension here. The default configuration 3 or 4 digit extensions.<br></span>
</td>
</tr>
<tr>
diff --git a/config/freeswitch/freeswitch_recordings.tmp b/config/freeswitch/freeswitch_recordings.tmp
index 15f3be5e..7d504d15 100644
--- a/config/freeswitch/freeswitch_recordings.tmp
+++ b/config/freeswitch/freeswitch_recordings.tmp
@@ -320,6 +320,7 @@ if ($config_change == 1) {
$i = 0;
if (count($a_recordings) > 0) {
foreach ($a_recordings as $recordingent) {
+ if (strlen($recordingent['filename']) > 0) {
?>
<tr>
<td class="listlr" ondblclick="document.location='freeswitch_recordings_edit.php?id=<?=$i;?>'">
@@ -345,7 +346,14 @@ if ($config_change == 1) {
</td>
</tr>
<?php
- $i++;
+ }
+ else {
+ //clean up blank entries
+ unset($a_recordings[$i]);
+ write_config();
+ }
+
+ $i++;
} //end for each
} //end count
?>
diff --git a/config/freeswitch/freeswitch_status.tmp b/config/freeswitch/freeswitch_status.tmp
index 413fbbbd..4fa4181a 100644
--- a/config/freeswitch/freeswitch_status.tmp
+++ b/config/freeswitch/freeswitch_status.tmp
@@ -195,7 +195,13 @@ foreach (ListFiles('/usr/local/freeswitch/conf/sip_profiles') as $key=>$sip_prof
echo "<td width='50%' align='right'>\n";
echo " <input type='button' value='start' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+start';\" />\n";
echo " <input type='button' value='stop' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+stop';\" />\n";
- echo " <input type='button' value='flush_inbound_reg' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+flush_inbound_reg';\" />\n";
+ echo " <input type='button' value='restart' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+restart';\" />\n";
+ if ($sip_profile_name == "external") {
+ echo " <input type='button' value='rescan' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+rescan';\" />\n";
+ }
+ else {
+ echo " <input type='button' value='flush_inbound_reg' onclick=\"document.location.href='/packages/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+".$sip_profile_name."+flush_inbound_reg';\" />\n";
+ }
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";