#!version:1.0.0.1
#{$microtime}

##File header "#!version:1.0.0.1" can not be edited or deleted.##

#######################################################################################
##                                   Account1 Settings                               ##
#######################################################################################

#Enable or disable the account 1; 0-Disabled (default), 1-Enabled;
{if isset($account.1.password) }
account.1.enable = 1
{else}
account.1.enable = 0
{/if}

#Configure the label displayed on the LCD screen for account 1.
account.1.label = {$account.1.label}

#Configure the display name of account 1.
account.1.display_name = {$account.1.display_name}

#Configure the username and password for register authentication.
account.1.auth_name = {$account.1.auth_id}
account.1.password = {$account.1.password}

#Configure the register user name.
{if isset($account.1.server.1.address)}
account.1.user_name = {$account.1.user_id}@{$account.1.server_address}
{else}
account.1.user_name = {$account.1.user_id}
{/if}

#Configure the SIP server address.
account.1.sip_server_host = {$account.1.server_address}

#Specify the port for the SIP server. The default value is 5060.
account.1.sip_server_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}

#Enable or disable to use the outbound proxy server; 0-Disabled (default), 1-Enabled;


#Specify the IP address or domain name of the outbound proxy server.
account.1.outbound_host = {$account.1.outbound_proxy_primary}

#Specify the server port, the default value is 5060.
account.1.outbound_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.transport = 0{/if}
{if $account.1.sip_transport == 'tcp'}account.1.transport = 1{/if}
{if $account.1.sip_transport == 'tls'}account.1.transport = 2{/if}
{if $account.1.sip_transport == 'dns srv'}account.1.transport = 3{/if}

account.1.outbound_proxy.1.address = {$account.1.outbound_proxy_primary}
account.1.outbound_proxy.2.address = {$account.1.outbound_proxy_secondary}
account.1.outbound_proxy_enable = {if isset($account.1.outbound_proxy_primary)}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 = {$account.1.sip_port}
{/if}
{if isset($outbound_proxy_1_port)}
account.1.outbound_proxy.2.port = {$outbound_proxy_2_port}
{else}
account.1.outbound_proxy.2.port = {$account.1.sip_port}
{/if}

#Configure the address of the backup outbound proxy server.
account.1.backup_outbound_host =

#Specify the port of the backup outbound proxy server, the default value is 5060.
account.1.backup_outbound_port =


#Enable or disable the anonymous call feature; 0-Disabled (default), 1-Enabled;
account.1.anonymous_call =

#Configure the on code and off code of the anonymous call feature.
account.1.anonymous_call_oncode =
account.1.anonymous_call_offcode =

#Enable or disable the reject anonymous call feature; 0-Disabled (default), 1-Enabled;
account.1.reject_anonymous_call =

#Configure the on code and off code of the reject anonymous call feature.
account.1.anonymous_reject_oncode =
account.1.anonymous_reject_offcode =

#Configure the SIP port for account 1, the default value is 5060.
account.1.sip_listen_port =

#Configure the register expiry time (in seconds), the default value is 3600.
account.1.expires = {$account.1.register_expires}

#Enable or disable the 100 reliable retransmission; 0-Disabled, 1-Enabled (default);
account.1.100rel_enable = {$yealink_retransmission}

#Enable or disable the resource reservation; 0-Disabled (default), 1-Enabled;
account.1.precondition =

#Enable or disable the phone to subscribe the register status; 0-Disabled (default), 1-Enabled;
account.1.subscribe_register =

#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.1.subscribe_mwi = {$yealink_subscribe_mwi}

#Configure MWI subscribe expiry time (in seconds). It ranges from 0 to 84600, the default value is 3600.
account.1.subscribe_mwi_expires = 3600

#Configure the type of SIP header to carry the caller ID; 0-FROM (default), 1-PAI;
account.1.cid_source = {$yealink_cid_source}

#Configure the presentation of the callee ID; 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916;
account.1.cp_source = 2

#Enable or disable the session timer; 0-Disabled (default), 1-Enabled;
account.1.session_timer.enable = {$yealink_session_timer}

#Configure the refresh session timer interval (in seconds). It ranges from 1 to 9999.
account.1.session_timer.expires =

#Configure the session timer refresher; 0-Uac (default), 1-Uas;
account.1.session_timer.refresher =

#Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled;
account.1.enable_user_equal_phone =

#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption = {$yealink_srtp_encryption}

#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.1.ptime =

#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 = 0

#Enable or disable the phone to send the MAC address in the Register message; 0-Disabled (default), 1-Enabled;
account.1.register_mac =

#Enable or disable the phone to send the line number in the Register message; 0-Disabled, 1-Enabled (default);
account.1.register_line =

#Configure the interval (in seconds) the phone retries to register when account 1 fails to register. It ranges from 0 to 1800, the default value is 30.
account.1.reg_fail_retry_interval =

#Enable or disable the SIP signal encode; 0-Disabled (default), 1-Enabled (RC 4);
account.1.enable_signal_encode =

#Configure the key for encoding.
account.1.signal_encode_key =

#Configure the DTMF type; 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO;
account.1.dtmf.type = {$yealink_dtmf_type}

#Configure the RFC2833 payload. It ranges from 96 to 225, the default value is 101.
account.1.dtmf.dtmf_payload =

#Configure the DTMF info type when using the SIP INFO; 0-Disabled, 1-DTMF-Relay (default), 2-DTMF, 3-Telephone-Event;
account.1.dtmf.info_type =


#######################################################################################
##                                   NAT Settings                                    ##
#######################################################################################

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.1.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if}

#Configure the STUN server address.
account.1.nat.stun_server = {$stun_server}

