From 70b727db4c0ad2ae8ba66c89e59ad530bed67a71 Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 28 Sep 2017 22:48:03 -0400 Subject: [PATCH] Update y000000000056.cfg --- .../provision/yealink/t56a/y000000000056.cfg | 96 +++++++++++++------ 1 file changed, 67 insertions(+), 29 deletions(-) diff --git a/resources/templates/provision/yealink/t56a/y000000000056.cfg b/resources/templates/provision/yealink/t56a/y000000000056.cfg index 5c9b773269..442625cb84 100644 --- a/resources/templates/provision/yealink/t56a/y000000000056.cfg +++ b/resources/templates/provision/yealink/t56a/y000000000056.cfg @@ -65,11 +65,12 @@ network.dhcp.server_mac2 = ## VLAN ## ####################################################################################### static.network.vlan.internet_port_enable = -static.network.vlan.internet_port_vid = -static.network.vlan.internet_port_priority = +{if isset($yealink_vlan_enable)}static.network.vlan.internet_port_enable = {$yealink_vlan_enable}{else}static.network.vlan.internet_port_enable = 0{/if} +static.network.vlan.internet_port_vid = {$yealink_vlan_id} +static.network.vlan.internet_port_priority = {$yealink_vlan_cos} static.network.vlan.pc_port_enable = -static.network.vlan.pc_port_vid = -static.network.vlan.pc_port_priority = +static.network.vlan.pc_port_vid = {$yealink_vlan_pc_id} +static.network.vlan.pc_port_priority = {$yealink_vlan_pc_cos} static.network.vlan.dhcp_enable = static.network.vlan.dhcp_option = ##It configures LLDP or manually VLAN can't obtain IP, whether to switch to other methods of VLAN or closed VLAN to get IP @@ -226,9 +227,9 @@ static.auto_provision.weekly.end_time = ####################################################################################### ## Autop URL ## ####################################################################################### -static.auto_provision.server.url = -static.auto_provision.server.username = -static.auto_provision.server.password = +static.auto_provision.server.url = {$yealink_provision_url} +static.auto_provision.server.username = {$http_auth_username} +static.auto_provision.server.password = {$http_auth_password} ####################################################################################### ## Autop AES Key ## @@ -301,7 +302,7 @@ static.watch_dog.enable = ## SIP Advanced ## ####################################################################################### sip.use_23_as_pound = -sip.rfc2543_hold = +sip.rfc2543_hold = {$yealink_rfc2543_hold} sip.use_out_bound_in_dialog = sip.reg_surge_prevention = sip.send_response_by_request = @@ -309,8 +310,9 @@ sip.notify_reboot_enable = sip.disp_incall_to_info = sip.limit_server_name = sip.limit_server_reason = -sip.listen_port = -sip.tls_listen_port = +{if isset($yealink_sip_listen_port)}sip.listen_port = {$yealink_sip_listen_port}{else}sip.listen_port = 5060{/if} +#sip.tls_listen_port = +{if isset($yealink_sip_listen_port)}sip.tls_listen_port = {$yealink_sip_listen_port}{else}sip.tls_listen_port = 5061{/if} sip.trust_ctrl = sip.nat_stun.enable = sip.nat_stun.server = @@ -507,8 +509,44 @@ dialplan_replace_rule.url = ###remote_phonebook.data.X.url = ###remote_phonebook.data.X.name = -remote_phonebook.data.1.url = -remote_phonebook.data.1.name = +{if isset($yealink_remote_phonebook_1_url) } +remote_phonebook.data.1.url = {$yealink_remote_phonebook_1_url} +{else} +remote_phonebook.data.1.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=users +{/if} +{if isset($yealink_remote_phonebook_1_name) } +remote_phonebook.data.1.name = {$yealink_remote_phonebook_1_name} +{else} +remote_phonebook.data.1.name = Users +{/if} + +{if isset($yealink_remote_phonebook_2_name) } +remote_phonebook.data.2.name = {$yealink_remote_phonebook_2_name} +{else} +remote_phonebook.data.2.name = Groups +{/if} +{if isset($yealink_remote_phonebook_2_url) } +remote_phonebook.data.2.url = {$yealink_remote_phonebook_2_url} +{else} +remote_phonebook.data.2.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=groups +{/if} + +{if isset($yealink_remote_phonebook_3_name) } +remote_phonebook.data.3.name = {$yealink_remote_phonebook_3_name} +{else} +remote_phonebook.data.3.name = Extensions +{/if} +{if isset($yealink_remote_phonebook_3_url) } +remote_phonebook.data.3.url = {$yealink_remote_phonebook_3_url} +{else} +remote_phonebook.data.3.url = http://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}/app/provision/?file=directory.xml&contacts=extensions +{/if} + +remote_phonebook.data.4.name = {$yealink_remote_phonebook_4_name} +remote_phonebook.data.4.url = {$yealink_remote_phonebook_4_url} + +remote_phonebook.data.5.name = {$yealink_remote_phonebook_5_name} +remote_phonebook.data.5.url = {$yealink_remote_phonebook_5_url} remote_phonebook.display_name = ###It enables or disables the phone to update the data of the remote phone book at a time when accessing the remote phone book. @@ -530,77 +568,77 @@ features.remote_phonebook.flash_time = ####################################################################################### ##It enables or disables LDAP feature.0-Disabled,1-Enabled. ##The default value is 0. -ldap.enable = +ldap.enable = {$ldap_enable} ##It configures the criteria for searching the contact name attributes. ##Example:ldap.name_filter = (|(cn=%)(sn=%)). ##The default value is blank. -ldap.name_filter = +ldap.name_filter = {$ldap_name_filter} ##It configures the criteria for searching the contact number attributes. ##Example:ldap.number_filter = (|(telephoneNumber=%)(mobile=%)(ipPhone=%)) ##The default value is blank. -ldap.number_filter = +ldap.number_filter = {$ldap_number_filter} ##It configures the IP address or domain name of the LDAP server. ##The default value is blank. -ldap.host = +ldap.host = {$ldap_host} ##It configures the port of the LDAP server. ##The default value is 389.Integer from 1 to 65535. -ldap.port = +ldap.port = {$ldap_port} ##It configures the LDAP search base which corresponds to the location of the LDAP phonebook. ##Example:ldap.base = dc=yealink,dc=cn. ##The default value is blank. -ldap.base = +ldap.base = {$ldap_base} ##It configures the user name for accessing the LDAP server. ##The default value is blank. -ldap.user = +ldap.user = {$ldap_user} ##It configures the password for accessing the LDAP server. ##The default value is blank. -ldap.password = +ldap.password = {$ldap_password} ##It configures the maximum of the search results returned by the LDAP server to be displayed. ##The default value is 50.Integer from 1 to 32000. -ldap.max_hits = +ldap.max_hits = {$ldap_max_hits} ##It configures the name attributes of each record to be returned by the LDAP server. ##Multiple attributes are separated by spaces.Example:ldap.name_attr =sn cn. ##The default value is blank. -ldap.name_attr = +ldap.name_attr = {$ldap_name_attr} ##It configures the number attributes of each record to be returned by the LDAP server. ##Multiple attributes are separated by spaces.Example:ldap.numb_attr = Mobile ipPhone. ##The default value is blank. -ldap.numb_attr = +ldap.numb_attr = {$ldap_numb_attr} ##It configures the display name of the contact record displayed on the LCD screen. The value of this parameter must start with °∞%°± symbol. ##Example:ldap.display_name = %cn ##The default value is blank. -ldap.display_name = +ldap.display_name = {$ldap_display_name} ##It configures the LDAP version. ##The default value is 3. -ldap.version = +ldap.version = {$ldap_version} ##It enables or disables the phone to perform an LDAP search when receiving an incoming call. ##0-Disabled,1-Enabled. ##The default value is 0. -ldap.call_in_lookup = +ldap.call_in_lookup = {$ldap_call_in_lookup} ##It enables or disables the phone to sort the search results in alphabetical order or numerical order. ##0-Disabled,1-Enabled. ##The default value is 0. -ldap.ldap_sort = +ldap.ldap_sort = {$ldap_sort} ##It is the electricity + start, automatic search + 00 the beginning and the beginning of the numbe ##The default value is 0.(0-Disable,1-Enable )(Except T19P/T21P Models) ldap.incoming_call_special_search.enable = ##The default value is 0,value of 0 to 2, respectively the ldap, ldap + StarTLS and ldaps ldap.tls_mode = -ldap.call_out_lookup = +ldap.call_out_lookup = {$ldap_dial_lookup} ####################################################################################### ## Features ## @@ -846,7 +884,7 @@ phone_setting.phone_lock.unlock_pin = ###It configures the interval (in seconds) to automatically lock the keypad. ###The default value is 0 (the keypad is locked only by long pressing the pound key or pressing the keypad lock key) phone_setting.phone_lock.lock_time_out = -phone_setting.emergency.number = +phone_setting.emergency.number = {$yealink_emergency_number} ####################################################################################### ## Multicast ##