diff --git a/resources/templates/provision/yealink/t58w/{$mac}.cfg b/resources/templates/provision/yealink/t58w/{$mac}.cfg index 66edfd597a..71c39493e1 100644 --- a/resources/templates/provision/yealink/t58w/{$mac}.cfg +++ b/resources/templates/provision/yealink/t58w/{$mac}.cfg @@ -3,83 +3,111 @@ ##File header "#!version:1.0.0.1" can not be edited or deleted, and must be placed in the first line.## ##account.X.*:(T58/T56A/VP59: X ranges from 1 to 16. CP960: X ranges from 1 to 1.)## +{foreach $lines as $row} + ####################################################################################### ## Account1 Basic Settings ## ####################################################################################### -account.1.enable = -account.1.label = -account.1.display_name = -account.1.auth_name = -account.1.user_name = -account.1.password = -account.1.outbound_proxy_enable = -account.1.outbound_proxy.1.address = -account.1.outbound_proxy.1.port = -account.1.dial_tone = -account.1.outbound_proxy.2.address = -account.1.outbound_proxy.2.port = -account.1.outbound_proxy_fallback_interval = +{if isset({$row.password})} +account.{$row.line_number}.enable = 1 +{else} +account.{$row.line_number}.enable = 0 +{/if} +account.{$row.line_number}.label = {$row.label} +account.{$row.line_number}.display_name = {$row.display_name} +account.{$row.line_number}.auth_name = {$row.auth_id} +account.{$row.line_number}.user_name = {$row.user_id} +account.{$row.line_number}.password = {$row.password} -####V84SP4新需求新增##### -account.1.outbound_proxy.1.failback_mode= -account.1.outbound_proxy.1.failback_subscribe.enable= -account.1.outbound_proxy.1.failback_timeout= -account.1.outbound_proxy.1.invite_retry_counts= -account.1.outbound_proxy.1.only_signal_with_registered= -account.1.outbound_proxy.1.register_on_enable= -account.1.outbound_proxy.1.retry_counts= -account.1.invite_with_rpid_header.enable= -account.1.auto_answer_mute_enable= +account.{$row.line_number}.outbound_proxy_enable = {if isset($row.outbound_proxy_primary)}1{else}0{/if} +account.{$row.line_number}.outbound_proxy.1.address = {$row.outbound_proxy_primary} +{if isset($outbound_proxy_1_port)} +account.{$row.line_number}.outbound_proxy.1.port = {$outbound_proxy_1_port} +{else} +account.{$row.line_number}.outbound_proxy.1.port = {$row.sip_port} +{/if} + +account.{$row.line_number}.dial_tone = + +account.{$row.line_number}.outbound_proxy.2.address = {$row.outbound_proxy_secondary} +{if isset($outbound_proxy_1_port)} +account.{$row.line_number}.outbound_proxy.2.port = {$outbound_proxy_2_port} +{else} +account.{$row.line_number}.outbound_proxy.2.port = {$row.sip_port} +{/if} + +{if isset($outbound_proxy_fallback_interval)} +account.{$row.line_number}.outbound_proxy_fallback_interval = {$outbound_proxy_fallback_interval} +{else} +account.{$row.line_number}.outbound_proxy_fallback_interval = 120 +{/if} + +####V84SP4##### +account.{$row.line_number}.outbound_proxy.1.failback_mode= +account.{$row.line_number}.outbound_proxy.1.failback_subscribe.enable= +account.{$row.line_number}.outbound_proxy.1.failback_timeout= +account.{$row.line_number}.outbound_proxy.1.invite_retry_counts= +account.{$row.line_number}.outbound_proxy.1.only_signal_with_registered= +account.{$row.line_number}.outbound_proxy.1.register_on_enable= +account.{$row.line_number}.outbound_proxy.1.retry_counts= +account.{$row.line_number}.invite_with_rpid_header.enable= +account.{$row.line_number}.auto_answer_mute_enable= ##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 = +account.{$row.line_number}.sip_server.1.transport_type = ##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 = +account.{$row.line_number}.sip_server.2.transport_type = ####################################################################################### ## Failback (SIP Backup Server) ## ####################################################################################### -account.1.naptr_build = -account.1.fallback.redundancy_type = -account.1.fallback.timeout = -account.1.sip_server.1.address = -account.1.sip_server.1.port = -account.1.sip_server.1.expires = -account.1.sip_server.1.retry_counts = -account.1.sip_server.1.failback_mode = -account.1.sip_server.1.failback_timeout = -account.1.sip_server.1.register_on_enable = +account.{$row.line_number}.naptr_build = 0 +account.{$row.line_number}.fallback.redundancy_type = 0 +account.{$row.line_number}.fallback.timeout = 3600 -account.1.sip_server.2.address = -account.1.sip_server.2.port = -account.1.sip_server.2.expires = -account.1.sip_server.2.retry_counts = -account.1.sip_server.2.failback_mode = -account.1.sip_server.2.failback_timeout = -account.1.sip_server.2.register_on_enable = +{if isset($row.server.1.address)} +account.{$row.line_number}.sip_server.1.address= {$row.server.1.address} +{else} +account.{$row.line_number}.sip_server.1.address= {$row.server_address} +{/if} + +account.{$row.line_number}.sip_server.1.port = {$row.sip_port} +account.{$row.line_number}.sip_server.1.expires = {$row.register_expires} +account.{$row.line_number}.sip_server.1.retry_counts = 3 +account.{$row.line_number}.sip_server.1.failback_mode = 0 +account.{$row.line_number}.sip_server.1.failback_timeout = 3600 +account.{$row.line_number}.sip_server.1.register_on_enable = 0 + +account.{$row.line_number}.sip_server.2.address = {$row.server.2.address} +account.{$row.line_number}.sip_server.2.port = {$row.sip_port} +account.{$row.line_number}.sip_server.2.expires = {$row.register_expires} +account.{$row.line_number}.sip_server.2.retry_counts = 3 +account.{$row.line_number}.sip_server.2.failback_mode = 0 +account.{$row.line_number}.sip_server.2.failback_timeout = 3600 +account.{$row.line_number}.sip_server.2.register_on_enable = 0 -account.1.dns_cache_type = -account.1.static_cache_pri = -account.1.register_expires_overlap = -account.1.subscribe_expires_overlap = +account.{$row.line_number}.dns_cache_type = 1 +account.{$row.line_number}.static_cache_pri = +account.{$row.line_number}.register_expires_overlap = +account.{$row.line_number}.subscribe_expires_overlap = -####V84SP4新需求新增##### -account.1.outbound_proxy.1.failback_subscribe.enable= -account.1.outbound_proxy.1.invite_retry_counts= -account.1.outbound_proxy.1.only_signal_with_registered= -account.1.outbound_proxy.2.failback_subscribe.enable= -account.1.outbound_proxy.2.invite_retry_counts= -account.1.outbound_proxy.2.only_signal_with_registered= -account.1.sip_server.1.only_signal_with_registered= -account.1.sip_server.2.only_signal_with_registered= -account.1.sip_server.1.failback_subscribe.enable= -account.1.sip_server.2.failback_subscribe.enable= +####V84SP4##### +account.{$row.line_number}.outbound_proxy.1.failback_subscribe.enable= +account.{$row.line_number}.outbound_proxy.1.invite_retry_counts= +account.{$row.line_number}.outbound_proxy.1.only_signal_with_registered= +account.{$row.line_number}.outbound_proxy.2.failback_subscribe.enable= +account.{$row.line_number}.outbound_proxy.2.invite_retry_counts= +account.{$row.line_number}.outbound_proxy.2.only_signal_with_registered= +account.{$row.line_number}.sip_server.1.only_signal_with_registered= +account.{$row.line_number}.sip_server.2.only_signal_with_registered= +account.{$row.line_number}.sip_server.1.failback_subscribe.enable= +account.{$row.line_number}.sip_server.2.failback_subscribe.enable= ####################################################################################### ## Register Advanced ## @@ -87,32 +115,39 @@ account.1.sip_server.2.failback_subscribe.enable= ##It configures the SIP server type for account X.0-Default,2-BroadSoft,4-Cosmocom,6-UCAP ##The default value is 0. -account.1.sip_server_type = +#Configure the SIP server type 0-Default (default), 2-BroadSoft, 4-Cosmocom +account.{$row.line_number}.sip_server_type = +#Enable or disable the phone to send the account log-off message first and then send account register message when rebooting the phone 0-Disabled (default), 1-Enabled + +account.{$row.line_number}.unregister_on_reboot = + +#Enable or disable the phone to send the MAC address and line number in the Register message 0-Disabled (default), 1-Enabled +account.{$row.line_number}.register_mac = +account.{$row.line_number}.register_line = + +#Configure the interval (in seconds) the phone retries to register when account1 fails to register. It ranges from 0 to 1800, the default value is 30. +account.{$row.line_number}.reg_fail_retry_interval = + +#Specify whether to encrypt the SIP messages 0-Disabled (default), 1-Forced, 2-Negotiated +account.{$row.line_number}.srtp_encryption = {$yealink_srtp_encryption} -account.1.unregister_on_reboot = -account.1.register_mac = -account.1.register_line = -account.1.reg_fail_retry_interval = -account.1.srtp_encryption= ###################################################################################### ## NAT Settings ## ###################################################################################### -##It enables or disables the NAT traversal for account X.0-Disabled,1-Enabled -##The default value is 0. -account.1.nat.nat_traversal = +##It enables or disables the NAT traversal for account X.0-Disabled (default),1-Enabled 1-STUN +account.{$row.line_number}.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if} ##It configures the type of keep-alive packets sent by the phone to the NAT static to keep the communication port open so that NAT can continue to function for account X. ##0-Dsiabled,1-Default: the phone sends UDP packets to the server,2-Option: the phone sends SIP OPTION packets to the server,3-Notify: the phone sends SIP NOTIFY packets to the server. -##The default value is 1. -account.1.nat.udp_update_enable = +account.{$row.line_number}.nat.udp_update_enable = 3 ##It configures the keep-alive interval (in seconds) for account X. ##The default value is 30.Integer from 15 to 2147483647 -account.1.nat.udp_update_time = +account.{$row.line_number}.nat.udp_update_time = 30 ##It enables or disables NAT Rport feature for account X.0-Disabled,1-Enabled ##The default value is 0. -account.1.nat.rport = +account.{$row.line_number}.nat.rport = {$yealink_rport_1} ####################################################################################### @@ -122,19 +157,20 @@ account.1.nat.rport = ##It configures the voice mail number for account X. ##The default value is blank. -voice_mail.number.1 = + +voice_mail.number.{$row.line_number} = {$voicemail_number} ##Except T19P/T21P Models -account.1.auto_dial_enable = -account.1.auto_dial_num = +account.{$row.line_number}.auto_dial_enable = +account.{$row.line_number}.auto_dial_num = -account.1.call_id_mode = -account.1.call_info = +account.{$row.line_number}.call_id_mode = +account.{$row.line_number}.call_info = -account.1.invite_with_pani_header.enable= +account.{$row.line_number}.invite_with_pani_header.enable= -#####V84SP4新需求新增#### -account.1.sip_server_mode= +#####V84SP4#### +account.{$row.line_number}.sip_server_mode= ####################################################################################### @@ -142,100 +178,100 @@ account.1.sip_server_mode= ####################################################################################### ##It enables or disables the phone to subscribe the message waiting indicator for account X.0-Disabled,1-Enabled. ##The default value is 0. -account.1.subscribe_mwi = +account.{$row.line_number}.subscribe_mwi = {$yealink_subscribe_mwi} ##It is configuration MWI is NOTIFY messages, whether in Terminated status attributes. ##The default value is 0(Don't handle terminated values) -account.1.mwi_parse_terminated = +account.{$row.line_number}.mwi_parse_terminated = ##It configures the interval (in seconds) of MWI subscription for account X. ##The default value is 3600. -account.1.subscribe_mwi_expires = +account.{$row.line_number}.subscribe_mwi_expires = 3600 ##It enables or disables the phone to subscribe to the voice mail number for the message waiting indicator for account X.0-Disabled,1-Enabled. ##The default value is 0. -account.1.subscribe_mwi_to_vm = +account.{$row.line_number}.subscribe_mwi_to_vm = 1 ##It configures the period (in seconds) of ACD subscription for account X. ##The default value is 1800.Except T19P/T21P Models -account.1.subscribe_acd_expires= +account.{$row.line_number}.subscribe_acd_expires= 3600 -account.1.display_mwi.enable= -account.1.subscribe_register = +account.{$row.line_number}.display_mwi.enable= +account.{$row.line_number}.subscribe_register = ####################################################################################### ## Broadsoft ACD ## ####################################################################################### -account.1.acd.enable= -account.1.acd.unavailable_reason_enable= -account.1.acd.initial_state= +account.{$row.line_number}.acd.enable= 0 +account.{$row.line_number}.acd.unavailable_reason_enable= 0 +account.{$row.line_number}.acd.initial_state= 1 ##account.X.reason_code.Y= ##account.X.reason_code_name.Y= ##The value Y must be continuous. -account.1.reason_code.1= -account.1.reason_code_name.1= +account.{$row.line_number}.reason_code.1= +account.{$row.line_number}.reason_code_name.1= -####V84SP4新增##### +####V84SP4##### ###account.X.acd.available ###account.X.acd.available_url ###account.X.acd.away_url ###account.X.acd.call_information= ###account.X.acd.refresh_url= -account.1.acd.available -account.1.acd.available_url -account.1.acd.away_url -account.1.acd.call_information= -account.1.acd.refresh_url= +account.{$row.line_number}.acd.available +account.{$row.line_number}.acd.available_url +account.{$row.line_number}.acd.away_url +account.{$row.line_number}.acd.call_information= +account.{$row.line_number}.acd.refresh_url= ####################################################################################### ## Broadsoft Call Center ## ####################################################################################### -####V84SP4新增##### +####V84SP4##### ##The value Y must be continuous(Y ranges from 1 to 100). #account.X.bw_disp_code.Y= #account.X.bw_disp_code_name.Y= -account.1.bw_disp_code.1= -account.1.bw_disp_code_name.1= +account.{$row.line_number}.bw_disp_code.1= +account.{$row.line_number}.bw_disp_code_name.1= ####################################################################################### ## BLF List(Except T19D Model) ## ####################################################################################### ##It configures the BLF List URI to monitor a list of users for account X. ##The default value is blank. -account.1.blf.blf_list_uri = +account.{$row.line_number}.blf.blf_list_uri = ##It configures the feature access code for directed call pickup (default: *97) for account X. ##The default value is blank. -account.1.blf_list_code = +account.{$row.line_number}.blf_list_code = ##It configures the feature access code for directed call pickup with barge-in (default: *33) for account X. ##The default value is blank. -account.1.blf_list_barge_in_code = +account.{$row.line_number}.blf_list_barge_in_code = ##It configures the period (in seconds) of the BLF subscription for account X. ##The default value is 1800.Integer from 30 to 2147483647. -account.1.blf.subscribe_period = +account.{$row.line_number}.blf.subscribe_period = 1800 ##It configures the event of the BLF subscription for account X.0-Dialog,1-Presence. ##The default value is 0. -account.1.blf.subscribe_event = +account.{$row.line_number}.blf.subscribe_event = ##It enables or disables the phone to handle NOTIFY messages out of the BLF dialog for account X.0-Disabled,1-Enabled. ##The default value is 0. -account.1.out_dialog_blf_enable = +account.{$row.line_number}.out_dialog_blf_enable = 0 ##It configures the BLF List Retrieve call parked code for account X. ##The default value is blank -account.1.blf_list_retrieve_call_parked_code = +account.{$row.line_number}.blf_list_retrieve_call_parked_code = -account.1.blf.match_host.enable= +account.{$row.line_number}.blf.match_host.enable= -#####V84SP4新需求新增##### -account.1.blf_list_call_parked_code= -account.1.blf_list_call_parked_list= +#####V84SP4##### +account.{$row.line_number}.blf_list_call_parked_code= +account.{$row.line_number}.blf_list_call_parked_list= ####################################################################################### @@ -243,28 +279,33 @@ account.1.blf_list_call_parked_list= ####################################################################################### ##It enables or disables Broadsoft SCA feature for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.1.shared_line = + +{if isset($row.shared_line)} +account.{$row.line_number}.shared_line = {$row.shared_line} +{else} +account.{$row.line_number}.shared_line = 0 +{/if} ##It configures the Call Pull Feature access code for account X. ##The default value is blank. -account.1.shared_line_callpull_code = +account.{$row.line_number}.shared_line_callpull_code = ##It configures number of linekey for line. ##The default value is 1,you should enable auto line keys first. -account.1.number_of_linekey = +account.{$row.line_number}.number_of_linekey = ##It config whether you can retrieve the remote hold call through line key ##The default value is 1 -account.1.shared_line_one_touch_retrieve.enable= +account.{$row.line_number}.shared_line_one_touch_retrieve.enable= ##It config whether you can barge in the active call through line key ##The default value is 1 -account.1.shared_line_one_touch_bargein.enable = +account.{$row.line_number}.shared_line_one_touch_bargein.enable = -account.1.share_line.barge_in.enable= +account.{$row.line_number}.share_line.barge_in.enable= -####V84SP4新需求新增#### -account.1.share_line.cancel_private_code= -account.1.share_line.enable_private_code= +####V84SP4#### +account.{$row.line_number}.share_line.cancel_private_code= +account.{$row.line_number}.share_line.enable_private_code= -####V85新需求新增#### +####V85#### account.X.shared_line.idle_details= ####################################################################################### @@ -272,7 +313,7 @@ account.X.shared_line.idle_details= ####################################################################################### ##It enables or disables Broadsoft Callpark for account X.0-Disabled,1-Broadsoft SCA. ##The default value is 0. -account.1.callpark_enable = +account.{$row.line_number}.callpark_enable = ####################################################################################### ## Audio Codec ## @@ -280,54 +321,59 @@ account.1.callpark_enable = ###account.X.codec..enable#### ###account.X.codec..priority#### -account.1.codec.g722.enable = -account.1.codec.g722.priority = +account.{$row.line_number}.codec.ilbc_15_2kbps.priority= 0 +account.{$row.line_number}.codec.ilbc_15_2kbps.enable= 0 +account.{$row.line_number}.codec.ilbc_13_33kbps.priority= {if isset($yealink_codec_iLBC_priority)}{$yealink_codec_iLBC_priority}{else}0{/if} +account.{$row.line_number}.codec.ilbc_13_33kbps.enable = {if isset($yealink_codec_iLBC_enable)}1{else}0{/if} -account.1.codec.g729.enable = -account.1.codec.g729.priority = +account.{$row.line_number}.codec.g722.enable = {if isset($yealink_codec_g722_enable)}{$yealink_codec_g722_enable}{else}0{/if} +account.{$row.line_number}.codec.g722.priority = {if isset($yealink_codec_g722_priority)}{$yealink_codec_g722_priority}{else}0{/if} -account.1.codec.g723_53.enable = -account.1.codec.g723_53.priority = +account.{$row.line_number}.codec.g729.enable = {if isset($yealink_codec_g729_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g729.priority = {if isset($yealink_codec_g729_priority)}{$yealink_codec_g729_priority}{else}0{/if} -account.1.codec.g723_63.enable = -account.1.codec.g723_63.priority = +account.{$row.line_number}.codec.g723_53.enable = {if isset($yealink_codec_g723_53_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g723_53.priority = {if isset($yealink_codec_g723_53_priority)}{$yealink_codec_g723_53_priority}{else}0{/if} -account.1.codec.g726_16.enable = -account.1.codec.g726_16.priority = +account.{$row.line_number}.codec.g723_63.enable = {if isset($yealink_codec_g723_63_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g723_63.priority = {if isset($yealink_codec_g723_63_priority)}{$yealink_codec_g723_63_priority}{else}0{/if} -account.1.codec.g726_24.enable = -account.1.codec.g726_24.priority = +account.{$row.line_number}.codec.g726_16.enable = {if isset($yealink_codec_g726_16_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g726_16.priority = {if isset($yealink_codec_g726_16_priority)}{$yealink_codec_g726_16_priority}{else}0{/if} -account.1.codec.g726_32.enable = -account.1.codec.g726_32.priority = +account.{$row.line_number}.codec.g726_24.enable = {if isset($yealink_codec_g726_24_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g726_24.priority = {if isset($yealink_codec_g726_24_priority)}{$yealink_codec_g726_24_priority}{else}0{/if} -account.1.codec.g726_40.enable = -account.1.codec.g726_40.priority = +account.{$row.line_number}.codec.g726_32.enable = {if isset($yealink_codec_g726_32_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g726_32.priority = {if isset($yealink_codec_g726_32_priority)}{$yealink_codec_g726_32_priority}{else}0{/if} -account.1.codec.ilbc.enable = -account.1.codec.ilbc.priority = +account.{$row.line_number}.codec.g726_40.enable = {if isset($yealink_codec_g726_40_enable)}1{else}0{/if} +account.{$row.line_number}.codec.g726_40.priority = {if isset($yealink_codec_g726_40_priority)}{$yealink_codec_g726_40_priority}{else}0{/if} -account.1.codec.opus.enable = -account.1.codec.opus.priority = -account.1.codec.opus.para= +account.{$row.line_number}.codec.ilbc.enable = +account.{$row.line_number}.codec.ilbc.priority = -account.1.codec.pcmu.enable = -account.1.codec.pcmu.priority = +account.{$row.line_number}.codec.opus.enable = {if isset($yealink_codec_opus_enable)}1{else}0{/if} +account.{$row.line_number}.codec.opus.priority = {if isset($yealink_codec_opus_priority)}{$yealink_codec_opus_priority}{else}0{/if} +account.{$row.line_number}.codec.opus.para= -account.1.codec.pcma.enable = -account.1.codec.pcma.priority = +account.{$row.line_number}.codec.pcmu.enable = {if isset($yealink_codec_pcmu_enable)}1{else}0{/if} +account.{$row.line_number}.codec.pcmu.priority = {if isset($yealink_codec_pcmu_priority)}{$yealink_codec_pcmu_priority}{else}0{/if} -account.1.codec.g722_1_24kpbs.enable = -account.1.codec.g722_1_24kpbs.priority = +account.{$row.line_number}.codec.pcma.enable = {if isset($yealink_codec_pcma_enable)}1{else}0{/if} +account.{$row.line_number}.codec.pcma.priority = {if isset($yealink_codec_pcma_priority)}{$yealink_codec_pcma_priority}{else}0{/if} -account.1.codec.g722_1c_24kpbs.enable = -account.1.codec.g722_1c_24kpbs.priority = +account.{$row.line_number}.codec.g722_1_24kpbs.enable = +account.{$row.line_number}.codec.g722_1_24kpbs.priority = -account.1.codec.g722_1c_32kpbs.enable = -account.1.codec.g722_1c_32kpbs.priority = +account.{$row.line_number}.codec.g722_1c_24kpbs.enable = +account.{$row.line_number}.codec.g722_1c_24kpbs.priority = -account.1.codec.g722_1c_48kpbs.enable = -account.1.codec.g722_1c_48kpbs.priority = +account.{$row.line_number}.codec.g722_1c_32kpbs.enable = +account.{$row.line_number}.codec.g722_1c_32kpbs.priority = + +account.{$row.line_number}.codec.g722_1c_48kpbs.enable = +account.{$row.line_number}.codec.g722_1c_48kpbs.priority = ####################################################################################### ## Video Codec ## @@ -335,82 +381,87 @@ account.1.codec.g722_1c_48kpbs.priority = ####account.X.video..enable#### ####account.X.video..priority#### -account.1.video.h264.enable = -account.1.video.h264.priority = +account.{$row.line_number}.video.h264.enable = +account.{$row.line_number}.video.h264.priority = -account.1.video.h264hp.enable = -account.1.video.h264hp.priority = +account.{$row.line_number}.video.h264hp.enable = +account.{$row.line_number}.video.h264hp.priority = -account.1.video.vp8.enable = -account.1.video.vp8.priority = +account.{$row.line_number}.video.vp8.enable = +account.{$row.line_number}.video.vp8.priority = ####################################################################################### ## Audio Advanced ## ####################################################################################### ##It configures the RTP packet time for account X.0 (Disabled), 10, 20, 30, 40, 50 or 60. ##The default value is 20. -account.1.ptime = +account.{$row.line_number}.ptime = ####################################################################################### ## Anonymous Call ## ####################################################################################### -account.1.send_anonymous_code = -account.1.anonymous_call = -account.1.anonymous_call_oncode = -account.1.anonymous_call_offcode = -account.1.reject_anonymous_call = -account.1.anonymous_reject_oncode = -account.1.anonymous_reject_offcode = -account.1.send_anonymous_rejection_code = +account.{$row.line_number}.send_anonymous_code = +account.{$row.line_number}.anonymous_call = 0 +account.{$row.line_number}.anonymous_call_oncode = +account.{$row.line_number}.anonymous_call_offcode = +account.{$row.line_number}.reject_anonymous_call = +account.{$row.line_number}.anonymous_reject_oncode = +account.{$row.line_number}.anonymous_reject_offcode = +account.{$row.line_number}.send_anonymous_rejection_code = -####V84SP4新增##### -account.1.anonymous_call.server_base_only= +####V84SP4##### +account.{$row.line_number}.anonymous_call.server_base_only= ####################################################################################### ## Pickup Code ## ####################################################################################### ##It enables or disables the phone to pick up a call according to the SIP header of dialog-info for account X.0-Disabled,1-Enabled. ##The default value is 0. -account.1.dialoginfo_callpickup = +account.{$row.line_number}.dialoginfo_callpickup = 0 ##It configures the group pickup code for account X. ##The default value is blank. -account.1.group_pickup_code = +account.{$row.line_number}.group_pickup_code = ##It configures the directed pickup code for account X. ##The default value is blank. -account.1.direct_pickup_code = +account.{$row.line_number}.direct_pickup_code = -account.1.refresh_remote_id.enable = +account.{$row.line_number}.refresh_remote_id.enable = ####################################################################################### ## DTMF ## ####################################################################################### -account.1.dtmf.type = -account.1.dtmf.info_type = -account.1.dtmf.dtmf_payload = +#Configure the DTMF type 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO +account.{$row.line_number}.dtmf.type = {$yealink_dtmf_type} + +#Configure the DTMF info type when using the SIP INFO 0-Disabled (default), 1-DTMF-Relay, 2-DTMF, 3-Telephone-Event +account.{$row.line_number}.dtmf.info_type = + +#Configure the RFC2833 payload. It ranges from 96 to 255, the default value is 101. +account.{$row.line_number}.dtmf.dtmf_payload = ####################################################################################### ## Alert info ## ####################################################################################### ##It enables or disables the distinctive ringtones by the Alert-Info SIP header for account X.0-Disabled,1-Enabled. ##The default value is 0. -account.1.alert_info_url_enable = +account.{$row.line_number}.alert_info_url_enable = ##Except T19P/T21P Models ##The default value is blank.Values range 256 characters in length -account.1.alert_info = -account.1.ringtone.ring_type = +account.{$row.line_number}.alert_info = +account.{$row.line_number}.ringtone.ring_type = ###Only for T46G Model ##It enables or disables the phone to download the picture information for account X when receiving an incoming call or during a call.0-Disabled,1-Enabled. ##The default value is 0. -account.1.picture_info_enable = +account.{$row.line_number}.picture_info_enable = 1 ####################################################################################### ## Trnasfer ## ####################################################################################### -###V84SP4新需求新增##### -account.1.phone_setting.call_appearance.transfer_via_new_linekey= +###V84SP4##### +account.{$row.line_number}.phone_setting.call_appearance.transfer_via_new_linekey= ####################################################################################### @@ -418,32 +469,36 @@ account.1.phone_setting.call_appearance.transfer_via_new_linekey= ####################################################################################### ##It configures the conference type for account X.0-Local Conference,2-Network Conference. ##The default value is 0. -account.1.conf_type = +account.{$row.line_number}.conf_type = {if $nway_conference == 'true'}2{elseif $nway_conference == 'false'}0{/if} ##It configures the network conference URI for account X. ##The default value is blank. -account.1.conf_uri = +account.{$row.line_number}.conf_uri = {if $nway_conference == 'true'}nway{$row.user_id}@{$row.server_address}{/if} -###V84SP4新需求新增##### -account.1.phone_setting.call_appearance.conference_via_new_linekey= +###V84SP4##### +account.{$row.line_number}.phone_setting.call_appearance.conference_via_new_linekey= -###V85新需求新增##### +###V85##### account.X.networkconf_type= ####################################################################################### ## CID Source ## ####################################################################################### -account.1.cid_source = -account.1.cid_source_privacy = -account.1.cid_source_ppi = -account.1.cp_source = +#Configure the type of SIP header(s) to carry the caller ID 0-FROM (default), 1-PAI 2-PAI-FROM, 3-PRID-PAI-FROM, 4-PAI-RPID-FROM, 5-RPID-FROM +account.{$row.line_number}.cid_source = {$yealink_cid_source} + +account.{$row.line_number}.cid_source_privacy = 1 +account.{$row.line_number}.cid_source_ppi = 1 + +#Configure the presentation of the callee ID 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916 +account.{$row.line_number}.cp_source = 2 ####################################################################################### ## Session Timer ## ####################################################################################### -account.1.session_timer.enable = -account.1.session_timer.expires = -account.1.session_timer.refresher = +account.{$row.line_number}.session_timer.enable = +account.{$row.line_number}.session_timer.expires = +account.{$row.line_number}.session_timer.refresher = ####################################################################################### ## Music on Hold ## @@ -452,78 +507,78 @@ account.1.session_timer.refresher = ##0-Calling the music server before holding ##1-Calling the music server after holding ##The default value is 0. -account.1.music_on_hold_type = +account.{$row.line_number}.music_on_hold_type = ##It configures the URI of the Music On Hold server for account X. ##The default value is blank. -account.1.music_server_uri = +account.{$row.line_number}.music_server_uri = ####################################################################################### ## Advanced ## ####################################################################################### -account.1.auto_answer = -account.1.missed_calllog = -account.1.100rel_enable = -account.1.enable_user_equal_phone = -account.1.compact_header_enable = -account.1.custom_ua = +account.{$row.line_number}.auto_answer = +account.{$row.line_number}.missed_calllog = +account.{$row.line_number}.100rel_enable = +account.{$row.line_number}.enable_user_equal_phone = +account.{$row.line_number}.compact_header_enable = +account.{$row.line_number}.custom_ua = ####################################################################################### ## DND(Except T19 Model) ## ####################################################################################### -account.1.dnd.enable = -account.1.dnd.on_code = -account.1.dnd.off_code = +account.{$row.line_number}.dnd.enable = +account.{$row.line_number}.dnd.on_code = +account.{$row.line_number}.dnd.off_code = ####################################################################################### ## Call Forward(Except T19 Model) ## ####################################################################################### -account.1.always_fwd.enable = -account.1.always_fwd.target = -account.1.always_fwd.off_code = -account.1.always_fwd.on_code = -account.1.busy_fwd.enable = -account.1.busy_fwd.target = -account.1.busy_fwd.off_code = -account.1.busy_fwd.on_code = -account.1.timeout_fwd.enable = -account.1.timeout_fwd.target = -account.1.timeout_fwd.timeout = -account.1.timeout_fwd.off_code = -account.1.timeout_fwd.on_code = +account.{$row.line_number}.always_fwd.enable = +account.{$row.line_number}.always_fwd.target = +account.{$row.line_number}.always_fwd.off_code = +account.{$row.line_number}.always_fwd.on_code = +account.{$row.line_number}.busy_fwd.enable = +account.{$row.line_number}.busy_fwd.target = +account.{$row.line_number}.busy_fwd.off_code = +account.{$row.line_number}.busy_fwd.on_code = +account.{$row.line_number}.timeout_fwd.enable = +account.{$row.line_number}.timeout_fwd.target = +account.{$row.line_number}.timeout_fwd.timeout = +account.{$row.line_number}.timeout_fwd.off_code = +account.{$row.line_number}.timeout_fwd.on_code = ####################################################################################### ## Voice Monitoring (Except T19P/T21P Models) ## ####################################################################################### -account.1.vq_rtcpxr.collector_name= -account.1.vq_rtcpxr.collector_server_host= -account.1.vq_rtcpxr.collector_server_port= +account.{$row.line_number}.vq_rtcpxr.collector_name= +account.{$row.line_number}.vq_rtcpxr.collector_server_host= +account.{$row.line_number}.vq_rtcpxr.collector_server_port= ####################################################################################### ## Broadsoft XSI ## ####################################################################################### -##It configures the user name for XSI authentication for account X.Example:account.1.xsi.user = 3502@as.iop1.broadworks.net. +##It configures the user name for XSI authentication for account X.Example:account.{$row.line_number}.xsi.user = 3502@as.iop1.broadworks.net. ##The default value is blank. -account.1.xsi.user = +account.{$row.line_number}.xsi.user = -##It configures the password for XSI authentication for account X.Example:account.1.xsi.password = 123456. +##It configures the password for XSI authentication for account X.Example:account.{$row.line_number}.xsi.password = 123456. ##The default value is blank. -account.1.xsi.password = +account.{$row.line_number}.xsi.password = -##It configures the access URL of the Xtended Services Platform server for account X.Example:account.1.xsi.host = xsp1.iop1.broadworks.net. +##It configures the access URL of the Xtended Services Platform server for account X.Example:account.{$row.line_number}.xsi.host = xsp1.iop1.broadworks.net. ##The default value is blank. -account.1.xsi.host = +account.{$row.line_number}.xsi.host = -##It configures the server type of the Xtended Services Platform server for account X.Example:account.1.xsi.server_type = http. +##It configures the server type of the Xtended Services Platform server for account X.Example:account.{$row.line_number}.xsi.server_type = http. ##The default value is http. -account.1.xsi.server_type = +account.{$row.line_number}.xsi.server_type = -##It configures the server port of the Xtended Services Platform server for account X.Example:account.1.xsi.port = 80. +##It configures the server port of the Xtended Services Platform server for account X.Example:account.{$row.line_number}.xsi.port = 80. ##The default value is 80.Integer from 1 to 65535 -account.1.xsi.port = +account.{$row.line_number}.xsi.port = -#####V84SP4新需求新增#### +#####V84SP4#### bw.virtual_user.1.enable= bw.virtual_user.1.label= bw.virtual_user.1.xsi.dnd.enable= @@ -549,80 +604,82 @@ account.x.contact_take_line_param = ####################################################################################### account.x.instance_id.enable = -account.1.reg_with_pani_header.enable = +account.{$row.line_number}.reg_with_pani_header.enable = ####################################################################################### ## V81 Add ## ####################################################################################### -account.1.dialplan.digitmap.active.on_hook_dialing = -account.1.dialplan.digitmap.apply_to.directory_dial = -account.1.dialplan.digitmap.apply_to.forward = -account.1.dialplan.digitmap.apply_to.on_hook_dial = -account.1.dialplan.digitmap.apply_to.press_send = -account.1.dialplan.digitmap.enable = -account.1.dialplan.digitmap.interdigit_long_timer = -account.1.dialplan.digitmap.interdigit_short_timer = -account.1.dialplan.digitmap.no_match_action = -account.1.dialplan.digitmap.string = -account.1.dialplan.digitmap.apply_to.history_dial= +account.{$row.line_number}.dialplan.digitmap.active.on_hook_dialing = +account.{$row.line_number}.dialplan.digitmap.apply_to.directory_dial = +account.{$row.line_number}.dialplan.digitmap.apply_to.forward = +account.{$row.line_number}.dialplan.digitmap.apply_to.on_hook_dial = +account.{$row.line_number}.dialplan.digitmap.apply_to.press_send = +account.{$row.line_number}.dialplan.digitmap.enable = +account.{$row.line_number}.dialplan.digitmap.interdigit_long_timer = +account.{$row.line_number}.dialplan.digitmap.interdigit_short_timer = +account.{$row.line_number}.dialplan.digitmap.no_match_action = +account.{$row.line_number}.dialplan.digitmap.string = +account.{$row.line_number}.dialplan.digitmap.apply_to.history_dial= ####################################################################################### ## VP59/T58V-V40 Add ## ####################################################################################### -account.1.hold_use_inactive = -account.1.call_recording.enable = -account.1.features.call_decline.enable = -account.1.line_seize.expires = -account.1.security_classification.enable = +account.{$row.line_number}.hold_use_inactive = +account.{$row.line_number}.call_recording.enable = +account.{$row.line_number}.features.call_decline.enable = +account.{$row.line_number}.line_seize.expires = +account.{$row.line_number}.security_classification.enable = ####################################################################################### ## Features Sync ## ####################################################################################### -account.1.features.forward.feature_key_sync.local_processing.enable= -account.1.features.dnd.feature_key_sync.local_processing.enable = +account.{$row.line_number}.features.forward.feature_key_sync.local_processing.enable= +account.{$row.line_number}.features.dnd.feature_key_sync.local_processing.enable = -####V84SP4新需求新增##### -account.1.feature_key_sync.enable -account.1.forward.feature_key_sync.enable -account.1.dnd.feature_key_sync.enable +####V84SP4##### +account.{$row.line_number}.feature_key_sync.enable +account.{$row.line_number}.forward.feature_key_sync.enable +account.{$row.line_number}.dnd.feature_key_sync.enable ####################################################################################### ## Broadsoft Flexible Seating ## ####################################################################################### ##VP59/T58V-V40 Add -account.1.flexible_seating.enable= -account.1.hoteling.pin= -account.1.hoteling.mode= +account.{$row.line_number}.flexible_seating.enable= +account.{$row.line_number}.hoteling.pin= +account.{$row.line_number}.hoteling.mode= ####################################################################################### ## Broadsoft Hoteling ## ####################################################################################### ##VP59/T58V-V40 Add -account.1.hoteling.enable= -account.1.hoteling.user_id= -account.1.hoteling.password= -account.1.hoteling.expires= -account.1.hoteling.auto_login_enable= +account.{$row.line_number}.hoteling.enable= 0 +account.{$row.line_number}.hoteling.user_id= 0 +account.{$row.line_number}.hoteling.password= 0 +account.{$row.line_number}.hoteling.expires= +account.{$row.line_number}.hoteling.auto_login_enable= 0 ####################################################################################### ## Call Configuration ## ####################################################################################### -####V84SP4新增##### -account.1.auto_label.enable= -account.1.auto_label.rule= -account.1.phone_setting.call_appearance.calls_per_linekey= +####V84SP4##### +account.{$row.line_number}.auto_label.enable= +account.{$row.line_number}.auto_label.rule= +account.{$row.line_number}.phone_setting.call_appearance.calls_per_linekey= + +{/foreach} ####################################################################################### ## PSTN ## ####################################################################################### -###V85新增#### +###V85#### pstn.account.x.auto_answer_mute_enable= pstn.account.x.auto_answer= pstn.account.x.enable= pstn.account.x.label= pstn.account.x.missed_calllog= pstn.account.x.ring_type= -###V86新增#### +###V86#### account.*.codec.g729ab.enable= account.*.codec.g729ab.priority=