#Configure the STUN server port, the default value is 3478.
account.1.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.1.nat.udp_update_enable = {if isset($account.1.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""}

#Specify the keep-alive interval (in seconds), the default value is 30.
account.1.nat.udp_update_time = 30

#Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled;
account.1.nat.rport = {$yealink_rport}

#Configure the session timer (in seconds), the default values of T1, T2, T3 are 0.5, 4, 5.
account.1.advanced.timer_t1 =
account.1.advanced.timer_t2 =
account.1.advanced.timer_t4 =

account.1.codec.1.enable = {if isset($yealink_codec_pcmu_enable)}1{else}0{/if}

account.1.codec.1.payload_type = PCMU
account.1.codec.1.priority = {if isset($yealink_codec_pcmu_priority)}{$yealink_codec_pcmu_priority}{else}0{/if}

account.1.codec.1.rtpmap = 0

account.1.codec.2.enable = {if isset($yealink_codec_pcma_enable)}1{else}0{/if}

account.1.codec.2.payload_type = PCMA
account.1.codec.2.priority = {if isset($yealink_codec_pcma_priority)}{$yealink_codec_pcma_priority}{else}0{/if}

account.1.codec.2.rtpmap = 8

account.1.codec.3.enable = {if isset($yealink_codec_g723_53_enable)}1{else}0{/if}

account.1.codec.3.payload_type = G723_53
account.1.codec.3.priority ={if isset($yealink_codec_g723_53_priority)}{$yealink_codec_g723_53_priority}{else}0{/if}

account.1.codec.3.rtpmap = 4

account.1.codec.4.enable = {if isset($yealink_codec_g723_63_enable)}1{else}0{/if}

account.1.codec.4.payload_type = G723_63
account.1.codec.4.priority = {if isset($yealink_codec_g723_63_priority)}{$yealink_codec_g723_63_priority}{else}0{/if}

account.1.codec.4.rtpmap = 4

account.1.codec.5.enable = {if isset($yealink_codec_g729_enable)}1{else}0{/if}

account.1.codec.5.payload_type = G729
account.1.codec.5.priority = {if isset($yealink_codec_g729_priority)}{$yealink_codec_g729_priority}{else}0{/if}

account.1.codec.5.rtpmap = 18

account.1.codec.6.enable = {if isset($yealink_codec_g722_enable)}1{else}0{/if}

account.1.codec.6.payload_type = G722
account.1.codec.6.priority = {if isset($yealink_codec_g722_priority)}{$yealink_codec_g722_priority}{else}0{/if}

account.1.codec.6.rtpmap = 9

account.1.codec.7.enable = {if isset($yealink_codec_iLBC_enable)}1{else}0{/if}

account.1.codec.7.payload_type = iLBC
account.1.codec.7.priority =  {if isset($yealink_codec_iLBC_priority)}{$yealink_codec_iLBC_priority}{else}0{/if}

account.1.codec.7.rtpmap = 106

account.1.codec.8.enable = {if isset($yealink_codec_g726_16_enable)}1{else}0{/if}

account.1.codec.8.payload_type = G726-16
account.1.codec.8.priority = {if isset($yealink_codec_g726_16_priority)}{$yealink_codec_g726_16_priority}{else}0{/if}

account.1.codec.8.rtpmap = 103

account.1.codec.9.enable = {if isset($yealink_codec_g726_24_enable)}1{else}0{/if}

account.1.codec.9.payload_type = G726-24
account.1.codec.9.priority = {if isset($yealink_codec_g726_24_priority)}{$yealink_codec_g726_24_priority}{else}0{/if}

account.1.codec.9.rtpmap = 104

account.1.codec.10.enable = {if isset($yealink_codec_g726_32_enable)}1{else}0{/if}

account.1.codec.10.payload_type = G726-32
account.1.codec.10.priority = {if isset($yealink_codec_g726_32_priority)}{$yealink_codec_g726_32_priority}{else}0{/if}

account.1.codec.10.rtpmap = 102

account.1.codec.11.enable = {if isset($yealink_codec_g726_40_enable)}1{else}0{/if}

account.1.codec.11.payload_type = G726-40
account.1.codec.11.priority = {if isset($yealink_codec_g726_40_priority)}{$yealink_codec_g726_40_priority}{else}0{/if}

account.1.codec.11.rtpmap = 105

account.1.codec.12.enable = {if isset($yealink_codec_gsm_enable)}1{else}0{/if}

account.1.codec.12.payload_type = GSM
account.1.codec.12.priority = {if isset($yealink_codec_gsm_priority)}{$yealink_codec_gsm_priority}{else}0{/if}

account.1.codec.12.rtpmap = 3

account.1.codec.13.enable = {if isset($yealink_codec_opus_enable)}1{else}0{/if}

account.1.codec.13.payload_type = opus
account.1.codec.13.priority = {if isset($yealink_codec_opus_priority)}{$yealink_codec_opus_priority}{else}0{/if}

account.1.codec.13.rtpmap = 106



#######################################################################################
##         	                   Call Forward                                          ##
#######################################################################################
#Enable or disable the always forward, 0-Disabled(default), 1-Enabled;
account.1.always_fwd.enable =

#Configure the target phonenumber that the phone will forward the call to;
account.1.always_fwd.target =

#Configure the on/off code for always forward;


#Enable or disable the busy forward, 0-Disabled(default), 1-Enabled;
account.1.busy_fwd.enable =
account.1.busy_fwd.target =


#Enable or disable the no answer forward, 0-Disabled(default), 1-Enabled;
#Configure the waiting ring times before forwarding, ranges from 0 to 20 (by default);
account.1.timeout_fwd.enable =
account.1.timeout_fwd.target =
account.1.timeout_fwd.timeout =


#######################################################################################
##                          DND                                                      ##
#######################################################################################

#Configure the DND key mode; 0-Phone mode (default), 1-Custom mode.
features.dnd_mode =

#Enable or disable the DND feautre for account1; 0-Disabled (default), 1-Enabled;
account.1.dnd.enable =

#Configure the DND on code and off code for account1.

account.1.sip_trust_ctrl = 1

#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
{if isset($account.1.shared_line) }
account.1.shared_line = {$account.1.shared_line}
{else}
account.1.shared_line = 0
{/if}

#Configure BLA number for account1 and the subscribe period (in seconds). It ranges from 60 to 7200, the default value is 300.
account.1.bla_number =
account.1.bla_subscribe_period = 300

#######################################################################################
##                                   Account2 Settings                               ##
#######################################################################################

#Enable or disable the account 1; 0-Disabled (default), 1-Enabled;
{if isset($account.2.password) }
account.2.enable = 1
{else}
account.2.enable = 0
{/if}

#Configure the label displayed on the LCD screen for account 1.
account.2.label = {$account.2.label}

#Configure the display name of account 1.
account.2.display_name = {$account.2.display_name}

#Configure the username and password for register authentication.
account.2.auth_name = {$account.2.user_id}
account.2.password = {$account.2.password}

#Configure the register user name.
{if isset($account.2.server.1.address)}
account.2.user_name = {$account.2.user_id}@{$account.2.server_address}
{else}
account.2.user_name = {$account.2.user_id}
{/if}

#Configure the SIP server address.
account.2.sip_server_host = {$account.2.server_address}

#Specify the port for the SIP server. The default value is 5060.
account.2.sip_server_port = {$account.2.sip_port}

#Enable or disable to use the outbound proxy server; 0-Disabled (default), 1-Enabled;


#Specify the IP address or domain name of the outbound proxy server.
account.2.outbound_host = {$account.2.outbound_proxy_primary}

#Specify the server port, the default value is 5060.
account.2.outbound_port = {$account.2.sip_port}
{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}
{if $account.2.sip_transport == 'tls'}account.2.transport = 2{/if}
{if $account.2.sip_transport == 'dns srv'}account.2.transport = 3{/if}

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}

