aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-04 04:45:27 -0600
committermcrane <mctch@yahoo.com>2009-07-04 04:45:27 -0600
commit13352163b554be692844c90e0bc6abbb4c77c93d (patch)
tree98ec432e01094d9c80adbb52a899795d90d5a7e7 /config
parentd9f07bd4d5b9c5d69176d7badb07c8310ed38ddf (diff)
downloadpfsense-packages-13352163b554be692844c90e0bc6abbb4c77c93d.tar.gz
pfsense-packages-13352163b554be692844c90e0bc6abbb4c77c93d.tar.bz2
pfsense-packages-13352163b554be692844c90e0bc6abbb4c77c93d.zip
FreeSWITCH package add caller id info to outbound dialplan entry for new gateways.
Diffstat (limited to 'config')
-rw-r--r--config/freeswitch/freeswitch.inc2
-rw-r--r--config/freeswitch/freeswitch.xml2
-rw-r--r--config/freeswitch/freeswitch_gateways_edit.tmp43
3 files changed, 44 insertions, 3 deletions
diff --git a/config/freeswitch/freeswitch.inc b/config/freeswitch/freeswitch.inc
index 9e4f0627..3e39d417 100644
--- a/config/freeswitch/freeswitch.inc
+++ b/config/freeswitch/freeswitch.inc
@@ -2644,7 +2644,7 @@ function sync_package_freeswitch()
function freeswitch_php_install_command()
{
global $config;
- $freeswitch_package_version = "0.9.4";
+ $freeswitch_package_version = "0.9.4.1";
$freeswitch_build_version = "1.0.4 pre 8";
$freeswitch_build_revision = "13784";
diff --git a/config/freeswitch/freeswitch.xml b/config/freeswitch/freeswitch.xml
index 2d58fd83..d9fb2346 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.4</version>
+ <version>0.9.4.1</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
diff --git a/config/freeswitch/freeswitch_gateways_edit.tmp b/config/freeswitch/freeswitch_gateways_edit.tmp
index 73792c1a..c51ad5fe 100644
--- a/config/freeswitch/freeswitch_gateways_edit.tmp
+++ b/config/freeswitch/freeswitch_gateways_edit.tmp
@@ -232,7 +232,48 @@ if ($_POST) {
$ent['fieldorder'] = '000';
$a_dialplan_include_details[] = $ent;
unset($ent);
-
+
+ if (strlen($effective_caller_id_name) > 0) {
+ $ent = array();
+ $ent['dialplanincludeid'] = $dialplanincludeid;
+ $ent['tag'] = 'action'; //condition, action, antiaction
+ $ent['fieldtype'] = 'set';
+ $ent['fielddata'] = 'effective_caller_id_name='.$effective_caller_id_name;
+ $ent['fieldorder'] = '001';
+ $a_dialplan_include_details[] = $ent;
+ unset($ent);
+ }
+ if (strlen($effective_caller_id_number) > 0) {
+ $ent = array();
+ $ent['dialplanincludeid'] = $dialplanincludeid;
+ $ent['tag'] = 'action'; //condition, action, antiaction
+ $ent['fieldtype'] = 'set';
+ $ent['fielddata'] = 'effective_caller_id_number='.$effective_caller_id_number;
+ $ent['fieldorder'] = '001';
+ $a_dialplan_include_details[] = $ent;
+ unset($ent);
+ }
+ if (strlen($outbound_caller_id_name) > 0) {
+ $ent = array();
+ $ent['dialplanincludeid'] = $dialplanincludeid;
+ $ent['tag'] = 'action'; //condition, action, antiaction
+ $ent['fieldtype'] = 'set';
+ $ent['fielddata'] = 'outbound_caller_id_name='.$outbound_caller_id_name;
+ $ent['fieldorder'] = '001';
+ $a_dialplan_include_details[] = $ent;
+ unset($ent);
+ }
+ if (strlen($outbound_caller_id_number) > 0) {
+ $ent = array();
+ $ent['dialplanincludeid'] = $dialplanincludeid;
+ $ent['tag'] = 'action'; //condition, action, antiaction
+ $ent['fieldtype'] = 'set';
+ $ent['fielddata'] = 'outbound_caller_id_number='.$outbound_caller_id_number;
+ $ent['fieldorder'] = '001';
+ $a_dialplan_include_details[] = $ent;
+ unset($ent);
+ }
+
$ent = array();
$ent['dialplanincludeid'] = $dialplanincludeid;
$ent['tag'] = 'action'; //condition, action, antiaction