diff options
author | mcrane <mctch@yahoo.com> | 2009-07-04 04:45:27 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-07-04 04:45:27 -0600 |
commit | 13352163b554be692844c90e0bc6abbb4c77c93d (patch) | |
tree | 98ec432e01094d9c80adbb52a899795d90d5a7e7 /config/freeswitch/freeswitch_gateways_edit.tmp | |
parent | d9f07bd4d5b9c5d69176d7badb07c8310ed38ddf (diff) | |
download | pfsense-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/freeswitch/freeswitch_gateways_edit.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_gateways_edit.tmp | 43 |
1 files changed, 42 insertions, 1 deletions
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 |