#Configure the address of the backup outbound proxy server.
account.2.backup_outbound_host =

#Specify the port of the backup outbound proxy server, the default value is 5060.
account.2.backup_outbound_port =


#Enable or disable the anonymous call feature; 0-Disabled (default), 1-Enabled;
account.2.anonymous_call =

#Configure the on code and off code of the anonymous call feature.
account.2.anonymous_call_oncode =
account.2.anonymous_call_offcode =

#Enable or disable the reject anonymous call feature; 0-Disabled (default), 1-Enabled;
account.2.reject_anonymous_call =

#Configure the on code and off code of the reject anonymous call feature.
account.2.anonymous_reject_oncode =
account.2.anonymous_reject_offcode =

#Configure the SIP port for account 1, the default value is 5060.
account.2.sip_listen_port =

#Configure the register expiry time (in seconds), the default value is 3600.
account.2.expires = {$account.2.register_expires}

#Enable or disable the 100 reliable retransmission; 0-Disabled, 1-Enabled (default);
account.2.100rel_enable = {$yealink_retransmission}

#Enable or disable the resource reservation; 0-Disabled (default), 1-Enabled;
account.2.precondition =

#Enable or disable the phone to subscribe the register status; 0-Disabled (default), 1-Enabled;
account.2.subscribe_register =

#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.2.subscribe_mwi = {$yealink_subscribe_mwi}

#Configure MWI subscribe expiry time (in seconds). It ranges from 0 to 84600, the default value is 3600.
account.2.subscribe_mwi_expires = 3600

#Configure the type of SIP header to carry the caller ID; 0-FROM (default), 1-PAI;
account.2.cid_source = {$yealink_cid_source}

#Configure the presentation of the callee ID; 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916;
account.2.cp_source = 2

#Enable or disable the session timer; 0-Disabled (default), 1-Enabled;
account.2.session_timer.enable = {$yealink_session_timer}

#Configure the refresh session timer interval (in seconds). It ranges from 1 to 9999.
account.2.session_timer.expires =

#Configure the session timer refresher; 0-Uac (default), 1-Uas;
account.2.session_timer.refresher =

#Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled;
account.2.enable_user_equal_phone =

#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.2.srtp_encryption =

#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.2.ptime =

#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 = 0

#Enable or disable the phone to send the MAC address in the Register message; 0-Disabled (default), 1-Enabled;
account.2.register_mac =

#Enable or disable the phone to send the line number in the Register message; 0-Disabled, 1-Enabled (default);
account.2.register_line =

#Configure the interval (in seconds) the phone retries to register when account 1 fails to register. It ranges from 0 to 1800, the default value is 30.
account.2.reg_fail_retry_interval =

#Enable or disable the SIP signal encode; 0-Disabled (default), 1-Enabled (RC 4);
account.2.enable_signal_encode =

#Configure the key for encoding.
account.2.signal_encode_key =

#Configure the DTMF type; 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO;
account.2.dtmf.type = {$yealink_dtmf_type}

#Configure the RFC2833 payload. It ranges from 96 to 225, the default value is 101.
account.2.dtmf.dtmf_payload =

#Configure the DTMF info type when using the SIP INFO; 0-Disabled, 1-DTMF-Relay (default), 2-DTMF, 3-Telephone-Event;
account.2.dtmf.info_type =


#######################################################################################
##                                   NAT Settings                                    ##
#######################################################################################

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.2.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if}

#Configure the STUN server address.
account.2.nat.stun_server = {$stun_server}

