diff --git a/resources/templates/provision/yealink/t56a/{$mac}.cfg b/resources/templates/provision/yealink/t56a/{$mac}.cfg index bcddc1e290..4eeb6c2426 100644 --- a/resources/templates/provision/yealink/t56a/{$mac}.cfg +++ b/resources/templates/provision/yealink/t56a/{$mac}.cfg @@ -34,10 +34,20 @@ account.1.outbound_proxy_fallback_interval = 120 ##It configures the transport type for account 1. 0-UDP,1-TCP,2-TLS,3-DNS-NAPTR ##The default value is 0. -account.1.sip_server.1.transport_type = + + +{if $sip_transport_1 == 'udp'}account.1.sip_server.1.transport_type = 0{/if} +{if $sip_transport_1 == 'tcp'}account.1.sip_server.1.transport_type = 1{/if} +{if $sip_transport_1 == 'tls'}account.1.sip_server.1.transport_type = 2{/if} +{if $sip_transport_1 == 'dns srv'}account.1.sip_server.1.transport_type = 3{/if} ##It configures the backup server transport type for account 1. 0-UDP,1-TCP,2-TLS,3-DNS-NAPTR ##The default value is 0. -account.1.sip_server.2.transport_type = + + +{if $sip_transport_2 == 'udp'}account.1.sip_server.2.transport_type = 0{/if} +{if $sip_transport_2 == 'tcp'}account.1.sip_server.2.transport_type = 1{/if} +{if $sip_transport_2 == 'tls'}account.1.sip_server.2.transport_type = 2{/if} +{if $sip_transport_2 == 'dns srv'}account.1.sip_server.2.transport_type = 3{/if} ####################################################################################### ## Failback ## @@ -117,7 +127,7 @@ account.1.nat.rport = {$yealink_rport} ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.1 = +voice_mail.number.1 = {$voicemail_number} ##Except T19P/T21P Models account.1.auto_dial_enable = @@ -192,7 +202,7 @@ account.1.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.1.shared_line = +account.1.shared_line = {$shared_line_1} ##It configures the BLA number for account X. ##The default value is blank. @@ -374,15 +384,15 @@ account.1.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.1.cid_source = -account.1.cid_source_privacy = -account.1.cid_source_ppi = -account.1.cp_source = +account.1.cid_source = {$yealink_cid_source} +account.1.cid_source_privacy = 1 +account.1.cid_source_ppi = 1 +account.1.cp_source = 2 ####################################################################################### ## Session Timer ## ####################################################################################### -account.1.session_timer.enable = +account.1.session_timer.enable = {$yealink_session_timer} account.1.session_timer.expires = account.1.session_timer.refresher = @@ -404,7 +414,7 @@ account.1.music_server_uri = ####################################################################################### account.1.auto_answer = account.1.missed_calllog = -account.1.100rel_enable = +account.1.100rel_enable = {$yealink_retransmission} account.1.enable_user_equal_phone = account.1.compact_header_enable = account.1.custom_ua = @@ -470,48 +480,69 @@ account.1.xsi.port = ####################################################################################### ## Account2 Basic Settings ## ####################################################################################### -account.2.enable = -account.2.label = -account.2.display_name = -account.2.auth_name = -account.2.user_name = -account.2.password = -account.2.outbound_proxy_enable = -account.2.outbound_proxy.1.address = -account.2.outbound_proxy.1.port = +{if isset($user_password_2) } +account.2.enable = 1 +{else} +account.2.enable = 0 +{/if} +account.2.label = {$display_name_2} +account.2.display_name = {$display_name_2} +account.2.auth_name = {$auth_id_2} +account.2.password = {$user_password_2} +account.2.user_name = {$user_id_2} +account.2.outbound_proxy_enable = {if isset($outbound_proxy_primary_2)}1{else}0{/if} +account.2.outbound_proxy.1.address = {$outbound_proxy_primary_2} +account.2.outbound_proxy.1.port = 5060 account.2.dial_tone = -account.2.outbound_proxy.2.address = -account.2.outbound_proxy.2.port = +account.2.outbound_proxy.2.address = {$outbound_proxy_secondary_2} +account.2.outbound_proxy.2.port = 5060 account.2.outbound_proxy_fallback_interval = ##It configures the transport type for account 1. 0-UDP,1-TCP,2-TLS,3-DNS-NAPTR ##The default value is 0. -account.2.sip_server.1.transport_type = +{if $sip_transport_2 == 'udp'}account.2.sip_server.1.transport_type = 0{/if} +{if $sip_transport_2 == 'tcp'}account.2.sip_server.1.transport_type = 1{/if} +{if $sip_transport_2 == 'tls'}account.2.sip_server.1.transport_type = 2{/if} +{if $sip_transport_2 == 'dns srv'}account.2.sip_server.1.transport_type = 3{/if} + ##It configures the backup server transport type for account 1. 0-UDP,1-TCP,2-TLS,3-DNS-NAPTR ##The default value is 0. account.2.sip_server.2.transport_type = +{if $sip_transport_2 == 'udp'}account.2.sip_server.2.transport_type = 0{/if} +{if $sip_transport_2 == 'tcp'}account.2.sip_server.2.transport_type = 1{/if} +{if $sip_transport_2 == 'tls'}account.2.sip_server.2.transport_type = 2{/if} +{if $sip_transport_2 == 'dns srv'}account.2.sip_server.2.transport_type = 3{/if} + ####################################################################################### ## Failback ## ####################################################################################### -account.2.naptr_build = -account.2.fallback.redundancy_type = -account.2.fallback.timeout = +account.2.naptr_build = 0 +account.2.fallback.redundancy_type = 0 +account.2.fallback.timeout = 120 account.2.sip_server.1.address = -account.2.sip_server.1.port = -account.2.sip_server.1.expires = -account.2.sip_server.1.retry_counts = -account.2.sip_server.1.failback_mode = -account.2.sip_server.1.failback_timeout = -account.2.sip_server.1.register_on_enable = +{if $sip_transport_1 == 'dns srv'} +account.2.sip_server.1.port = 0 +{else} +account.2.sip_server.1.port = {$sip_port_1} +{/if} +account.2.sip_server.1.expires = {$register_expires_1} +account.2.sip_server.1.retry_counts = 3 +account.2.sip_server.1.failback_mode = 0 +account.2.sip_server.1.failback_timeout = 3600 +account.2.sip_server.1.register_on_enable = 0 account.2.sip_server.2.address = -account.2.sip_server.2.port = -account.2.sip_server.2.expires = -account.2.sip_server.2.retry_counts = -account.2.sip_server.2.failback_mode = -account.2.sip_server.2.failback_timeout = -account.2.sip_server.2.register_on_enable = +{if $sip_transport_2 == 'dns srv'} +account.2.sip_server.2.port = 0 +{else} +account.2.sip_server.2.port = {$sip_port_2} +{/if} +account.2.sip_server.2.expires = {$register_expires_2} +account.2.sip_server.2.retry_counts = 3 +account.2.sip_server.2.failback_mode = 0 +account.2.sip_server.2.failback_timeout = 3600 +account.2.sip_server.2.register_on_enable = 0 @@ -557,7 +588,7 @@ account.2.nat.rport = {$yealink_rport} ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.2 = +voice_mail.number.2 = {$voicemail_number} ##Except T19P/T21P Models account.2.auto_dial_enable = account.2.auto_dial_num = @@ -622,7 +653,7 @@ account.2.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.2.shared_line = +account.2.shared_line = {$shared_line_2} ##It configures the BLA number for account X. ##The default value is blank. account.2.bla_number = @@ -794,10 +825,10 @@ account.2.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.2.cid_source = -account.2.cid_source_privacy = -account.2.cid_source_ppi = -account.2.cp_source = +account.2.cid_source = {$yealink_cid_source} +account.2.cid_source_privacy = 1 +account.2.cid_source_ppi = 1 +account.2.cp_source = 2 ####################################################################################### ## Session Timer ## @@ -974,7 +1005,7 @@ account.3.nat.rport = {$yealink_rport} ####################################################################################### ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.3 = +voice_mail.number.3 = {$voicemail_number} ##Except T19P/T21P Models account.3.auto_dial_enable = account.3.auto_dial_num = @@ -1039,7 +1070,7 @@ account.3.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.3.shared_line = +account.3.shared_line = {$shared_line_3} ##It configures the BLA number for account X. ##The default value is blank. account.3.bla_number = @@ -1211,10 +1242,10 @@ account.3.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.3.cid_source = -account.3.cid_source_privacy = -account.3.cid_source_ppi = -account.3.cp_source = +account.3.cid_source = {$yealink_cid_source} +account.3.cid_source_privacy = 1 +account.3.cid_source_ppi = 1 +account.3.cp_source = 2 ####################################################################################### ## Session Timer ## @@ -1390,7 +1421,7 @@ account.4.nat.rport = {$yealink_rport} ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.4 = +voice_mail.number.4 = {$voicemail_number} ##Except T19P/T21P Models account.4.auto_dial_enable = account.4.auto_dial_num = @@ -1461,7 +1492,7 @@ account.4.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.4.shared_line = +account.4.shared_line = {$shared_line_4} ##It configures the BLA number for account X. ##The default value is blank. account.4.bla_number = @@ -1636,10 +1667,10 @@ account.4.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.4.cid_source = -account.4.cid_source_privacy = -account.4.cid_source_ppi = -account.4.cp_source = +account.4.cid_source = {$yealink_cid_source} +account.4.cid_source_privacy = 1 +account.4.cid_source_ppi = 1 +account.4.cp_source = 2 ####################################################################################### ## Session Timer ## @@ -1815,7 +1846,7 @@ account.5.nat.rport = {$yealink_rport} ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.5 = +voice_mail.number.5 = {$voicemail_number} ##Except T19P/T21P Models account.5.auto_dial_enable = account.5.auto_dial_num = @@ -1885,7 +1916,7 @@ account.5.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.5.shared_line = +account.5.shared_line = {$shared_line_5} ##It configures the BLA number for account X. ##The default value is blank. account.5.bla_number = @@ -2059,10 +2090,10 @@ account.5.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.5.cid_source = -account.5.cid_source_privacy = -account.5.cid_source_ppi = -account.5.cp_source = +account.5.cid_source = {$yealink_cid_source} +account.5.cid_source_privacy = 1 +account.5.cid_source_ppi = 1 +account.5.cp_source = 2 ####################################################################################### ## Session Timer ## @@ -2241,7 +2272,7 @@ account.6.nat.rport = {$yealink_rport} ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.6 = +voice_mail.number.6 = {$voicemail_number} ##Except T19P/T21P Models account.6.auto_dial_enable = account.6.auto_dial_num = @@ -2312,7 +2343,7 @@ account.6.blf.match_host.enable= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.6.shared_line = +account.6.shared_line = 6 ##It configures the BLA number for account X. ##The default value is blank. account.6.bla_number = @@ -2484,10 +2515,10 @@ account.6.conf_uri = ####################################################################################### ## CID Source ## ####################################################################################### -account.6.cid_source = -account.6.cid_source_privacy = -account.6.cid_source_ppi = -account.6.cp_source = +account.6.cid_source = {$yealink_cid_source} +account.6.cid_source_privacy = 1 +account.6.cid_source_ppi = 1 +account.6.cp_source = 2 ####################################################################################### ## Session Timer ##