From 13352163b554be692844c90e0bc6abbb4c77c93d Mon Sep 17 00:00:00 2001 From: mcrane Date: Sat, 4 Jul 2009 04:45:27 -0600 Subject: FreeSWITCH package add caller id info to outbound dialplan entry for new gateways. --- config/freeswitch/freeswitch.inc | 2 +- config/freeswitch/freeswitch.xml | 2 +- config/freeswitch/freeswitch_gateways_edit.tmp | 43 +++++++++++++++++++++++++- 3 files changed, 44 insertions(+), 3 deletions(-) (limited to 'config/freeswitch') 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 @@ Describe your package requirements here Currently there are no FAQ items provided. FreeSWITCH Settings - 0.9.4 + 0.9.4.1 FreeSWITCH: Settings /usr/local/pkg/freeswitch.inc 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 -- cgit v1.2.3