#Configure the STUN server port, the default value is 3478.
account.2.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.2.nat.udp_update_enable = {if isset($account.2.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""}

#Specify the keep-alive interval (in seconds), the default value is 30.
account.2.nat.udp_update_time = 30

#Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled;
account.2.nat.rport = {$yealink_rport}

#Configure the session timer (in seconds), the default values of T1, T2, T3 are 0.5, 4, 5.
account.2.advanced.timer_t1 =
account.2.advanced.timer_t2 =
account.2.advanced.timer_t4 =

account.2.codec.1.enable = 1
account.2.codec.1.payload_type = PCMU
account.2.codec.1.priority = 1
account.2.codec.1.rtpmap = 0

account.2.codec.2.enable = 1
account.2.codec.2.payload_type = PCMA
account.2.codec.2.priority = 2
account.2.codec.2.rtpmap = 8

account.2.codec.3.enable = 0
account.2.codec.3.payload_type = G723_53
account.2.codec.3.priority =0
account.2.codec.3.rtpmap = 4

account.2.codec.4.enable = 0
account.2.codec.4.payload_type = G723_63
account.2.codec.4.priority = 0
account.2.codec.4.rtpmap = 4

account.2.codec.5.enable = 1
account.2.codec.5.payload_type = G729
account.2.codec.5.priority = 3
account.2.codec.5.rtpmap = 18

account.2.codec.6.enable = 1
account.2.codec.6.payload_type = G722
account.2.codec.6.priority = 4
account.2.codec.6.rtpmap = 9

account.2.codec.7.enable = 0
account.2.codec.7.payload_type = G726-32
account.2.codec.7.priority = 0
account.2.codec.7.rtpmap = 2

account.2.codec.8.enable = 0
account.2.codec.8.payload_type = iLBC_13_3
account.2.codec.8.priority = 0
account.2.codec.8.rtpmap = 97

account.2.codec.9.enable = 0
account.2.codec.9.payload_type = iLBC_15_2
account.2.codec.9.priority = 0
account.2.codec.9.rtpmap = 97

#######################################################################################
##         	                   Call Forward                                          ##
#######################################################################################
#Enable or disable the always forward, 0-Disabled(default), 1-Enabled;
account.2.always_fwd.enable =

#Configure the target phonenumber that the phone will forward the call to;
account.2.always_fwd.target =

#Configure the on/off code for always forward;


#Enable or disable the busy forward, 0-Disabled(default), 1-Enabled;
account.2.busy_fwd.enable =
account.2.busy_fwd.target =


#Enable or disable the no answer forward, 0-Disabled(default), 1-Enabled;
#Configure the waiting ring times before forwarding, ranges from 0 to 20 (by default);
account.2.timeout_fwd.enable =
account.2.timeout_fwd.target =
account.2.timeout_fwd.timeout =


#######################################################################################
##                          DND                                                      ##
#######################################################################################

#Configure the DND key mode; 0-Phone mode (default), 1-Custom mode.
features.dnd_mode =

#Enable or disable the DND feautre for account2; 0-Disabled (default), 1-Enabled;
account.2.dnd.enable =

#Configure the DND on code and off code for account1.

account.2.sip_trust_ctrl = 1

#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################

#Assign account2 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
{if isset($account.2.shared_line) }
account.2.shared_line = {$account.2.shared_line}
{else}
account.2.shared_line = 0
{/if}

#Configure BLA number for account2 and the subscribe period (in seconds). It ranges from 60 to 7200, the default value is 300.
account.2.bla_number =
account.2.bla_subscribe_period = 300

#######################################################################################
##                                   Account3 Settings                               ##
#######################################################################################

#Enable or disable the account 1; 0-Disabled (default), 1-Enabled;
{if isset($account.3.password) }
account.3.enable = 1
{else}
account.3.enable = 0
{/if}

#Configure the label displayed on the LCD screen for account 1.
account.3.label = {$account.3.label}

#Configure the display name of account 1.
account.3.display_name = {$account.3.display_name}

#Configure the username and password for register authentication.
account.3.auth_name = {$account.3.user_id}
account.3.password = {$account.3.password}

#Configure the register user name.
{if isset($account.3.server.1.address)}
account.3.user_name = {$account.3.user_id}@{$account.3.server_address}
{else}
account.3.user_name = {$account.3.user_id}
{/if}

#Configure the SIP server address.
account.3.sip_server_host = {$account.3.server_address}

#Specify the port for the SIP server. The default value is 5060.
account.3.sip_server_port = {$account.3.sip_port}

#Enable or disable to use the outbound proxy server; 0-Disabled (default), 1-Enabled;


#Specify the IP address or domain name of the outbound proxy server.
account.3.outbound_host = {$account.3.outbound_proxy_primary}

#Specify the server port, the default value is 5060.
account.3.outbound_port = {$account.3.sip_port}
{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}
{if $account.3.sip_transport == 'tls'}account.3.transport = 2{/if}
{if $account.3.sip_transport == 'dns srv'}account.3.transport = 3{/if}

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}

#Configure the address of the backup outbound proxy server.
account.3.backup_outbound_host =

#Specify the port of the backup outbound proxy server, the default value is 5060.
account.3.backup_outbound_port =


#Enable or disable the anonymous call feature; 0-Disabled (default), 1-Enabled;
account.3.anonymous_call =

#Configure the on code and off code of the anonymous call feature.
account.3.anonymous_call_oncode =
account.3.anonymous_call_offcode =

#Enable or disable the reject anonymous call feature; 0-Disabled (default), 1-Enabled;
account.3.reject_anonymous_call =

#Configure the on code and off code of the reject anonymous call feature.
account.3.anonymous_reject_oncode =
account.3.anonymous_reject_offcode =

#Configure the SIP port for account 1, the default value is 5060.
account.3.sip_listen_port =

#Configure the register expiry time (in seconds), the default value is 3600.
account.3.expires = {$account.3.register_expires}

#Enable or disable the 100 reliable retransmission; 0-Disabled, 1-Enabled (default);
account.3.100rel_enable = {$yealink_retransmission}

#Enable or disable the resource reservation; 0-Disabled (default), 1-Enabled;
account.3.precondition =

#Enable or disable the phone to subscribe the register status; 0-Disabled (default), 1-Enabled;
account.3.subscribe_register =

#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.3.subscribe_mwi = {$yealink_subscribe_mwi}

#Configure MWI subscribe expiry time (in seconds). It ranges from 0 to 84600, the default value is 3600.
account.3.subscribe_mwi_expires = 3600

#Configure the type of SIP header to carry the caller ID; 0-FROM (default), 1-PAI;
account.3.cid_source = {$yealink_cid_source}

#Configure the presentation of the callee ID; 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916;
account.3.cp_source = 2

#Enable or disable the session timer; 0-Disabled (default), 1-Enabled;
account.3.session_timer.enable = {$yealink_session_timer}

#Configure the refresh session timer interval (in seconds). It ranges from 1 to 9999.
account.3.session_timer.expires =

