diff --git a/resources/templates/provision/yealink/t43u/{$mac}.cfg b/resources/templates/provision/yealink/t43u/{$mac}.cfg index 6441661db9..7777c179a0 100644 --- a/resources/templates/provision/yealink/t43u/{$mac}.cfg +++ b/resources/templates/provision/yealink/t43u/{$mac}.cfg @@ -125,9 +125,13 @@ account.1.user_name = {$account.1.user_id} {/if} account.1.password = {$account.1.password} +{if isset($account.1.server.1.address)} +account.1.sip_server.1.address= {$account.1.server.1.address} +{else} account.1.sip_server.1.address= {$account.1.server_address} -account.1.sip_server_port = {$account.1.sip_port} +{/if} +account.1.sip_server_port = {$account.1.sip_port} #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.1.sip_transport == 'udp'}account.1.sip_server.1.transport_type = 0{/if}