From 58608501615596678c5f2204cdd2caef0df8afa6 Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 28 Sep 2017 23:06:55 -0400 Subject: [PATCH] Update y000000000058.cfg --- .../provision/yealink/t58v/y000000000058.cfg | 143 ++++++++++++------ 1 file changed, 95 insertions(+), 48 deletions(-) diff --git a/resources/templates/provision/yealink/t58v/y000000000058.cfg b/resources/templates/provision/yealink/t58v/y000000000058.cfg index 5c9b773269..318a2e728f 100644 --- a/resources/templates/provision/yealink/t58v/y000000000058.cfg +++ b/resources/templates/provision/yealink/t58v/y000000000058.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,9 +310,10 @@ sip.notify_reboot_enable = sip.disp_incall_to_info = sip.limit_server_name = sip.limit_server_reason = -sip.listen_port = -sip.tls_listen_port = -sip.trust_ctrl = +{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 = {$yealink_trust_ctrl} sip.nat_stun.enable = sip.nat_stun.server = sip.nat_stun.port = @@ -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 ## @@ -611,7 +649,7 @@ features.allow_mute = features.group_listen_in_talking_enable = features.call_completion_enable = features.call_num_filter = -features.direct_ip_call_enable = +features.direct_ip_call_enable = {$yealink_direct_ip_call_enable} features.relog_offtime = features.ringer_device.is_use_headset = features.factory_pwd_enable = @@ -641,7 +679,7 @@ features.barge_in_via_username.enable = features.flash_url_dsskey_led.enable = static.features.default_account = features.linekey_call_with_default_account = -features.hide_feature_access_codes.enable = +features.hide_feature_access_codes.enable = {$yealink_hide_feature_access_codes_enable} static.features.hide_zero_touch_url.enable = @@ -676,7 +714,7 @@ features.bluetooth_enable = ##It configures BLF LED mode and provides four kinds of definition for the BLF/BLF list key LED status. ##For more information, refer to BLF LED Mode on page 218. ##The default value is 0. -features.blf_led_mode = +features.blf_led_mode = {$yealink_blf_led_mode} ##It enables or disables the phone to deal with the Version header in the BLF NOTIFY message sent by the server. ##0-Disabled,1-Enabled. @@ -707,7 +745,7 @@ features.hotline_delay = ####################################################################################### ## Features DTMF ## ####################################################################################### -features.dtmf.hide = +features.dtmf.hide = {$yealink_dtmf_hide} ###Except T20P Model features.dtmf.hide_delay = @@ -756,8 +794,8 @@ features.save_call_history = ####################################################################################### ## Notification Popups ## ####################################################################################### -features.voice_mail_popup.enable= -features.missed_call_popup.enable= +features.voice_mail_popup.enable= {$yealink_voice_mail_popup_enable} +features.missed_call_popup.enable= {$yealink_missed_call_popup_enable} features.forward_call_popup.enable= features.text_message_popup.enable= @@ -811,9 +849,9 @@ phone_setting.active_backlight_level = ####################################################################################### ##It configures the backlight time (in seconds).0, 1, 15, 30, 60, 120, 300, 600 or 1800. -phone_setting.backlight_time = -phone_setting.backgrounds = -wallpaper_upload.url = +phone_setting.backlight_time = {$yealink_backlight_time} +phone_setting.backgrounds = Config:yealink_t58v_wallpaper.png +wallpaper_upload.url = {$yealink_t58v_wallpaper} ####################################################################################### ## Phone Setting BLF ## @@ -836,17 +874,17 @@ phone_setting.blf_list_sequence_type = ###It enables or disables keypad lock feature. ###0-Disabled,1-Enabled. ###The default value is 0. -phone_setting.phone_lock.enable = +phone_setting.phone_lock.enable = {$yealink_lock_enable} ###It configures the password for unlocking the keypad. ###The default value is 123. -phone_setting.phone_lock.unlock_pin = +phone_setting.phone_lock.unlock_pin = {$yealink_lock_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.phone_lock.lock_time_out = {$yealink_lock_timeout} +phone_setting.emergency.number = {$yealink_emergency_number} ####################################################################################### ## Multicast ## @@ -885,10 +923,19 @@ super_search.url = ###The following examples change the var's username to "var55" and the var's password to "var55pwd". ###static.security.user_name.var = var55 ###static.security.user_password = var55:var55pwd -static.security.user_name.user = -static.security.user_name.admin = -static.security.user_name.var = -static.security.user_password = + +{if isset($user_name) } +static.security.user_name.user = {$user_name} +static.security.user_password = {$user_name}:{$user_password} +{/if} +{if isset($admin_name) } +static.security.user_name.admin = {$admin_name} +static.security.user_password = {$admin_name}:{$admin_password} +{/if} +{if isset($var_name) } +static.security.user_name.var = {$var_name} +static.security.user_password = {$var_name}:{$var_password} +{/if} ###It enables or disables the phone to only accept the certificates in the Trusted Certificates list. ###0-Disabled,1-Enabled. @@ -1160,7 +1207,7 @@ distinctive_ring_tones.alert_info.1.ringer = ####################################################################################### ## Call Waiting ## ####################################################################################### -call_waiting.enable = +call_waiting.enable = {$yealink_call_waiting} call_waiting.tone = call_waiting.on_code = call_waiting.off_code = @@ -1248,7 +1295,7 @@ custom_softkey_talking.url = ####################################################################################### ###It configures the access URL of the firmware file. ###The default value is blank.It takes effect after a reboot. -static.firmware.url = +static.firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t58v} ####################################################################################### ## RTCP ##