diff --git a/resources/templates/provision/yealink/t46g/{$mac}.cfg b/resources/templates/provision/yealink/t46g/{$mac}.cfg index c8bfc76943..13ee81aac3 100644 --- a/resources/templates/provision/yealink/t46g/{$mac}.cfg +++ b/resources/templates/provision/yealink/t46g/{$mac}.cfg @@ -502,7 +502,10 @@ account.2.user_name = {$user_id_2} account.2.sip_server_host = {$server_address_2} account.2.sip_server_port = {$sip_port_2} account.2.outbound_host = {$outbound_proxy_2} -account.2.outbound_port = 5060 + +account.2.outbound_port = {$sip_port_1} +{if isset($yealink_sip_listen_port)}account.2.sip_listen_port = {$yealink_sip_listen_port}{else}account.2.sip_listen_port = 5060{/if} + account.2.sip_listen_port = 5060 #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $sip_transport_2 == 'udp'}account.2.transport = 0{/if} @@ -1011,7 +1014,10 @@ account.3.user_name = {$user_id_3} account.3.sip_server_host = {$server_address_3} account.3.sip_server_port = {$sip_port_3} account.3.outbound_host = {$outbound_proxy_3} -account.3.outbound_port = 5060 + +account.3.outbound_port = {$sip_port_1} +{if isset($yealink_sip_listen_port)}account.3.sip_listen_port = {$yealink_sip_listen_port}{else}account.3.sip_listen_port = 5060{/if} + account.3.sip_listen_port = 5060 #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $sip_transport_3 == 'udp'}account.3.transport = 0{/if} @@ -1502,7 +1508,10 @@ account.4.user_name = {$user_id_4} account.4.sip_server_host = {$server_address_4} account.4.sip_server_port = {$sip_port_4} account.4.outbound_host = {$outbound_proxy_4} -account.4.outbound_port = 5060 + +account.4.outbound_port = {$sip_port_1} +{if isset($yealink_sip_listen_port)}account.4.sip_listen_port = {$yealink_sip_listen_port}{else}account.4.sip_listen_port = 5060{/if} + account.4.sip_listen_port = 5060 #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $sip_transport_4 == 'udp'}account.4.transport = 0{/if} @@ -1993,7 +2002,10 @@ account.5.user_name = {$user_id_5} account.5.sip_server_host = {$server_address_5} account.5.sip_server_port = {$sip_port_5} account.5.outbound_host = {$outbound_proxy_5} -account.5.outbound_port = 5060 + +account.5.outbound_port = {$sip_port_1} +{if isset($yealink_sip_listen_port)}account.5.sip_listen_port = {$yealink_sip_listen_port}{else}account.5.sip_listen_port = 5060{/if} + account.5.sip_listen_port = 5060 #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $sip_transport_5 == 'udp'}account.5.transport = 0{/if} @@ -2484,7 +2496,10 @@ account.6.user_name = {$user_id_6} account.6.sip_server_host = {$server_address_6} account.6.sip_server_port = {$sip_port_6} account.6.outbound_host = {$outbound_proxy_6} -account.6.outbound_port = 5060 + +account.6.outbound_port = {$sip_port_1} +{if isset($yealink_sip_listen_port)}account.6.sip_listen_port = {$yealink_sip_listen_port}{else}account.6.sip_listen_port = 5060{/if} + account.6.sip_listen_port = 5060 #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $sip_transport_6 == 'udp'}account.6.transport = 0{/if}