From ae168b1e6ebcba449943ba8aba090877e98e4466 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Thu, 11 Feb 2021 14:58:24 -0700 Subject: [PATCH] Update {$mac}.cfg --- .../provision/yealink/cp920/{$mac}.cfg | 51 ++++++++++--------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/resources/templates/provision/yealink/cp920/{$mac}.cfg b/resources/templates/provision/yealink/cp920/{$mac}.cfg index dba47ae4eb..587aef24b3 100644 --- a/resources/templates/provision/yealink/cp920/{$mac}.cfg +++ b/resources/templates/provision/yealink/cp920/{$mac}.cfg @@ -24,10 +24,10 @@ account.1.user_name = {$account.1.user_id} {/if} account.1.sip_server_host = {$account.1.server_address} account.1.sip_server_port = {$account.1.sip_port} - account.1.outbound_host = {$account.1.outbound_proxy} account.1.outbound_port = {$account.1.sip_port} -account.1.sip_listen_port = {$account.1.sip_port} +{if isset($yealink_sip_listen_port)}account.1.sip_listen_port = {$yealink_sip_listen_port}{else}account.1.sip_listen_port = 5060{/if} + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.1.sip_transport == 'udp'}account.1.transport = 0{/if} {if $account.1.sip_transport == 'tcp'}account.1.transport = 1{/if} @@ -49,7 +49,6 @@ account.1.outbound_proxy.2.port = {$outbound_proxy_2_port} account.1.outbound_proxy.2.port = {$account.1.sip_port} {/if} - ####################################################################################### ## Failback ## ####################################################################################### @@ -177,7 +176,7 @@ account.1.subscribe_mwi = 1 account.1.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.1.subscribe_mwi_to_vm = 1 +account.1.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.1.subscribe_acd_expires= 3600 @@ -322,7 +321,6 @@ account.1.codec.13.rtpmap = 106 - ####################################################################################### ## Audio Advanced ## ####################################################################################### @@ -435,7 +433,7 @@ account.1.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.1.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.1.compact_header_enable = ####################################################################################### @@ -539,10 +537,11 @@ account.2.user_name = {$account.2.user_id} {/if} account.2.sip_server_host = {$account.2.server_address} account.2.sip_server_port = {$account.2.sip_port} - account.2.outbound_host = {$account.2.outbound_proxy} + account.2.outbound_port = {$account.2.sip_port} -account.2.sip_listen_port = 5060 +{if isset($yealink_sip_listen_port)}account.2.sip_listen_port = {$yealink_sip_listen_port}{else}account.2.sip_listen_port = 5060{/if} + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.2.sip_transport == 'udp'}account.2.transport = 0{/if} {if $account.2.sip_transport == 'tcp'}account.2.transport = 1{/if} @@ -553,7 +552,6 @@ account.2.outbound_proxy.1.address = {$account.2.outbound_proxy_primary} account.2.outbound_proxy.2.address = {$account.2.outbound_proxy_secondary} account.2.outbound_proxy_enable = {if isset($account.2.outbound_proxy_primary)}1{else}0{/if} - ####################################################################################### ## Failback ## ####################################################################################### @@ -681,7 +679,7 @@ account.2.subscribe_mwi = 1 account.2.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.2.subscribe_mwi_to_vm = 1 +account.2.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.2.subscribe_acd_expires= 3600 @@ -906,7 +904,7 @@ account.2.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.2.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.2.compact_header_enable = ####################################################################################### @@ -1057,7 +1055,9 @@ account.3.sip_server_port = {$account.3.sip_port} account.3.outbound_host = {$account.3.outbound_proxy} account.3.outbound_port = {$account.3.sip_port} -account.3.sip_listen_port = 5060 +{if isset($yealink_sip_listen_port)}account.3.sip_listen_port = {$yealink_sip_listen_port}{else}account.3.sip_listen_port = 5060{/if} + + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.3.sip_transport == 'udp'}account.3.transport = 0{/if} {if $account.3.sip_transport == 'tcp'}account.3.transport = 1{/if} @@ -1068,7 +1068,6 @@ account.3.outbound_proxy.1.address = {$account.3.outbound_proxy_primary} account.3.outbound_proxy.2.address = {$account.3.outbound_proxy_secondary} account.3.outbound_proxy_enable = {if isset($account.3.outbound_proxy_primary)}1{else}0{/if} - ####################################################################################### ## Failback ## ####################################################################################### @@ -1196,7 +1195,7 @@ account.3.subscribe_mwi = 1 account.3.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.3.subscribe_mwi_to_vm = 1 +account.3.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.3.subscribe_acd_expires= 3600 @@ -1421,7 +1420,7 @@ account.3.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.3.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.3.compact_header_enable = ####################################################################################### @@ -1558,7 +1557,9 @@ account.4.sip_server_port = {$account.4.sip_port} account.4.outbound_host = {$account.4.outbound_proxy} account.4.outbound_port = {$account.4.sip_port} -account.4.sip_listen_port = 5060 +{if isset($yealink_sip_listen_port)}account.4.sip_listen_port = {$yealink_sip_listen_port}{else}account.4.sip_listen_port = 5060{/if} + + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.4.sip_transport == 'udp'}account.4.transport = 0{/if} {if $account.4.sip_transport == 'tcp'}account.4.transport = 1{/if} @@ -1696,7 +1697,7 @@ account.4.subscribe_mwi = 1 account.4.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.4.subscribe_mwi_to_vm = 1 +account.4.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.4.subscribe_acd_expires= 3600 @@ -1921,7 +1922,7 @@ account.4.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.4.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.4.compact_header_enable = ####################################################################################### @@ -2055,7 +2056,8 @@ account.5.sip_server_port = {$account.5.sip_port} account.5.outbound_host = {$account.5.outbound_proxy} account.5.outbound_port = {$account.5.sip_port} -account.5.sip_listen_port = 5060 +{if isset($yealink_sip_listen_port)}account.5.sip_listen_port = {$yealink_sip_listen_port}{else}account.5.sip_listen_port = 5060{/if} + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.5.sip_transport == 'udp'}account.5.transport = 0{/if} {if $account.5.sip_transport == 'tcp'}account.5.transport = 1{/if} @@ -2193,7 +2195,7 @@ account.5.subscribe_mwi = 1 account.5.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.5.subscribe_mwi_to_vm = 1 +account.5.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.5.subscribe_acd_expires= 3600 @@ -2418,7 +2420,7 @@ account.5.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.5.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.5.compact_header_enable = ####################################################################################### @@ -2552,7 +2554,8 @@ account.6.sip_server_port = {$account.6.sip_port} account.6.outbound_host = {$account.6.outbound_proxy} account.6.outbound_port = {$account.6.sip_port} -account.6.sip_listen_port = 5060 +{if isset($yealink_sip_listen_port)}account.6.sip_listen_port = {$yealink_sip_listen_port}{else}account.6.sip_listen_port = 5060{/if} + #Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV; {if $account.6.sip_transport == 'udp'}account.6.transport = 0{/if} {if $account.6.sip_transport == 'tcp'}account.6.transport = 1{/if} @@ -2689,7 +2692,7 @@ account.6.subscribe_mwi = 0 account.6.subscribe_mwi_expires = 3600 #Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; -account.6.subscribe_mwi_to_vm = 0 +account.6.subscribe_mwi_to_vm = {$yealink_subscribe_mwi_to_vm} account.6.subscribe_acd_expires= 3600 @@ -2914,7 +2917,7 @@ account.6.100rel_enable = {$yealink_retransmission} #Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled; account.6.enable_user_equal_phone = -#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default); +#Enable or disable the simplified header field feature; 0-Disabled, 1-Enabled (default); account.6.compact_header_enable = #######################################################################################