From aadc343ebf913bf5b42e7dd64632e35b06a2f118 Mon Sep 17 00:00:00 2001 From: Len Date: Wed, 24 Aug 2016 15:02:35 -0400 Subject: [PATCH] Update {$mac}.cfg (#1842) Update outbound proxy support in the Yealink templates. t23p --- .../provision/yealink/t23p/{$mac}.cfg | 174 ++++++++++++------ 1 file changed, 115 insertions(+), 59 deletions(-) diff --git a/resources/templates/provision/yealink/t23p/{$mac}.cfg b/resources/templates/provision/yealink/t23p/{$mac}.cfg index 28b2f58145..ee68c86443 100644 --- a/resources/templates/provision/yealink/t23p/{$mac}.cfg +++ b/resources/templates/provision/yealink/t23p/{$mac}.cfg @@ -5,7 +5,7 @@ ####################################################################################### ## Account 1 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_1) } account.1.enable = 1 @@ -19,7 +19,7 @@ account.1.password = {$user_password_1} account.1.user_name = {$user_id_1} account.1.sip_server_host = {$server_address_1} account.1.sip_server_port = {$sip_port_1} -account.1.outbound_proxy_enable = + account.1.outbound_host = {$outbound_proxy_1} account.1.outbound_port = 5060 account.1.sip_listen_port = 5060 @@ -29,11 +29,25 @@ account.1.sip_listen_port = 5060 {if $sip_transport_1 == 'tls'}account.1.transport = 2{/if} {if $sip_transport_1 == 'dns srv'}account.1.transport = 3{/if} +account.1.outbound_proxy.1.address = {$outbound_proxy_primary_1} ++account.1.outbound_proxy.2.address = {$outbound_proxy_secondary_1} ++account.1.outbound_proxy_enable = {if isset($outbound_proxy_primary_1)}1{else}0{/if} + +{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} +{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} ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.1.reregister_enable = 0 @@ -87,7 +101,7 @@ account.1.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -139,7 +153,7 @@ account.1.nat.rport = {$yealink_rport_1} ####################################################################################### ## AccountX Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -154,7 +168,7 @@ voice_mail.number.1 = {$voicemail_number} ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = account.1.subscribe_mwi = 1 @@ -169,7 +183,7 @@ account.1.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -186,7 +200,7 @@ account.1.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -466,7 +480,7 @@ account.1.xsi.port = ####################################################################################### ## Account 2 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_2) } account.2.enable = 1 @@ -480,7 +494,7 @@ account.2.password = {$user_password_2} 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_proxy_enable = + account.2.outbound_host = {$outbound_proxy_2} account.2.outbound_port = 5060 account.2.sip_listen_port = 5060 @@ -490,11 +504,15 @@ account.2.sip_listen_port = 5060 {if $sip_transport_2 == 'tls'}account.2.transport = 2{/if} {if $sip_transport_2 == 'dns srv'}account.2.transport = 3{/if} +account.2.outbound_proxy.1.address = {$outbound_proxy_primary_2} +account.2.outbound_proxy.2.address = {$outbound_proxy_secondary_2} +account.2.outbound_proxy_enable = {if isset($outbound_proxy_primary_2)}1{else}0{/if} + ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.2.reregister_enable = 0 @@ -544,7 +562,7 @@ account.2.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -596,7 +614,7 @@ account.2.nat.rport = {$yealink_rport_2} ####################################################################################### ## Account2 Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -611,7 +629,7 @@ voice_mail.number.2 = *97 ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = account.2.subscribe_mwi = 1 @@ -626,7 +644,7 @@ account.2.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -643,7 +661,7 @@ account.2.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -960,7 +978,7 @@ network.internet_port.gateway = ####################################################################################### ## Account 3 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_3) } account.3.enable = 1 @@ -974,7 +992,7 @@ account.3.password = {$user_password_3} 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_proxy_enable = + account.3.outbound_host = {$outbound_proxy_3} account.3.outbound_port = 5060 account.3.sip_listen_port = 5060 @@ -984,10 +1002,14 @@ account.3.sip_listen_port = 5060 {if $sip_transport_3 == 'tls'}account.3.transport = 2{/if} {if $sip_transport_3 == 'dns srv'}account.3.transport = 3{/if} +account.3.outbound_proxy.1.address = {$outbound_proxy_primary_3} +account.3.outbound_proxy.2.address = {$outbound_proxy_secondary_3} +account.3.outbound_proxy_enable = {if isset($outbound_proxy_primary_3)}1{else}0{/if} + ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.3.reregister_enable = 0 @@ -1037,7 +1059,7 @@ account.3.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -1089,7 +1111,7 @@ account.3.nat.rport = {$yealink_rport_3} ####################################################################################### ## Account3 Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -1104,7 +1126,7 @@ voice_mail.number.3 = *97 ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = account.3.subscribe_mwi = 1 @@ -1119,7 +1141,7 @@ account.3.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -1136,7 +1158,7 @@ account.3.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -1443,7 +1465,7 @@ network.internet_port.gateway = ####################################################################################### ## Account 4 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_4) } account.4.enable = 1 @@ -1457,7 +1479,7 @@ account.4.password = {$user_password_4} 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_proxy_enable = + account.4.outbound_host = {$outbound_proxy_4} account.4.outbound_port = 5060 account.4.sip_listen_port = 5060 @@ -1467,10 +1489,14 @@ account.4.sip_listen_port = 5060 {if $sip_transport_4 == 'tls'}account.4.transport = 2{/if} {if $sip_transport_4 == 'dns srv'}account.4.transport = 3{/if} +account.4.outbound_proxy.1.address = {$outbound_proxy_primary_4} +account.4.outbound_proxy.2.address = {$outbound_proxy_secondary_4} +account.4.outbound_proxy_enable = {if isset($outbound_proxy_primary_4)}1{else}0{/if} + ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.4.reregister_enable = 0 @@ -1520,7 +1546,7 @@ account.4.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -1572,7 +1598,7 @@ account.4.nat.rport = {$yealink_rport_4} ####################################################################################### ## Account4 Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -1587,7 +1613,7 @@ voice_mail.number.4 = *97 ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = account.4.subscribe_mwi = 1 @@ -1602,7 +1628,7 @@ account.4.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -1619,7 +1645,7 @@ account.4.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -1925,7 +1951,7 @@ network.internet_port.gateway = ####################################################################################### ## Account 5 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_5) } account.5.enable = 1 @@ -1939,7 +1965,7 @@ account.5.password = {$user_password_5} 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_proxy_enable = + account.5.outbound_host = {$outbound_proxy_5} account.5.outbound_port = 5060 account.5.sip_listen_port = 5060 @@ -1949,10 +1975,14 @@ account.5.sip_listen_port = 5060 {if $sip_transport_5 == 'tls'}account.5.transport = 2{/if} {if $sip_transport_5 == 'dns srv'}account.5.transport = 3{/if} +account.5.outbound_proxy.1.address = {$outbound_proxy_primary_5} +account.5.outbound_proxy.2.address = {$outbound_proxy_secondary_5} +account.5.outbound_proxy_enable = {if isset($outbound_proxy_primary_5)}1{else}0{/if} + ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.5.reregister_enable = 0 @@ -2002,7 +2032,7 @@ account.5.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -2054,7 +2084,7 @@ account.5.nat.rport = {$yealink_rport_5} ####################################################################################### ## Account5 Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -2069,7 +2099,7 @@ voice_mail.number.5 = *97 ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = account.5.subscribe_mwi = 1 @@ -2084,7 +2114,7 @@ account.5.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -2101,7 +2131,7 @@ account.5.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -2407,7 +2437,7 @@ network.internet_port.gateway = ####################################################################################### ## Account 6 Basic Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.enable = {if isset($user_password_6) } account.6.enable = 1 @@ -2421,7 +2451,7 @@ account.6.password = {$user_password_6} 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_proxy_enable = + account.6.outbound_host = {$outbound_proxy_6} account.6.outbound_port = 5060 account.6.sip_listen_port = 5060 @@ -2431,10 +2461,14 @@ account.6.sip_listen_port = 5060 {if $sip_transport_6 == 'tls'}account.6.transport = 2{/if} {if $sip_transport_6 == 'dns srv'}account.6.transport = 3{/if} +account.6.outbound_proxy.1.address = {$outbound_proxy_primary_6} +account.6.outbound_proxy.2.address = {$outbound_proxy_secondary_6} +account.6.outbound_proxy_enable = {if isset($outbound_proxy_primary_6)}1{else}0{/if} + ####################################################################################### ## Failback ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.reregister_enable = 0 account.6.reregister_enable = 0 @@ -2484,7 +2518,7 @@ account.6.static_cache_pri = 0 ####################################################################################### ## Register Advanced ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.sip_server_type = #Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom; @@ -2513,7 +2547,7 @@ account.6.reg_fail_retry_interval = ######################################################################### ## NAT Settings ## ######################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.nat.nat_traversal = 0 #Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN; @@ -2535,7 +2569,7 @@ account.6.nat.rport = {$yealink_rport_6} ####################################################################################### ## Account6 Advance Settings ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.advanced.timer_t1 = 0.5 ##voice_mail.number.X = @@ -2550,14 +2584,14 @@ voice_mail.number.6 = *97 ####################################################################################### ## Subscribe ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.subscribe_mwi = -account.6.subscribe_mwi = 1 +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 = 1 +account.6.subscribe_mwi_to_vm = 0 account.6.subscribe_acd_expires= 3600 @@ -2565,7 +2599,7 @@ account.6.subscribe_acd_expires= 3600 ####################################################################################### ## BLF List ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.blf.blf_list_uri = #Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist". @@ -2582,7 +2616,7 @@ account.6.out_dialog_blf_enable = 0 ####################################################################################### ## BLA/SCA ## ####################################################################################### -## X ranges from 1 to 6; +ranges from 1 to 6; ##account.X.shared_line = #Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA; @@ -2957,18 +2991,30 @@ memorykey.{$row.device_key_id}.sub_type = #The value 0 of the "proramablekey.x.line" stands for Auto, it means the first available line. #But, when the programmable key is configured as Pick Up, the value 0 stands for line 1. +{foreach $keys as $row} ++ {if $row.device_key_category == "programmable"} ++ programablekey.{$row.device_key_id}.type = {$row.device_key_type} ++ programablekey.{$row.device_key_id}.line = {$row.device_key_line} ++ programablekey.{$row.device_key_id}.value = {$row.device_key_value} ++ programablekey.{$row.device_key_id}.xml_phonebook = ++ programablekey.{$row.device_key_id}.history_type = ++ programablekey.{$row.device_key_id}.label = {$row.device_key_label} ++ {/if} ++{/foreach} ++ + #programablekey.x.value = #programablekey.x.xml_phonebook--Specify the desired remote phonebook/local group/BSFT phonebook for the programmable key. This parameter is only appilicable to the feature XML Group/Local Group/Broadsoft Group. #programablekey.x.history_type = #programablekey.x.label--This parameter is only available to the key 1 to key 4. -programablekey.1.type = -programablekey.1.line = -programablekey.1.value = -programablekey.1.xml_phonebook = -programablekey.1.history_type = -programablekey.1.label = +#programablekey.1.type = +#programablekey.1.line = +#programablekey.1.value = +#programablekey.1.xml_phonebook = +#programablekey.1.history_type = +#programablekey.1.label = ########################################################################################## @@ -2982,6 +3028,8 @@ programablekey.1.label = #expansion_module.x.key.y.label = #expansion_module.X.key.Y.xml_phonebook = +{$rownum = 1} + {foreach $keys as $row} {if $row.device_key_category == "expansion"} #Expansion module 1 key {$row.device_key_id} @@ -2991,7 +3039,15 @@ expansion_module.1.key.{$row.device_key_id}.value = {$row.device_key_value} expansion_module.1.key.{$row.device_key_id}.extension = {$row.device_key_extension} expansion_module.1.key.{$row.device_key_id}.label = {$row.device_key_label} expansion_module.1.key.{$row.device_key_id}.xml_phonebook = - +{else} ++expansion_module.2.key.{$row.device_key_id - 40}.type = {$row.device_key_type} ++expansion_module.2.key.{$row.device_key_id - 40}.line = {$row.device_key_line} ++expansion_module.2.key.{$row.device_key_id - 40}.value = {$row.device_key_value} ++expansion_module.2.key.{$row.device_key_id - 40}.extension = {$row.device_key_extension} ++expansion_module.2.key.{$row.device_key_id - 40}.label = {$row.device_key_label} ++expansion_module.2.key.{$row.device_key_id - 40}.xml_phonebook = ++{/if} ++{$rownum = $rownum + 1} {/if} {/foreach} @@ -3007,4 +3063,4 @@ expansion_module.1.key.{$row.device_key_id}.xml_phonebook = #expansion_module.2.key.1.label = #expansion_module.2.key.1.xml_phonebook = #expansion_module.2.key.1.type = -#expansion_module.2.key.1.label = \ No newline at end of file +#expansion_module.2.key.1.label =