diff --git a/resources/templates/provision/yealink/t56a/{$mac}.cfg b/resources/templates/provision/yealink/t56a/{$mac}.cfg index 690d730885..4fd48050c4 100644 --- a/resources/templates/provision/yealink/t56a/{$mac}.cfg +++ b/resources/templates/provision/yealink/t56a/{$mac}.cfg @@ -5,19 +5,31 @@ ####################################################################################### ## Account1 Basic Settings ## ####################################################################################### -account.1.enable = -account.1.label = -account.1.display_name = -account.1.auth_name = -account.1.user_name = -account.1.password = -account.1.outbound_proxy_enable = -account.1.outbound_proxy.1.address = -account.1.outbound_proxy.1.port = +{if isset($user_password_1) } +account.1.enable = 1 +{else} +account.1.enable = 0 +{/if} +account.1.label = {$display_name_1} +account.1.display_name = {$display_name_1} +account.1.auth_name = {$auth_id_1} +account.1.user_name = {$user_id_1} +account.1.password = {$user_password_1} +account.1.outbound_proxy_enable = {if isset($outbound_proxy_primary_1)}1{else}0{/if} +account.1.outbound_proxy.1.address = {$outbound_proxy_primary_1} +{if isset($outbound_proxy_1_port)} +account.1.outbound_proxy.1.port = {$outbound_proxy_1_port} +{else} +account.1.outbound_proxy.1.port = 5060 +{/if} account.1.dial_tone = -account.1.outbound_proxy.2.address = -account.1.outbound_proxy.2.port = -account.1.outbound_proxy_fallback_interval = +account.1.outbound_proxy.2.address = {$outbound_proxy_secondary_1} +account.1.outbound_proxy.2.port = {if isset($outbound_proxy_1_port)} +account.1.outbound_proxy.2.port = {$outbound_proxy_2_port} +{else} +account.1.outbound_proxy.2.port = 5060 +{/if} +account.1.outbound_proxy_fallback_interval = 120 ##It configures the transport type for account 1. 0-UDP,1-TCP,2-TLS,3-DNS-NAPTR @@ -31,24 +43,32 @@ account.1.sip_server.2.transport_type = ## Failback ## ####################################################################################### -account.1.naptr_build = -account.1.fallback.redundancy_type = -account.1.fallback.timeout = +account.1.naptr_build = 0 +account.1.fallback.redundancy_type = 0 +account.1.fallback.timeout = 120 account.1.sip_server.1.address = -account.1.sip_server.1.port = -account.1.sip_server.1.expires = -account.1.sip_server.1.retry_counts = -account.1.sip_server.1.failback_mode = -account.1.sip_server.1.failback_timeout = -account.1.sip_server.1.register_on_enable = +{if $sip_transport_1 == 'dns srv'} +account.1.sip_server.1.port = 0 +{else} +account.1.sip_server.1.port = {$sip_port_1} +{/if} +account.1.sip_server.1.expires = {$register_expires_1} +account.1.sip_server.1.retry_counts = 3 +account.1.sip_server.1.failback_mode = 0 +account.1.sip_server.1.failback_timeout = 3600 +account.1.sip_server.1.register_on_enable = 0 account.1.sip_server.2.address = -account.1.sip_server.2.port = -account.1.sip_server.2.expires = -account.1.sip_server.2.retry_counts = -account.1.sip_server.2.failback_mode = -account.1.sip_server.2.failback_timeout = -account.1.sip_server.2.register_on_enable = +{if $sip_transport_2 == 'dns srv'} +account.1.sip_server.2.port = 0 +{else} +account.1.sip_server.2.port = {$sip_port_2} +{/if} +account.1.sip_server.2.expires = 3600 +account.1.sip_server.2.retry_counts = 3 +account.1.sip_server.2.failback_mode = 0 +account.1.sip_server.2.failback_timeout = 3600 +account.1.sip_server.2.register_on_enable = 0 @@ -2698,14 +2718,14 @@ features.call_park.park_retrieve_code = ####################################################################################### ##It configures the time zone.For more available time zones, refer to Time Zones on page 215. ##The default value is +8. -local_time.time_zone = +local_time.time_zone = {$yealink_time_zone} ##It configures the time zone name.For more available time zone names, refer to Time Zones on page 215. ##The default time zone name is China(Beijing). -local_time.time_zone_name = +local_time.time_zone_name = {$yealink_time_zone_name} -local_time.ntp_server1 = -local_time.ntp_server2 = +local_time.ntp_server1 = {$ntp_server_primary} +local_time.ntp_server2 = {$ntp_server_secondary} ##It configures the update interval (in seconds) when using the NTP server. ##The default value is 1000.Integer from 15 to 86400