#Configure the session timer refresher; 0-Uac (default), 1-Uas;
account.3.session_timer.refresher =

#Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled;
account.3.enable_user_equal_phone =

#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.3.srtp_encryption =

#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.3.ptime =

#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 = 0

#Enable or disable the phone to send the MAC address in the Register message; 0-Disabled (default), 1-Enabled;
account.3.register_mac =

#Enable or disable the phone to send the line number in the Register message; 0-Disabled, 1-Enabled (default);
account.3.register_line =

#Configure the interval (in seconds) the phone retries to register when account 1 fails to register. It ranges from 0 to 1800, the default value is 30.
account.3.reg_fail_retry_interval =

#Enable or disable the SIP signal encode; 0-Disabled (default), 1-Enabled (RC 4);
account.3.enable_signal_encode =

#Configure the key for encoding.
account.3.signal_encode_key =

#Configure the DTMF type; 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO;
account.3.dtmf.type = {$yealink_dtmf_type}

#Configure the RFC2833 payload. It ranges from 96 to 225, the default value is 101.
account.3.dtmf.dtmf_payload =

#Configure the DTMF info type when using the SIP INFO; 0-Disabled, 1-DTMF-Relay (default), 2-DTMF, 3-Telephone-Event;
account.3.dtmf.info_type =


#######################################################################################
##                                   NAT Settings                                    ##
#######################################################################################

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.3.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if}

#Configure the STUN server address.
account.3.nat.stun_server = {$stun_server}

#Configure the STUN server port, the default value is 3478.
account.3.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.3.nat.udp_update_enable = {if isset($account.3.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""}

#Specify the keep-alive interval (in seconds), the default value is 30.
account.3.nat.udp_update_time = 30

#Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled;
account.3.nat.rport = {$yealink_rport}

#Configure the session timer (in seconds), the default values of T1, T2, T3 are 0.5, 4, 5.
account.3.advanced.timer_t1 =
account.3.advanced.timer_t2 =
account.3.advanced.timer_t4 =

account.3.codec.1.enable = 1
account.3.codec.1.payload_type = PCMU
account.3.codec.1.priority = 1
account.3.codec.1.rtpmap = 0

account.3.codec.2.enable = 1
account.3.codec.2.payload_type = PCMA
account.3.codec.2.priority = 2
account.3.codec.2.rtpmap = 8

account.3.codec.3.enable = 0
account.3.codec.3.payload_type = G723_53
account.3.codec.3.priority =0
account.3.codec.3.rtpmap = 4

account.3.codec.4.enable = 0
account.3.codec.4.payload_type = G723_63
account.3.codec.4.priority = 0
account.3.codec.4.rtpmap = 4

account.3.codec.5.enable = 1
account.3.codec.5.payload_type = G729
account.3.codec.5.priority = 3
account.3.codec.5.rtpmap = 18

account.3.codec.6.enable = 1
account.3.codec.6.payload_type = G722
account.3.codec.6.priority = 4
account.3.codec.6.rtpmap = 9

account.3.codec.7.enable = 0
account.3.codec.7.payload_type = G726-32
account.3.codec.7.priority = 0
account.3.codec.7.rtpmap = 2

account.3.codec.8.enable = 0
account.3.codec.8.payload_type = iLBC_13_3
account.3.codec.8.priority = 0
account.3.codec.8.rtpmap = 97

account.3.codec.9.enable = 0
account.3.codec.9.payload_type = iLBC_15_2
account.3.codec.9.priority = 0
account.3.codec.9.rtpmap = 97

#######################################################################################
##         	                   Call Forward                                          ##
#######################################################################################
#Enable or disable the always forward, 0-Disabled(default), 1-Enabled;
account.3.always_fwd.enable =

#Configure the target phonenumber that the phone will forward the call to;
account.3.always_fwd.target =

#Configure the on/off code for always forward;


#Enable or disable the busy forward, 0-Disabled(default), 1-Enabled;
account.3.busy_fwd.enable =
account.3.busy_fwd.target =


#Enable or disable the no answer forward, 0-Disabled(default), 1-Enabled;
#Configure the waiting ring times before forwarding, ranges from 0 to 20 (by default);
account.3.timeout_fwd.enable =
account.3.timeout_fwd.target =
account.3.timeout_fwd.timeout =


#######################################################################################
##                          DND                                                      ##
#######################################################################################

#Configure the DND key mode; 0-Phone mode (default), 1-Custom mode.
features.dnd_mode =

#Enable or disable the DND feautre for account3; 0-Disabled (default), 1-Enabled;
account.3.dnd.enable =

#Configure the DND on code and off code for account3.

account.3.sip_trust_ctrl = 1

#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################

#Assign account3 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
{if isset($account.3.shared_line) }
account.3.shared_line = {$account.3.shared_line}
{else}
account.3.shared_line = 0
{/if}

#Configure BLA number for account3 and the subscribe period (in seconds). It ranges from 60 to 7200, the default value is 300.
account.3.bla_number =
account.3.bla_subscribe_period = 300

#######################################################################################
##                                   Account4 Settings                               ##
#######################################################################################

#Enable or disable the account 1; 0-Disabled (default), 1-Enabled;
{if isset($account.4.password) }
account.4.enable = 1
{else}
account.4.enable = 0
{/if}

#Configure the label displayed on the LCD screen for account 1.
account.4.label = {$account.4.label}

#Configure the display name of account 1.
account.4.display_name = {$account.4.display_name}

#Configure the username and password for register authentication.
account.4.auth_name = {$account.4.auth_id}
account.4.password = {$account.4.password}

#Configure the register user name.
{if isset($account.4.server.1.address)}
account.4.user_name = {$account.4.user_id}@{$account.4.server_address}
{else}
account.4.user_name = {$account.4.user_id}
{/if}

#Configure the SIP server address.
account.4.sip_server_host = {$account.4.server_address}

#Specify the port for the SIP server. The default value is 5060.
account.4.sip_server_port = {$account.4.sip_port}

#Enable or disable to use the outbound proxy server; 0-Disabled (default), 1-Enabled;


#Specify the IP address or domain name of the outbound proxy server.
account.4.outbound_host = {$account.4.outbound_proxy_primary}

#Specify the server port, the default value is 5060.
account.4.outbound_port = {$account.4.sip_port}
{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}
{if $account.4.sip_transport == 'tls'}account.4.transport = 2{/if}
{if $account.4.sip_transport == 'dns srv'}account.4.transport = 3{/if}

account.4.outbound_proxy.1.address = {$account.4.outbound_proxy_primary}
account.4.outbound_proxy.2.address = {$account.4.outbound_proxy_secondary}
account.4.outbound_proxy_enable = {if isset($account.4.outbound_proxy_primary)}1{else}0{/if}


#Configure the address of the backup outbound proxy server.
account.4.backup_outbound_host =

#Specify the port of the backup outbound proxy server, the default value is 5060.
account.4.backup_outbound_port =


#Enable or disable the anonymous call feature; 0-Disabled (default), 1-Enabled;
account.4.anonymous_call =

#Configure the on code and off code of the anonymous call feature.
account.4.anonymous_call_oncode =
account.4.anonymous_call_offcode =

#Enable or disable the reject anonymous call feature; 0-Disabled (default), 1-Enabled;
account.4.reject_anonymous_call =

#Configure the on code and off code of the reject anonymous call feature.
account.4.anonymous_reject_oncode =
account.4.anonymous_reject_offcode =

#Configure the SIP port for account 1, the default value is 5060.
account.4.sip_listen_port =

#Configure the register expiry time (in seconds), the default value is 3600.
account.4.expires = {$account.4.register_expires}

#Enable or disable the 100 reliable retransmission; 0-Disabled, 1-Enabled (default);
account.4.100rel_enable = {$yealink_retransmission}

#Enable or disable the resource reservation; 0-Disabled (default), 1-Enabled;
account.4.precondition =

#Enable or disable the phone to subscribe the register status; 0-Disabled (default), 1-Enabled;
account.4.subscribe_register =

#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.4.subscribe_mwi = {$yealink_subscribe_mwi}

#Configure MWI subscribe expiry time (in seconds). It ranges from 0 to 84600, the default value is 3600.
account.4.subscribe_mwi_expires = 3600

#Configure the type of SIP header to carry the caller ID; 0-FROM (default), 1-PAI;
account.4.cid_source = {$yealink_cid_source}

#Configure the presentation of the callee ID; 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916;
account.4.cp_source = 2

#Enable or disable the session timer; 0-Disabled (default), 1-Enabled;
account.4.session_timer.enable = {$yealink_session_timer}

#Configure the refresh session timer interval (in seconds). It ranges from 1 to 9999.
account.4.session_timer.expires =

#Configure the session timer refresher; 0-Uac (default), 1-Uas;
account.4.session_timer.refresher =

#Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled;
account.4.enable_user_equal_phone =

#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.4.srtp_encryption =

#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.4.ptime =

#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 = 0

#Enable or disable the phone to send the MAC address in the Register message; 0-Disabled (default), 1-Enabled;
account.4.register_mac =

#Enable or disable the phone to send the line number in the Register message; 0-Disabled, 1-Enabled (default);
account.4.register_line =

#Configure the interval (in seconds) the phone retries to register when account 1 fails to register. It ranges from 0 to 1800, the default value is 30.
account.4.reg_fail_retry_interval =

#Enable or disable the SIP signal encode; 0-Disabled (default), 1-Enabled (RC 4);
account.4.enable_signal_encode =

#Configure the key for encoding.
account.4.signal_encode_key =

#Configure the DTMF type; 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO;
account.4.dtmf.type = {$yealink_dtmf_type}

#Configure the RFC2833 payload. It ranges from 96 to 225, the default value is 101.
account.4.dtmf.dtmf_payload =

#Configure the DTMF info type when using the SIP INFO; 0-Disabled, 1-DTMF-Relay (default), 2-DTMF, 3-Telephone-Event;
account.4.dtmf.info_type =


#######################################################################################
##                                   NAT Settings                                    ##
#######################################################################################

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.4.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if}

#Configure the STUN server address.
account.4.nat.stun_server = {$stun_server}

#Configure the STUN server port, the default value is 3478.
account.4.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.4.nat.udp_update_enable = {if isset($account.4.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""}

#Specify the keep-alive interval (in seconds), the default value is 30.
account.4.nat.udp_update_time = 30

#Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled;
account.4.nat.rport = {$yealink_rport}

#Configure the session timer (in seconds), the default values of T1, T2, T3 are 0.5, 4, 5.
account.4.advanced.timer_t1 =
account.4.advanced.timer_t2 =
account.4.advanced.timer_t4 =


account.4.codec.1.enable = 1
account.4.codec.1.payload_type = PCMU
account.4.codec.1.priority = 1
account.4.codec.1.rtpmap = 0

account.4.codec.2.enable = 1
account.4.codec.2.payload_type = PCMA
account.4.codec.2.priority = 2
account.4.codec.2.rtpmap = 8

account.4.codec.3.enable = 0
account.4.codec.3.payload_type = G723_53
account.4.codec.3.priority =0
account.4.codec.3.rtpmap = 4

account.4.codec.4.enable = 0
account.4.codec.4.payload_type = G723_63
account.4.codec.4.priority = 0
account.4.codec.4.rtpmap = 4

account.4.codec.5.enable = 1
account.4.codec.5.payload_type = G729
account.4.codec.5.priority = 3
account.4.codec.5.rtpmap = 18

account.4.codec.6.enable = 1
account.4.codec.6.payload_type = G722
account.4.codec.6.priority = 4
account.4.codec.6.rtpmap = 9

account.4.codec.7.enable = 0
account.4.codec.7.payload_type = G726-32
account.4.codec.7.priority = 0
account.4.codec.7.rtpmap = 2

account.4.codec.8.enable = 0
account.4.codec.8.payload_type = iLBC_13_3
account.4.codec.8.priority = 0
account.4.codec.8.rtpmap = 97

account.4.codec.9.enable = 0
account.4.codec.9.payload_type = iLBC_15_2
account.4.codec.9.priority = 0
account.4.codec.9.rtpmap = 97

#######################################################################################
##         	                   Call Forward                                          ##
#######################################################################################
#Enable or disable the always forward, 0-Disabled(default), 1-Enabled;
account.4.always_fwd.enable =

#Configure the target phonenumber that the phone will forward the call to;
account.4.always_fwd.target =

#Configure the on/off code for always forward;


#Enable or disable the busy forward, 0-Disabled(default), 1-Enabled;
account.4.busy_fwd.enable =
account.4.busy_fwd.target =


#Enable or disable the no answer forward, 0-Disabled(default), 1-Enabled;
#Configure the waiting ring times before forwarding, ranges from 0 to 20 (by default);
account.4.timeout_fwd.enable =
account.4.timeout_fwd.target =
account.4.timeout_fwd.timeout =


#######################################################################################
##                          DND                                                      ##
#######################################################################################

#Configure the DND key mode; 0-Phone mode (default), 1-Custom mode.
features.dnd_mode =

#Enable or disable the DND feautre for account4; 0-Disabled (default), 1-Enabled;
account.4.dnd.enable =

#Configure the DND on code and off code for account4.

account.4.sip_trust_ctrl = 1

#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################

#Assign account4 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
{if isset($account.4.shared_line) }
account.4.shared_line = {$account.4.shared_line}
{else}
account.4.shared_line = 0
{/if}

#Configure BLA number for account4 and the subscribe period (in seconds). It ranges from 60 to 7200, the default value is 300.
account.4.bla_number =
account.4.bla_subscribe_period = 300

#######################################################################################
##                                   Account5 Settings                               ##
#######################################################################################

#Enable or disable the account 1; 0-Disabled (default), 1-Enabled;
{if isset($account.5.password) }
account.5.enable = 1
{else}
account.5.enable = 0
{/if}

#Configure the label displayed on the LCD screen for account 1.
account.5.label = {$account.5.label}

#Configure the display name of account 1.
account.5.display_name = {$account.5.display_name}

#Configure the username and password for register authentication.
account.5.auth_name = {$account.5.auth_id}
account.5.password = {$account.5.password}

#Configure the register user name.
{if isset($account.5.server.1.address)}
account.5.user_name = {$account.5.user_id}@{$account.5.server_address}
{else}
account.5.user_name = {$account.5.user_id}
{/if}

#Configure the SIP server address.
account.5.sip_server_host = {$account.5.server_address}

#Specify the port for the SIP server. The default value is 5060.
account.5.sip_server_port = {$account.5.sip_port}

#Enable or disable to use the outbound proxy server; 0-Disabled (default), 1-Enabled;


#Specify the IP address or domain name of the outbound proxy server.
account.5.outbound_host = {$account.5.outbound_proxy_primary}

#Specify the server port, the default value is 5060.
account.5.outbound_port = {$account.5.sip_port}
{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}
{if $account.5.sip_transport == 'tls'}account.5.transport = 2{/if}
{if $account.5.sip_transport == 'dns srv'}account.5.transport = 3{/if}

account.5.outbound_proxy.1.address = {$account.5.outbound_proxy_primary}
account.5.outbound_proxy.2.address = {$account.5.outbound_proxy_secondary}
account.5.outbound_proxy_enable = {if isset($account.5.outbound_proxy_primary)}1{else}0{/if}

#Configure the address of the backup outbound proxy server.
account.5.backup_outbound_host =

#Specify the port of the backup outbound proxy server, the default value is 5060.
account.5.backup_outbound_port =


#Enable or disable the anonymous call feature; 0-Disabled (default), 1-Enabled;
account.5.anonymous_call =

#Configure the on code and off code of the anonymous call feature.
account.5.anonymous_call_oncode =
account.5.anonymous_call_offcode =

#Enable or disable the reject anonymous call feature; 0-Disabled (default), 1-Enabled;
account.5.reject_anonymous_call =

#Configure the on code and off code of the reject anonymous call feature.
account.5.anonymous_reject_oncode =
account.5.anonymous_reject_offcode =

#Configure the SIP port for account 1, the default value is 5060.
account.5.sip_listen_port =

#Configure the register expiry time (in seconds), the default value is 3600.
account.5.expires = {$account.5.register_expires}

#Enable or disable the 100 reliable retransmission; 0-Disabled, 1-Enabled (default);
account.5.100rel_enable = {$yealink_retransmission}

#Enable or disable the resource reservation; 0-Disabled (default), 1-Enabled;
account.5.precondition =

#Enable or disable the phone to subscribe the register status; 0-Disabled (default), 1-Enabled;
account.5.subscribe_register =

#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.5.subscribe_mwi = {$yealink_subscribe_mwi}

#Configure MWI subscribe expiry time (in seconds). It ranges from 0 to 84600, the default value is 3600.
account.5.subscribe_mwi_expires = 3600

#Configure the type of SIP header to carry the caller ID; 0-FROM (default), 1-PAI;
account.5.cid_source = {$yealink_cid_source}

#Configure the presentation of the callee ID; 0-PAI-PRID, 1-DIALED DIGITS (default), 2-RFC4916;
account.5.cp_source = 2

#Enable or disable the session timer; 0-Disabled (default), 1-Enabled;
account.5.session_timer.enable = {$yealink_session_timer}

#Configure the refresh session timer interval (in seconds). It ranges from 1 to 9999.
account.5.session_timer.expires =

#Configure the session timer refresher; 0-Uac (default), 1-Uas;
account.5.session_timer.refresher =

#Enable or disable the "user=phone"; 0-Disabled (default), 1-Enabled;
account.5.enable_user_equal_phone =

#Configure the way of encrypting the message; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.5.srtp_encryption =

#Configure the RTP packet time. The valid values are 0 (Disabled), 10, 20 (default), 30, 40, 50, 60.
account.5.ptime =

#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 = 0

#Enable or disable the phone to send the MAC address in the Register message; 0-Disabled (default), 1-Enabled;
account.5.register_mac =

#Enable or disable the phone to send the line number in the Register message; 0-Disabled, 1-Enabled (default);
account.5.register_line =

#Configure the interval (in seconds) the phone retries to register when account 1 fails to register. It ranges from 0 to 1800, the default value is 30.
account.5.reg_fail_retry_interval =

#Enable or disable the SIP signal encode; 0-Disabled (default), 1-Enabled (RC 4);
account.5.enable_signal_encode =

#Configure the key for encoding.
account.5.signal_encode_key =

#Configure the DTMF type; 0-INBAND, 1-RFC2833 (default), 2-SIP INFO, 3-AUTO+SIP INFO;
account.5.dtmf.type = {$yealink_dtmf_type}

#Configure the RFC2833 payload. It ranges from 96 to 225, the default value is 101.
account.5.dtmf.dtmf_payload =

#Configure the DTMF info type when using the SIP INFO; 0-Disabled, 1-DTMF-Relay (default), 2-DTMF, 3-Telephone-Event;
account.5.dtmf.info_type =


#######################################################################################
##                                   NAT Settings                                    ##
#######################################################################################

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.5.nat.nat_traversal = {if isset($stun_server)}1{else}0{/if}

#Configure the STUN server address.
account.5.nat.stun_server = {$stun_server}

#Configure the STUN server port, the default value is 3478.
account.5.nat.stun_port = {if isset($stun_port)}{$stun_port}{else}3478{/if}

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.5.nat.udp_update_enable = {if isset($account.5.password)}{if isset($yealink_udp_update_enable)}{$yealink_udp_update_enable}{else}3{/if}{else}1{/if}{""}

#Specify the keep-alive interval (in seconds), the default value is 30.
account.5.nat.udp_update_time = 30

#Enable or disable the NAT Rport; 0-Disabled (default), 1-Enabled;
account.5.nat.rport = {$yealink_rport}

#Configure the session timer (in seconds), the default values of T1, T2, T3 are 0.5, 4, 5.
account.5.advanced.timer_t1 =
account.5.advanced.timer_t2 =
account.5.advanced.timer_t4 =

account.5.codec.1.enable = 1
account.5.codec.1.payload_type = PCMU
account.5.codec.1.priority = 1
account.5.codec.1.rtpmap = 0

account.5.codec.2.enable = 1
account.5.codec.2.payload_type = PCMA
account.5.codec.2.priority = 2
account.5.codec.2.rtpmap = 8

account.5.codec.3.enable = 0
account.5.codec.3.payload_type = G723_53
account.5.codec.3.priority =0
account.5.codec.3.rtpmap = 4

account.5.codec.4.enable = 0
account.5.codec.4.payload_type = G723_63
account.5.codec.4.priority = 0
account.5.codec.4.rtpmap = 4

account.5.codec.5.enable = 1
account.5.codec.5.payload_type = G729
account.5.codec.5.priority = 3
account.5.codec.5.rtpmap = 18

account.5.codec.6.enable = 1
account.5.codec.6.payload_type = G722
account.5.codec.6.priority = 4
account.5.codec.6.rtpmap = 9

account.5.codec.7.enable = 0
account.5.codec.7.payload_type = G726-32
account.5.codec.7.priority = 0
account.5.codec.7.rtpmap = 2

account.5.codec.8.enable = 0
account.5.codec.8.payload_type = iLBC_13_3
account.5.codec.8.priority = 0
account.5.codec.8.rtpmap = 97

account.5.codec.9.enable = 0
account.5.codec.9.payload_type = iLBC_15_2
account.5.codec.9.priority = 0
account.5.codec.9.rtpmap = 97

#######################################################################################
##         	                   Call Forward                                          ##
#######################################################################################
#Enable or disable the always forward, 0-Disabled(default), 1-Enabled;
account.5.always_fwd.enable =

#Configure the target phonenumber that the phone will forward the call to;
account.5.always_fwd.target =

#Configure the on/off code for always forward;


#Enable or disable the busy forward, 0-Disabled(default), 1-Enabled;
account.5.busy_fwd.enable =
account.5.busy_fwd.target =


#Enable or disable the no answer forward, 0-Disabled(default), 1-Enabled;
#Configure the waiting ring times before forwarding, ranges from 0 to 20 (by default);
account.5.timeout_fwd.enable =
account.5.timeout_fwd.target =
account.5.timeout_fwd.timeout =


#######################################################################################
##                          DND                                                      ##
#######################################################################################

#Configure the DND key mode; 0-Phone mode (default), 1-Custom mode.
features.dnd_mode =

#Enable or disable the DND feautre for account5; 0-Disabled (default), 1-Enabled;
account.5.dnd.enable =

#Configure the DND on code and off code for account5.

account.5.sip_trust_ctrl = 1

voice_mail.number.1 = {$voicemail_number}

#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################

#Assign account5 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
{if isset($account.5.shared_line) }
account.5.shared_line = {$account.5.shared_line}
{else}
account.5.shared_line = 0
{/if}

#Configure BLA number for account5 and the subscribe period (in seconds). It ranges from 60 to 7200, the default value is 300.
account.5.bla_number =
account.5.bla_subscribe_period = 300

#######################################################################################
##                                   Network                                         ##
#######################################################################################

#Configure the WAN port type; 0-DHCP(default), 1-PPPoE, 2-Static IP Address;
#Require reboot;
network.internet_port.type =

#Configure the static IP address, submask, gateway and DNS server.
#Require reboot;
network.internet_port.ip =
network.internet_port.mask =
network.internet_port.gateway =
{if isset($dns_server_primary)}network.primary_dns = {$dns_server_primary}{/if}

{if isset($dns_server_secondary)}network.secondary_dns = {$dns_server_secondary}{/if}

{if isset($dns_server_primary)}network.static_dns_enable = 1{else}network.static_dns_enable = 0{/if}
