#!version:1.0.0.1

##File header "#!version:1.0.0.1" can not be edited or deleted, and must be placed in the first line.##

#######################################################################################
##                           Account 1 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_1) }
account.1.enable = 1
{else}
account.1.enable = 0
{/if}
account.1.label = {$display_name_1}
account.1.display_name = {$display_name_1}
account.1.auth_name = {$auth_id_1}
account.1.password = {$user_password_1}
account.1.user_name = {$user_id_1}
account.1.sip_server_host = {$server_address_1}
account.1.sip_server_port = {$sip_port_1}

account.1.outbound_host = {$outbound_proxy_1}
account.1.outbound_port = 5060
account.1.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_1 == 'udp'}account.1.transport = 0{/if}
{if $sip_transport_1 == 'tcp'}account.1.transport = 1{/if}
{if $sip_transport_1 == 'tls'}account.1.transport = 2{/if}
{if $sip_transport_1 == 'dns srv'}account.1.transport = 3{/if}

account.1.outbound_proxy.1.address = {$outbound_proxy_primary_1}
account.1.outbound_proxy.2.address = {$outbound_proxy_secondary_1}
account.1.outbound_proxy_enable = {if isset($outbound_proxy_primary_1)}1{else}0{/if}

{if isset($outbound_proxy_1_port)}
account.1.outbound_proxy.1.port = {$outbound_proxy_1_port}
{else}
account.1.outbound_proxy.1.port = 5060
{/if}
{if isset($outbound_proxy_1_port)}
account.1.outbound_proxy.2.port = {$outbound_proxy_2_port}
{else}
account.1.outbound_proxy.2.port = 5060
{/if}


#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.1.reregister_enable = 0
account.1.retry_counts =
account.1.failback_mode = 0
account.1.failback_timeout = 3600
account.1.naptr_build = 0
account.1.fallback.redundancy_type = 0
account.1.fallback.timeout = 120
account.1.sip_server.1.address =
{if $sip_transport_1 == 'dns srv'}
account.1.sip_server.1.port = 0
{else}
account.1.sip_server.1.port = {$sip_port_1}
{/if}
#Configure the register expiry time (in seconds), the default value is 3600.
account.1.sip_server.1.expires = {$register_expires_1}
account.1.sip_server.1.retry_counts = 3
account.1.sip_server.1.failback_mode = 0
account.1.sip_server.1.failback_timeout = 3600
account.1.sip_server.1.register_on_enable = 0
account.1.sip_server.2.address =
account.1.sip_server.2.port = 5060
account.1.sip_server.2.expires = 3600
account.1.sip_server.2.retry_counts = 3
account.1.sip_server.2.failback_mode = 0
account.1.sip_server.2.failback_timeout = 3600
account.1.sip_server.2.register_on_enable = 0
account.1.dns_cache_type = 1

account.1.dns_cache_a.1.name =
account.1.dns_cache_a.1.ip =
account.1.dns_cache_a.1.ttl = 300

account.1.dns_cache_srv.1.name =
account.1.dns_cache_srv.1.port = 0
account.1.dns_cache_srv.1.priority = 0
account.1.dns_cache_srv.1.target =
account.1.dns_cache_srv.1.weight = 0
account.1.dns_cache_srv.1.ttl = 300
account.1.dns_cache_naptr.1.name =
account.1.dns_cache_naptr.1.flags =
account.1.dns_cache_naptr.1.order = 0
account.1.dns_cache_naptr.1.preference = 0
account.1.dns_cache_naptr.1.replace =
account.1.dns_cache_naptr.1.service =
account.1.dns_cache_naptr.1.ttl = 300

account.1.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.1.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.1.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.1.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.1.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.1.srv_ttl_timer_enable =
account.1.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.1.register_mac =
account.1.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.1.reg_fail_retry_interval =

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

#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_1}


#######################################################################################
##                            AccountX Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.1 = {$voicemail_number}


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.1.subscribe_mwi = 1
account.1.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.1.subscribe_mwi_to_vm = 1

account.1.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.1.blf.blf_list_uri =

account.1.blf_list_code =
account.1.blf_list_barge_in_code =
account.1.blf.subscribe_period = 1800

account.1.blf.subscribe_event =
account.1.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.1.shared_line =

#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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.1.codec.Y.enable =
#The type of the specified codec.
#account.1.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.1.codec.Y.priority =
#The payload of the specified codec.
#account.1.codec.Y.rtpmap =

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

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

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

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

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

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

account.1.codec.7.enable = 0
account.1.codec.7.payload_type = iLBC
account.1.codec.7.priority =  0
account.1.codec.7.rtpmap = 106

account.1.codec.8.enable = 0
account.1.codec.8.payload_type = G726-16
account.1.codec.8.priority = 0
account.1.codec.8.rtpmap = 103

account.1.codec.9.enable = 0
account.1.codec.9.payload_type = G726-24
account.1.codec.9.priority = 0
account.1.codec.9.rtpmap = 104

account.1.codec.10.enable = 0
account.1.codec.10.payload_type = G726-32
account.1.codec.10.priority = 0
account.1.codec.10.rtpmap = 102

account.1.codec.11.enable = 0
account.1.codec.11.payload_type = G726-40
account.1.codec.11.priority = 0
account.1.codec.11.rtpmap = 105

account.1.codec.12.enable = 0
account.1.codec.12.payload_type = GSM
account.1.codec.12.priority = 0
account.1.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.1.srtp_encryption =

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


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.1.anonymous_call = 0
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 =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.1.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.1.group_pickup_code =
account.1.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones; 0-Disabled , 1-Enabled(default);
account.1.alert_info_url_enable =

#Assign a ringtone for account1. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.1.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.1.ringtone.ring_type = Resource:Ring2.wav
account.1.ringtone.ring_type =

account.1.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.1.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.1.conf_uri =

#######################################################################################
##                            cid_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.1.cid_source =

account.1.cid_source_privacy = 1
account.1.cid_source_ppi = 1
account.1.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.1.session_timer.enable =

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.1.music_on_hold_type =

account.1.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.1.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.1.missed_calllog =

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

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.1.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.1.dnd.enable =
account.1.dnd.on_code =
account.1.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################

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 =

#Enable or disable the no answer forward feature for account1; 0-Disabled (default), 1-Enabled;
#Configure the waiting ring times before forwarding. It ranges from 0 to 20, the default value is 2.
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 =

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.1.hoteling.enable = 0
account.1.hoteling.user_id = 0
account.1.hoteling.password = 0
account.1.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.1.acd.enable = 0
account.1.acd.unavailable_reason_enable = 0
account.1.acd.available = 0
account.1.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.1.bw_acd_reason_code.Y = 500(lunch time)
account.1.bw_acd_reason_code.1 =

account.1.reason_code.1 =
account.1.reason_code_name.1 = 0
account.1.bw_disp_code.1 =
account.1.bw_disp_code_name.1 =
account.1.supervisor_info_code.1 =
account.1.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.1.call_center.call_info_enable = 0
account.1.call_center.show_call_info_time = 30
account.1.call_center.disp_code_enable = 0
account.1.call_center.trace_enable = 0
account.1.call_center.emergency_enable = 0
account.1.call_center.queue_status_enable = 0
account.1.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.1.xsi.user =
account.1.xsi.password =
account.1.xsi.host =
account.1.xsi.server_type =
account.1.xsi.port =


#######################################################################################
##                           Account 2 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_2) }
account.2.enable = 1
{else}
account.2.enable = 0
{/if}
account.2.label = {$display_name_2}
account.2.display_name = {$display_name_2}
account.2.auth_name = {$auth_id_2}
account.2.password = {$user_password_2}
account.2.user_name = {$user_id_2}
account.2.sip_server_host = {$server_address_2}
account.2.sip_server_port = {$sip_port_2}

account.2.outbound_host = {$outbound_proxy_2}
account.2.outbound_port = 5060
account.2.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_2 == 'udp'}account.2.transport = 0{/if}
{if $sip_transport_2 == 'tcp'}account.2.transport = 1{/if}
{if $sip_transport_2 == 'tls'}account.2.transport = 2{/if}
{if $sip_transport_2 == 'dns srv'}account.2.transport = 3{/if}

account.2.outbound_proxy.1.address = {$outbound_proxy_primary_2}
account.2.outbound_proxy.2.address = {$outbound_proxy_secondary_2}
account.2.outbound_proxy_enable = {if isset($outbound_proxy_primary_2)}1{else}0{/if}


#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.2.reregister_enable = 0
account.2.retry_counts =
account.2.failback_mode = 0
account.2.failback_timeout = 3600
account.2.naptr_build = 0
account.2.fallback.redundancy_type = 0
account.2.fallback.timeout = 120
account.2.sip_server.1.address =
account.2.sip_server.1.port = 5060
#Configure the register expiry time (in seconds), the default value is 3600.
account.2.sip_server.1.expires = {$register_expires_2}
account.2.sip_server.1.retry_counts = 3
account.2.sip_server.1.failback_mode = 0
account.2.sip_server.1.failback_timeout = 3600
account.2.sip_server.1.register_on_enable = 0
account.2.sip_server.2.address =
account.2.sip_server.2.port = 5060
account.2.sip_server.2.expires = 3600
account.2.sip_server.2.retry_counts = 3
account.2.sip_server.2.failback_mode = 0
account.2.sip_server.2.failback_timeout = 3600
account.2.sip_server.2.register_on_enable = 0
account.2.dns_cache_type = 1

account.2.dns_cache_a.1.name =
account.2.dns_cache_a.1.ip =
account.2.dns_cache_a.1.ttl = 300

account.2.dns_cache_srv.0.name =
account.2.dns_cache_srv.0.port = 0
account.2.dns_cache_srv.0.priority = 0
account.2.dns_cache_srv.0.target =
account.2.dns_cache_srv.0.weight = 0
account.2.dns_cache_srv.0.ttl = 300
account.2.dns_cache_naptr.0.name =
account.2.dns_cache_naptr.0.flags =
account.2.dns_cache_naptr.0.order = 0
account.2.dns_cache_naptr.0.preference = 0
account.2.dns_cache_naptr.0.replace =
account.2.dns_cache_naptr.0.service =
account.2.dns_cache_naptr.0.ttl = 300

account.2.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.2.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.2.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.2.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.2.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.2.srv_ttl_timer_enable =
account.2.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.2.register_mac =
account.2.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.2.reg_fail_retry_interval =

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

#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_2}


#######################################################################################
##                            Account2 Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.2 = *97


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.2.subscribe_mwi = 1
account.2.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.2.subscribe_mwi_to_vm = 1

account.2.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.2.blf.blf_list_uri =

account.2.blf_list_code =
account.2.blf_list_barge_in_code =
account.2.blf.subscribe_period = 1800

account.2.blf.subscribe_event =
account.2.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.2.shared_line =

#Configure BLA number for account1 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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.2.codec.Y.enable =
#The type of the specified codec.
#account.2.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.2.codec.Y.priority =
#The payload of the specified codec.
#account.2.codec.Y.rtpmap =

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 = iLBC
account.2.codec.7.priority =  0
account.2.codec.7.rtpmap = 106

account.2.codec.8.enable = 0
account.2.codec.8.payload_type = G726-16
account.2.codec.8.priority = 0
account.2.codec.8.rtpmap = 103

account.2.codec.9.enable = 0
account.2.codec.9.payload_type = G726-24
account.2.codec.9.priority = 0
account.2.codec.9.rtpmap = 104

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

account.2.codec.11.enable = 0
account.2.codec.11.payload_type = G726-40
account.2.codec.11.priority = 0
account.2.codec.11.rtpmap = 105

account.2.codec.12.enable = 0
account.2.codec.12.payload_type = GSM
account.2.codec.12.priority = 0
account.2.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 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 =


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.2.anonymous_call = 0
account.2.anonymous_call_oncode =
account.2.anonymous_call_offcode =

account.2.reject_anonymous_call =
account.2.anonymous_reject_oncode =
account.2.anonymous_reject_offcode =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.2.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.2.group_pickup_code =
account.2.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones;  0-Disabled , 1-Enabled(default);
account.2.alert_info_url_enable =

#Assign a ringtone for account2. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.2.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.2.ringtone.ring_type = Resource:Ring2.wav
account.2.ringtone.ring_type =

account.2.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.2.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.2.conf_uri =

#######################################################################################
##                            cid 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.2.cid_source =

account.2.cid_source_privacy = 1
account.2.cid_source_ppi = 1
account.2.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.2.session_timer.enable =

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.2.music_on_hold_type =

account.2.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.2.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.2.missed_calllog =

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

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.2.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.2.dnd.enable =
account.2.dnd.on_code =
account.2.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################
#Enable or disable the busy forward feature for account; 0-Disabled (default), 1-Enabled;
account.2.always_fwd.enable =
account.2.always_fwd.target =
account.2.always_fwd.off_code =
account.2.always_fwd.on_code =

account.2.busy_fwd.enable =
account.2.busy_fwd.target =
account.2.busy_fwd.off_code =
account.2.busy_fwd.on_code =

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

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.2.hoteling.enable = 0
account.2.hoteling.user_id = 0
account.2.hoteling.password = 0
account.2.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.2.acd.enable = 0
account.2.acd.unavailable_reason_enable = 0
account.2.acd.available = 0
account.2.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.2.bw_acd_reason_code.Y = 500(lunch time)
account.2.bw_acd_reason_code.1 =

account.2.reason_code.1 =
account.2.reason_code_name.1 = 0
account.2.bw_disp_code.1 =
account.2.bw_disp_code_name.1 =
account.2.supervisor_info_code.1 =
account.2.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.2.call_center.call_info_enable = 0
account.2.call_center.show_call_info_time = 30
account.2.call_center.disp_code_enable = 0
account.2.call_center.trace_enable = 0
account.2.call_center.emergency_enable = 0
account.2.call_center.queue_status_enable = 0
account.2.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.2.xsi.user =
account.2.xsi.password =
account.2.xsi.host =
account.2.xsi.server_type =
account.2.xsi.port =


#######################################################################################
##                                 Time                                              ##
#######################################################################################
#Configure the time zone and time zone name. The time zone ranges from -11 to +12, the default value is +8.
#local_time.time_zone = +8
#local_time.time_zone_name = China(Beijing)
local_time.time_zone = {$yealink_time_zone}
local_time.time_zone_name = {$yealink_time_zone_name}


#######################################################################################
##                                   NETWORK                                         ##
#######################################################################################
##0-ipv4, 1-ipv6, 2-ipv4&ipv6
network.ip_address_mode = 2

network.ipv6_prefix = 64
network.ipv6_internet_port.type =
network.ipv6_internet_port.ip =
network.ipv6_internet_port.gateway =
network.ipv6_primary_dns =
network.ipv6_secondary_dns =
network.ipv6_icmp_v6.enable =

#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, subnet mask, 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}

#######################################################################################
##                           Account 3 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_3) }
account.3.enable = 1
{else}
account.3.enable = 0
{/if}
account.3.label = {$display_name_3}
account.3.display_name = {$display_name_3}
account.3.auth_name = {$auth_id_3}
account.3.password = {$user_password_3}
account.3.user_name = {$user_id_3}
account.3.sip_server_host = {$server_address_3}
account.3.sip_server_port = {$sip_port_3}

account.3.outbound_host = {$outbound_proxy_3}
account.3.outbound_port = 5060
account.3.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_3 == 'udp'}account.3.transport = 0{/if}
{if $sip_transport_3 == 'tcp'}account.3.transport = 1{/if}
{if $sip_transport_3 == 'tls'}account.3.transport = 2{/if}
{if $sip_transport_3 == 'dns srv'}account.3.transport = 3{/if}

account.3.outbound_proxy.1.address = {$outbound_proxy_primary_3}
account.3.outbound_proxy.2.address = {$outbound_proxy_secondary_3}
account.3.outbound_proxy_enable = {if isset($outbound_proxy_primary_3)}1{else}0{/if}


#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.3.reregister_enable = 0
account.3.retry_counts =
account.3.failback_mode = 0
account.3.failback_timeout = 3600
account.3.naptr_build = 0
account.3.fallback.redundancy_type = 0
account.3.fallback.timeout = 120
account.3.sip_server.1.address =
account.3.sip_server.1.port = 5060
#Configure the register expiry time (in seconds), the default value is 3600.
account.3.sip_server.1.expires = {$register_expires_3}
account.3.sip_server.1.retry_counts = 3
account.3.sip_server.1.failback_mode = 0
account.3.sip_server.1.failback_timeout = 3600
account.3.sip_server.1.register_on_enable = 0
account.3.sip_server.2.address =
account.3.sip_server.2.port = 5060
account.3.sip_server.2.expires = 3600
account.3.sip_server.2.retry_counts = 3
account.3.sip_server.2.failback_mode = 0
account.3.sip_server.2.failback_timeout = 3600
account.3.sip_server.2.register_on_enable = 0
account.3.dns_cache_type = 1

account.3.dns_cache_a.1.name =
account.3.dns_cache_a.1.ip =
account.3.dns_cache_a.1.ttl = 300

account.3.dns_cache_srv.0.name =
account.3.dns_cache_srv.0.port = 0
account.3.dns_cache_srv.0.priority = 0
account.3.dns_cache_srv.0.target =
account.3.dns_cache_srv.0.weight = 0
account.3.dns_cache_srv.0.ttl = 300
account.3.dns_cache_naptr.0.name =
account.3.dns_cache_naptr.0.flags =
account.3.dns_cache_naptr.0.order = 0
account.3.dns_cache_naptr.0.preference = 0
account.3.dns_cache_naptr.0.replace =
account.3.dns_cache_naptr.0.service =
account.3.dns_cache_naptr.0.ttl = 300

account.3.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.3.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.3.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.3.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.3.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.3.srv_ttl_timer_enable =
account.3.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.3.register_mac =
account.3.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.3.reg_fail_retry_interval =

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

#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_3}


#######################################################################################
##                            Account3 Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.3 = *97


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.3.subscribe_mwi = 1
account.3.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.3.subscribe_mwi_to_vm = 1

account.3.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.3.blf.blf_list_uri =

account.3.blf_list_code =
account.3.blf_list_barge_in_code =
account.3.blf.subscribe_period = 1800

account.3.blf.subscribe_event =
account.3.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.3.shared_line =

#Configure BLA number for account1 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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.3.codec.Y.enable =
#The type of the specified codec.
#account.3.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.3.codec.Y.priority =
#The payload of the specified codec.
#account.3.codec.Y.rtpmap =

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 = iLBC
account.3.codec.7.priority =  0
account.3.codec.7.rtpmap = 106

account.3.codec.8.enable = 0
account.3.codec.8.payload_type = G726-16
account.3.codec.8.priority = 0
account.3.codec.8.rtpmap = 103

account.3.codec.9.enable = 0
account.3.codec.9.payload_type = G726-24
account.3.codec.9.priority = 0
account.3.codec.9.rtpmap = 104

account.3.codec.10.enable = 0
account.3.codec.10.payload_type = G726-32
account.3.codec.10.priority = 0
account.3.codec.10.rtpmap = 102

account.3.codec.11.enable = 0
account.3.codec.11.payload_type = G726-40
account.3.codec.11.priority = 0
account.3.codec.11.rtpmap = 105

account.3.codec.12.enable = 0
account.3.codec.12.payload_type = GSM
account.3.codec.12.priority = 0
account.3.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 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 =


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.3.anonymous_call = 0
account.3.anonymous_call_oncode =
account.3.anonymous_call_offcode =

account.3.reject_anonymous_call =
account.3.anonymous_reject_oncode =
account.3.anonymous_reject_offcode =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.3.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.3.group_pickup_code =
account.3.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones;  0-Disabled , 1-Enabled(default);
account.3.alert_info_url_enable =

#Assign a ringtone for account2. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.2.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.2.ringtone.ring_type = Resource:Ring2.wav
account.3.ringtone.ring_type =

account.3.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.3.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.3.conf_uri =

#######################################################################################
##                            cid 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.3.cid_source =

account.3.cid_source_privacy = 1
account.3.cid_source_ppi = 1
account.3.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.3.session_timer.enable =

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.3.music_on_hold_type =

account.3.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.3.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.3.missed_calllog =

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

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.3.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.3.dnd.enable =
account.3.dnd.on_code =
account.3.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################
#Enable or disable the busy forward feature for account; 0-Disabled (default), 1-Enabled;
account.3.always_fwd.enable =
account.3.always_fwd.target =
account.3.always_fwd.off_code =
account.3.always_fwd.on_code =

account.3.busy_fwd.enable =
account.3.busy_fwd.target =
account.3.busy_fwd.off_code =
account.3.busy_fwd.on_code =

#Enable or disable the no answer forward feature for account1; 0-Disabled (default), 1-Enabled;
#Configure the waiting ring times before forwarding. It ranges from 0 to 20, the default value is 2.
account.3.timeout_fwd.enable =
account.3.timeout_fwd.target =
account.3.timeout_fwd.timeout =
account.3.timeout_fwd.off_code =
account.3.timeout_fwd.on_code =

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.3.hoteling.enable = 0
account.3.hoteling.user_id = 0
account.3.hoteling.password = 0
account.3.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.3.acd.enable = 0
account.3.acd.unavailable_reason_enable = 0
account.3.acd.available = 0
account.3.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.3.bw_acd_reason_code.Y = 500(lunch time)
account.3.bw_acd_reason_code.1 =

account.3.reason_code.1 =
account.3.reason_code_name.1 = 0
account.3.bw_disp_code.1 =
account.3.bw_disp_code_name.1 =
account.3.supervisor_info_code.1 =
account.3.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.3.call_center.call_info_enable = 0
account.3.call_center.show_call_info_time = 30
account.3.call_center.disp_code_enable = 0
account.3.call_center.trace_enable = 0
account.3.call_center.emergency_enable = 0
account.3.call_center.queue_status_enable = 0
account.3.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.3.xsi.user =
account.3.xsi.password =
account.3.xsi.host =
account.3.xsi.server_type =
account.3.xsi.port =


#######################################################################################
##                                   NETWORK                                         ##
#######################################################################################
##0-ipv4, 1-ipv6, 2-ipv4&ipv6
network.ip_address_mode = 2

network.ipv6_prefix = 64
network.ipv6_internet_port.type =
network.ipv6_internet_port.ip =
network.ipv6_internet_port.gateway =
network.ipv6_primary_dns =
network.ipv6_secondary_dns =
network.ipv6_icmp_v6.enable =

#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, subnet mask, 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}


#######################################################################################
##                           Account 4 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_4) }
account.4.enable = 1
{else}
account.4.enable = 0
{/if}
account.4.label = {$display_name_4}
account.4.display_name = {$display_name_4}
account.4.auth_name = {$auth_id_4}
account.4.password = {$user_password_4}
account.4.user_name = {$user_id_4}
account.4.sip_server_host = {$server_address_4}
account.4.sip_server_port = {$sip_port_4}

account.4.outbound_host = {$outbound_proxy_4}
account.4.outbound_port = 5060
account.4.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_4 == 'udp'}account.4.transport = 0{/if}
{if $sip_transport_4 == 'tcp'}account.4.transport = 1{/if}
{if $sip_transport_4 == 'tls'}account.4.transport = 2{/if}
{if $sip_transport_4 == 'dns srv'}account.4.transport = 3{/if}

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

#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.4.reregister_enable = 0
account.4.retry_counts =
account.4.failback_mode = 0
account.4.failback_timeout = 3600
account.4.naptr_build = 0
account.4.fallback.redundancy_type = 0
account.4.fallback.timeout = 120
account.4.sip_server.1.address =
account.4.sip_server.1.port = 5060
#Configure the register expiry time (in seconds), the default value is 3600.
account.4.sip_server.1.expires = {$register_expires_4}
account.4.sip_server.1.retry_counts = 3
account.4.sip_server.1.failback_mode = 0
account.4.sip_server.1.failback_timeout = 3600
account.4.sip_server.1.register_on_enable = 0
account.4.sip_server.2.address =
account.4.sip_server.2.port = 5060
account.4.sip_server.2.expires = 3600
account.4.sip_server.2.retry_counts = 3
account.4.sip_server.2.failback_mode = 0
account.4.sip_server.2.failback_timeout = 3600
account.4.sip_server.2.register_on_enable = 0
account.4.dns_cache_type = 1

account.4.dns_cache_a.1.name =
account.4.dns_cache_a.1.ip =
account.4.dns_cache_a.1.ttl = 300

account.4.dns_cache_srv.1.name =
account.4.dns_cache_srv.1.port = 0
account.4.dns_cache_srv.1.priority = 0
account.4.dns_cache_srv.1.target =
account.4.dns_cache_srv.1.weight = 0
account.4.dns_cache_srv.1.ttl = 300
account.4.dns_cache_naptr.1.name =
account.4.dns_cache_naptr.1.flags =
account.4.dns_cache_naptr.1.order = 0
account.4.dns_cache_naptr.1.preference = 0
account.4.dns_cache_naptr.1.replace =
account.4.dns_cache_naptr.1.service =
account.4.dns_cache_naptr.1.ttl = 300

account.4.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.4.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.4.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.4.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.4.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.4.srv_ttl_timer_enable =
account.4.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.4.register_mac =
account.4.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.4.reg_fail_retry_interval =

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

#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_4}


#######################################################################################
##                            Account4 Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.4 = *97


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.4.subscribe_mwi = 1
account.4.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.4.subscribe_mwi_to_vm = 1

account.4.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.4.blf.blf_list_uri =

account.4.blf_list_code =
account.4.blf_list_barge_in_code =
account.4.blf.subscribe_period = 1800

account.4.blf.subscribe_event =
account.4.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.4.shared_line =

#Configure BLA number for account1 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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.4.codec.Y.enable =
#The type of the specified codec.
#account.4.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.4.codec.Y.priority =
#The payload of the specified codec.
#account.4.codec.Y.rtpmap =

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 = iLBC
account.4.codec.7.priority =  0
account.4.codec.7.rtpmap = 106

account.4.codec.8.enable = 0
account.4.codec.8.payload_type = G726-16
account.4.codec.8.priority = 0
account.4.codec.8.rtpmap = 103

account.4.codec.9.enable = 0
account.4.codec.9.payload_type = G726-24
account.4.codec.9.priority = 0
account.4.codec.9.rtpmap = 104

account.4.codec.10.enable = 0
account.4.codec.10.payload_type = G726-32
account.4.codec.10.priority = 0
account.4.codec.10.rtpmap = 102

account.4.codec.11.enable = 0
account.4.codec.11.payload_type = G726-40
account.4.codec.11.priority = 0
account.4.codec.11.rtpmap = 105

account.4.codec.12.enable = 0
account.4.codec.12.payload_type = GSM
account.4.codec.12.priority = 0
account.4.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 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 =


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.4.anonymous_call = 0
account.4.anonymous_call_oncode =
account.4.anonymous_call_offcode =

account.4.reject_anonymous_call =
account.4.anonymous_reject_oncode =
account.4.anonymous_reject_offcode =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.4.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.4.group_pickup_code =
account.4.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones;  0-Disabled , 1-Enabled(default);
account.4.alert_info_url_enable =

#Assign a ringtone for account2. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.2.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.2.ringtone.ring_type = Resource:Ring2.wav
account.4.ringtone.ring_type =

account.4.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.4.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.4.conf_uri =

#######################################################################################
##                            cid 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.4.cid_source =

account.4.cid_source_privacy = 1
account.4.cid_source_ppi = 1
account.4.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.4.session_timer.enable =

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.4.music_on_hold_type =

account.4.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.4.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.4.missed_calllog =

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

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.4.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.4.dnd.enable =
account.4.dnd.on_code =
account.4.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################
#Enable or disable the busy forward feature for account; 0-Disabled (default), 1-Enabled;
account.4.always_fwd.enable =
account.4.always_fwd.target =
account.4.always_fwd.off_code =
account.4.always_fwd.on_code =

account.4.busy_fwd.enable =
account.4.busy_fwd.target =
account.4.busy_fwd.off_code =
account.4.busy_fwd.on_code =

#Enable or disable the no answer forward feature for account1; 0-Disabled (default), 1-Enabled;
#Configure the waiting ring times before forwarding. It ranges from 0 to 20, the default value is 2.
account.4.timeout_fwd.enable =
account.4.timeout_fwd.target =
account.4.timeout_fwd.timeout =
account.4.timeout_fwd.off_code =
account.4.timeout_fwd.on_code =

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.4.hoteling.enable = 0
account.4.hoteling.user_id = 0
account.4.hoteling.password = 0
account.4.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.4.acd.enable = 0
account.4.acd.unavailable_reason_enable = 0
account.4.acd.available = 0
account.4.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.4.bw_acd_reason_code.Y = 500(lunch time)
account.4.bw_acd_reason_code.1 =

account.4.reason_code.1 =
account.4.reason_code_name.1 = 0
account.4.bw_disp_code.1 =
account.4.bw_disp_code_name.1 =
account.4.supervisor_info_code.1 =
account.4.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.4.call_center.call_info_enable = 0
account.4.call_center.show_call_info_time = 30
account.4.call_center.disp_code_enable = 0
account.4.call_center.trace_enable = 0
account.4.call_center.emergency_enable = 0
account.4.call_center.queue_status_enable = 0
account.4.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.4.xsi.user =
account.4.xsi.password =
account.4.xsi.host =
account.4.xsi.server_type =
account.4.xsi.port =


#######################################################################################
##                                   NETWORK                                         ##
#######################################################################################
##0-ipv4, 1-ipv6, 2-ipv4&ipv6
network.ip_address_mode = 2

network.ipv6_prefix = 64
network.ipv6_internet_port.type =
network.ipv6_internet_port.ip =
network.ipv6_internet_port.gateway =
network.ipv6_primary_dns =
network.ipv6_secondary_dns =
network.ipv6_icmp_v6.enable =

#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, subnet mask, 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}

#######################################################################################
##                           Account 5 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_5) }
account.5.enable = 1
{else}
account.5.enable = 0
{/if}
account.5.label = {$display_name_5}
account.5.display_name = {$display_name_5}
account.5.auth_name = {$auth_id_5}
account.5.password = {$user_password_5}
account.5.user_name = {$user_id_5}
account.5.sip_server_host = {$server_address_5}
account.5.sip_server_port = {$sip_port_5}

account.5.outbound_host = {$outbound_proxy_5}
account.5.outbound_port = 5060
account.5.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_5 == 'udp'}account.5.transport = 0{/if}
{if $sip_transport_5 == 'tcp'}account.5.transport = 1{/if}
{if $sip_transport_5 == 'tls'}account.5.transport = 2{/if}
{if $sip_transport_5 == 'dns srv'}account.5.transport = 3{/if}

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

#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.5.reregister_enable = 0
account.5.retry_counts =
account.5.failback_mode = 0
account.5.failback_timeout = 3600
account.5.naptr_build = 0
account.5.fallback.redundancy_type = 0
account.5.fallback.timeout = 120
account.5.sip_server.1.address =
account.5.sip_server.1.port = 5060
#Configure the register expiry time (in seconds), the default value is 3600.
account.5.sip_server.1.expires = {$register_expires_5}
account.5.sip_server.1.retry_counts = 3
account.5.sip_server.1.failback_mode = 0
account.5.sip_server.1.failback_timeout = 3600
account.5.sip_server.1.register_on_enable = 0
account.5.sip_server.2.address =
account.5.sip_server.2.port = 5060
account.5.sip_server.2.expires = 3600
account.5.sip_server.2.retry_counts = 3
account.5.sip_server.2.failback_mode = 0
account.5.sip_server.2.failback_timeout = 3600
account.5.sip_server.2.register_on_enable = 0
account.5.dns_cache_type = 1

account.5.dns_cache_a.1.name =
account.5.dns_cache_a.1.ip =
account.5.dns_cache_a.1.ttl = 300

account.5.dns_cache_srv.1.name =
account.5.dns_cache_srv.1.port = 0
account.5.dns_cache_srv.1.priority = 0
account.5.dns_cache_srv.1.target =
account.5.dns_cache_srv.1.weight = 0
account.5.dns_cache_srv.1.ttl = 300
account.5.dns_cache_naptr.1.name =
account.5.dns_cache_naptr.1.flags =
account.5.dns_cache_naptr.1.order = 0
account.5.dns_cache_naptr.1.preference = 0
account.5.dns_cache_naptr.1.replace =
account.5.dns_cache_naptr.1.service =
account.5.dns_cache_naptr.1.ttl = 300

account.5.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.5.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.5.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.5.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.5.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.5.srv_ttl_timer_enable =
account.5.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.5.register_mac =
account.5.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.5.reg_fail_retry_interval =

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

#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_5}


#######################################################################################
##                            Account5 Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.5 = *97


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.5.subscribe_mwi = 1
account.5.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.5.subscribe_mwi_to_vm = 1

account.5.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.5.blf.blf_list_uri =

account.5.blf_list_code =
account.5.blf_list_barge_in_code =
account.5.blf.subscribe_period = 1800

account.5.blf.subscribe_event =
account.5.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.5.shared_line =

#Configure BLA number for account1 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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.5.codec.Y.enable =
#The type of the specified codec.
#account.5.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.5.codec.Y.priority =
#The payload of the specified codec.
#account.5.codec.Y.rtpmap =

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 = iLBC
account.5.codec.7.priority =  0
account.5.codec.7.rtpmap = 106

account.5.codec.8.enable = 0
account.5.codec.8.payload_type = G726-16
account.5.codec.8.priority = 0
account.5.codec.8.rtpmap = 103

account.5.codec.9.enable = 0
account.5.codec.9.payload_type = G726-24
account.5.codec.9.priority = 0
account.5.codec.9.rtpmap = 104

account.5.codec.10.enable = 0
account.5.codec.10.payload_type = G726-32
account.5.codec.10.priority = 0
account.5.codec.10.rtpmap = 102

account.5.codec.11.enable = 0
account.5.codec.11.payload_type = G726-40
account.5.codec.11.priority = 0
account.5.codec.11.rtpmap = 105

account.5.codec.12.enable = 0
account.5.codec.12.payload_type = GSM
account.5.codec.12.priority = 0
account.5.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 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 =


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.5.anonymous_call = 0
account.5.anonymous_call_oncode =
account.5.anonymous_call_offcode =

account.5.reject_anonymous_call =
account.5.anonymous_reject_oncode =
account.5.anonymous_reject_offcode =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.5.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.5.group_pickup_code =
account.5.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones;  0-Disabled , 1-Enabled(default);
account.5.alert_info_url_enable =

#Assign a ringtone for account2. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.2.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.2.ringtone.ring_type = Resource:Ring2.wav
account.5.ringtone.ring_type =

account.5.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.5.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.5.conf_uri =

#######################################################################################
##                            cid 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.5.cid_source =

account.5.cid_source_privacy = 1
account.5.cid_source_ppi = 1
account.5.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.5.session_timer.enable =

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.5.music_on_hold_type =

account.5.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.5.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.5.missed_calllog =

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

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.5.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.5.dnd.enable =
account.5.dnd.on_code =
account.5.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################
#Enable or disable the busy forward feature for account; 0-Disabled (default), 1-Enabled;
account.5.always_fwd.enable =
account.5.always_fwd.target =
account.5.always_fwd.off_code =
account.5.always_fwd.on_code =

account.5.busy_fwd.enable =
account.5.busy_fwd.target =
account.5.busy_fwd.off_code =
account.5.busy_fwd.on_code =

#Enable or disable the no answer forward feature for account1; 0-Disabled (default), 1-Enabled;
#Configure the waiting ring times before forwarding. It ranges from 0 to 20, the default value is 2.
account.5.timeout_fwd.enable =
account.5.timeout_fwd.target =
account.5.timeout_fwd.timeout =
account.5.timeout_fwd.off_code =
account.5.timeout_fwd.on_code =

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.5.hoteling.enable = 0
account.5.hoteling.user_id = 0
account.5.hoteling.password = 0
account.5.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.5.acd.enable = 0
account.5.acd.unavailable_reason_enable = 0
account.5.acd.available = 0
account.5.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.5.bw_acd_reason_code.Y = 500(lunch time)
account.5.bw_acd_reason_code.1 =

account.5.reason_code.1 =
account.5.reason_code_name.1 = 0
account.5.bw_disp_code.1 =
account.5.bw_disp_code_name.1 =
account.5.supervisor_info_code.1 =
account.5.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.5.call_center.call_info_enable = 0
account.5.call_center.show_call_info_time = 30
account.5.call_center.disp_code_enable = 0
account.5.call_center.trace_enable = 0
account.5.call_center.emergency_enable = 0
account.5.call_center.queue_status_enable = 0
account.5.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.5.xsi.user =
account.5.xsi.password =
account.5.xsi.host =
account.5.xsi.server_type =
account.5.xsi.port =


#######################################################################################
##                                   NETWORK                                         ##
#######################################################################################
##0-ipv4, 1-ipv6, 2-ipv4&ipv6
network.ip_address_mode = 2

network.ipv6_prefix = 64
network.ipv6_internet_port.type =
network.ipv6_internet_port.ip =
network.ipv6_internet_port.gateway =
network.ipv6_primary_dns =
network.ipv6_secondary_dns =
network.ipv6_icmp_v6.enable =

#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, subnet mask, 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}

#######################################################################################
##                           Account 6 Basic Settings                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.enable =
{if isset($user_password_6) }
account.6.enable = 1
{else}
account.6.enable = 0
{/if}
account.6.label = {$display_name_6}
account.6.display_name = {$display_name_6}
account.6.auth_name = {$auth_id_6}
account.6.password = {$user_password_6}
account.6.user_name = {$user_id_6}
account.6.sip_server_host = {$server_address_6}
account.6.sip_server_port = {$sip_port_6}

account.6.outbound_host = {$outbound_proxy_6}
account.6.outbound_port = 5060
account.6.sip_listen_port = 5060
#Configure the transport type; 0-UDP (default), 1-TCP, 2-TLS, 3-DNS SRV;
{if $sip_transport_6 == 'udp'}account.6.transport = 0{/if}
{if $sip_transport_6 == 'tcp'}account.6.transport = 1{/if}
{if $sip_transport_6 == 'tls'}account.6.transport = 2{/if}
{if $sip_transport_6 == 'dns srv'}account.6.transport = 3{/if}

account.6.outbound_proxy.1.address = {$outbound_proxy_primary_6}
account.6.outbound_proxy.2.address = {$outbound_proxy_secondary_6}
account.6.outbound_proxy_enable = {if isset($outbound_proxy_primary_6)}1{else}0{/if}

#######################################################################################
##                          Failback                                                 ##
#######################################################################################
## ranges from 1 to 6;
##account.X.reregister_enable = 0

account.6.reregister_enable = 0
account.6.retry_counts =
account.6.failback_mode = 0
account.6.failback_timeout = 3600
account.6.naptr_build = 0
account.6.fallback.redundancy_type = 0
account.6.fallback.timeout = 120
account.6.sip_server.1.address =
account.6.sip_server.1.port = 5060
#Configure the register expiry time (in seconds), the default value is 3600.
account.6.sip_server.1.expires = {$register_expires_6}
account.6.sip_server.1.retry_counts = 3
account.6.sip_server.1.failback_mode = 0
account.6.sip_server.1.failback_timeout = 3600
account.6.sip_server.1.register_on_enable = 0
account.6.sip_server.2.address =
account.6.sip_server.2.port = 5060
account.6.sip_server.2.expires = 3600
account.6.sip_server.2.retry_counts = 3
account.6.sip_server.2.failback_mode = 0
account.6.sip_server.2.failback_timeout = 3600
account.6.sip_server.2.register_on_enable = 0
account.6.dns_cache_type = 1

account.6.dns_cache_a.1.name =
account.6.dns_cache_a.1.ip =
account.6.dns_cache_a.1.ttl = 300

account.6.dns_cache_srv.1.name =
account.6.dns_cache_srv.1.port = 0
account.6.dns_cache_srv.1.priority = 0
account.6.dns_cache_srv.1.target =
account.6.dns_cache_srv.1.weight = 0
account.6.dns_cache_srv.1.ttl = 300
account.6.dns_cache_naptr.1.name =
account.6.dns_cache_naptr.1.flags =
account.6.dns_cache_naptr.1.order = 0
account.6.dns_cache_naptr.1.preference = 0
account.6.dns_cache_naptr.1.replace =
account.6.dns_cache_naptr.1.service =
account.6.dns_cache_naptr.1.ttl = 300

account.6.static_cache_pri = 0

#######################################################################################
##                           Register Advanced                                       ##
#######################################################################################
## ranges from 1 to 6;
##account.X.sip_server_type =

#Configure the SIP server type; 0-Default (default), 2-BroadSoft, 4-Cosmocom;
account.6.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.6.unregister_on_reboot =

#Enable or disable the phone to only accept the message from the server; 0-Disabled (default), 1-Enabled;
account.6.sip_trust_ctrl = 1

#Configure the timeout (in seconds) for DNS query, the value ranges from 1 to 9, the default value is 8.
account.6.dns_query_timeout=

#Enable or disable the timer to periodically refresh the DNS-SRV query result; 0-Disabled (default), 1-Enabled;
account.6.srv_ttl_timer_enable =
account.6.proxy_require =


#Enable or disable the phone to send the MAC address and line number in the Register message; 0-Disabled (default), 1-Enabled;
account.6.register_mac =
account.6.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.6.reg_fail_retry_interval =

#########################################################################
##                     NAT Settings                                    ##
#########################################################################
## ranges from 1 to 6;
##account.X.nat.nat_traversal = 0

#Enable or disable the NAT traversal; 0-Disabled (default), 1-STUN;
account.6.nat.nat_traversal = 0

account.6.nat.stun_server =
account.6.nat.stun_port = 3478

#Enable or disable the NAT keep-alive; 0-Disabled, 1-Default (default), 2-Option, 3-Notify;
account.6.nat.udp_update_enable = 1

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

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


#######################################################################################
##                            Account6 Advance Settings                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.advanced.timer_t1 = 0.5
##voice_mail.number.X =

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

voice_mail.number.6 = *97


#######################################################################################
##                            Subscribe                                              ##
#######################################################################################
## ranges from 1 to 6;
##account.X.subscribe_mwi =

account.6.subscribe_mwi = 0
account.6.subscribe_mwi_expires = 3600

#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled;
account.6.subscribe_mwi_to_vm = 0

account.6.subscribe_acd_expires= 3600


#######################################################################################
##                            BLF List                                               ##
#######################################################################################
## ranges from 1 to 6;
##account.X.blf.blf_list_uri =

#Configure the BLF list URI (a SIP URI, or use part of the SIP URI). For example, "2300_blflist@domain.com" or "2300_blflist".
account.6.blf.blf_list_uri =

account.6.blf_list_code =
account.6.blf_list_barge_in_code =
account.6.blf.subscribe_period = 1800

account.6.blf.subscribe_event =
account.6.out_dialog_blf_enable = 0


#######################################################################################
##                            BLA/SCA                                                ##
#######################################################################################
## ranges from 1 to 6;
##account.X.shared_line =

#Assign account1 as shared line; 0-Disabled (default), 1-Broadsoft SCA, 2-BLA;
account.6.shared_line =

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

#######################################################################################
##                            Audio Codec                                            ##
#######################################################################################
#Audio codecs for account1 (Y ranges from 1 to 11).
#Enable or disable the specified codec; 0-Disabled, 1-Enabled;
#account.6.codec.Y.enable =
#The type of the specified codec.
#account.6.codec.Y.payload_type =
#The priority of the specified codec. It's available when the codec is enabled.
#account.6.codec.Y.priority =
#The payload of the specified codec.
#account.6.codec.Y.rtpmap =

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

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

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

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

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

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

account.6.codec.7.enable = 0
account.6.codec.7.payload_type = iLBC
account.6.codec.7.priority =  0
account.6.codec.7.rtpmap = 106

account.6.codec.8.enable = 0
account.6.codec.8.payload_type = G726-16
account.6.codec.8.priority = 0
account.6.codec.8.rtpmap = 103

account.6.codec.9.enable = 0
account.6.codec.9.payload_type = G726-24
account.6.codec.9.priority = 0
account.6.codec.9.rtpmap = 104

account.6.codec.10.enable = 0
account.6.codec.10.payload_type = G726-32
account.6.codec.10.priority = 0
account.6.codec.10.rtpmap = 102

account.6.codec.11.enable = 0
account.6.codec.11.payload_type = G726-40
account.6.codec.11.priority = 0
account.6.codec.11.rtpmap = 105

account.6.codec.12.enable = 0
account.6.codec.12.payload_type = GSM
account.6.codec.12.priority = 0
account.6.codec.12.rtpmap = 3


#######################################################################################
##                            Audio Advanced                                         ##
#######################################################################################
#Specify whether to encrypt the SIP messages; 0-Disabled (default), 1-Forced, 2-Negotiated;
account.6.srtp_encryption =

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


#######################################################################################
##                            Anonymous Call                                         ##
#######################################################################################
account.6.anonymous_call = 0
account.6.anonymous_call_oncode =
account.6.anonymous_call_offcode =

account.6.reject_anonymous_call =
account.6.anonymous_reject_oncode =
account.6.anonymous_reject_offcode =

#######################################################################################
##                            Pickup Code                                            ##
#######################################################################################
account.5.dialoginfo_callpickup = 0

#Configure the directed and group pickup codes for account 1, the settings on a per-account basis take precedence over the settings on the phone.
account.6.group_pickup_code =
account.56.direct_pickup_code =

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

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

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

#######################################################################################
##                            Alert info                                             ##
#######################################################################################
#Enable or disable to use the Distinctive Ring Tones;  0-Disabled , 1-Enabled(default);
account.6.alert_info_url_enable =

#Assign a ringtone for account2. The system ring tones are: common (default), Ring1.wav - Ring8.wav.
#If you set the custom ring tone (Busy.wav) for the phone, the value is: account.2.ringtone.ring_type = Config:Busy.wav
#If you set the system ring tone (Ring2.wav) for the phone, the value is: account.2.ringtone.ring_type = Resource:Ring2.wav
account.6.ringtone.ring_type =

account.6.picture_info_enable = 1

#######################################################################################
##                            Conference                                             ##
#######################################################################################
#Configure the conference type; 0-Local (default), 2-Network Conference;
account.6.conf_type =

#Configure the conference URI (a SIP URI, or use part of the SIP URI). For example, "conference@domain.com" or "conference".
account.6.conf_uri =

#######################################################################################
##                            cid 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.5.cid_source =

account.6.cid_source_privacy = 1
account.6.cid_source_ppi = 1
account.6.cp_source = 0

#######################################################################################
##                            Session Timer                                          ##
#######################################################################################
#Enable or disable the session timer, 0-Disabled (default), 1-Enabled;
account.6.session_timer.enable =

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

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

#######################################################################################
##                            Music on Hold                                          ##
#######################################################################################
#Configure the type of Music on Hold; 0-Send the INVITE request to Music on Hold Server then hold the call; 1-Hold the call then send the INVITE request to Music on Hold Server;
#Require reboot;
account.6.music_on_hold_type =

account.6.music_server_uri =

#######################################################################################
##                            Advanced                                               ##
#######################################################################################
#Enable or disable the auto answer feature; 0-Disabled (default), 1-Enabled;
account.6.auto_answer =

#Enable or disable the phone to record the missed call; 0-Disabled, 1-Enabled (default);
account.6.missed_calllog =

#Enable or disable the 100 reliable retransmission; 0-Disabled (default), 1-Enabled;
account.6.100rel_enable =

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

#Enbale or diable the simplified header field feature; 0-Disabled, 1-Enabled (default);
account.6.compact_header_enable =

#######################################################################################
##                                   DND                                             ##
#######################################################################################
account.6.dnd.enable =
account.6.dnd.on_code =
account.6.dnd.off_code =

#######################################################################################
##                                 Call Forward                                      ##
#######################################################################################
#Enable or disable the busy forward feature for account; 0-Disabled (default), 1-Enabled;
account.6.always_fwd.enable =
account.6.always_fwd.target =
account.6.always_fwd.off_code =
account.6.always_fwd.on_code =

account.6.busy_fwd.enable =
account.6.busy_fwd.target =
account.6.busy_fwd.off_code =
account.6.busy_fwd.on_code =

#Enable or disable the no answer forward feature for account1; 0-Disabled (default), 1-Enabled;
#Configure the waiting ring times before forwarding. It ranges from 0 to 20, the default value is 2.
account.6.timeout_fwd.enable =
account.6.timeout_fwd.target =
account.6.timeout_fwd.timeout =
account.6.timeout_fwd.off_code =
account.6.timeout_fwd.on_code =

#######################################################################################
##                                 Broadsoft Hoteling                                ##
#######################################################################################
account.6.hoteling.enable = 0
account.6.hoteling.user_id = 0
account.6.hoteling.password = 0
account.6.hoteling.auto_login_enable = 0

#######################################################################################
##                                 Broadsoft ACD                                     ##
#######################################################################################
account.6.acd.enable = 0
account.6.acd.unavailable_reason_enable = 0
account.6.acd.available = 0
account.6.acd.initial_state = 1

#######################################################################################
##                                 Broadsoft ACD Call Center                         ##
#######################################################################################
#Configure the ACD reason code of Broadsoft.(The valus of Y must be consecutive numbers.)
#account.6.bw_acd_reason_code.Y = 500(lunch time)
account.6.bw_acd_reason_code.1 =

account.6.reason_code.1 =
account.6.reason_code_name.1 = 0
account.6.bw_disp_code.1 =
account.6.bw_disp_code_name.1 =
account.6.supervisor_info_code.1 =
account.6.supervisor_info_code_name.1 =

#######################################################################################
##                                 Broadsoft Call Center                             ##
#######################################################################################
account.6.call_center.call_info_enable = 0
account.6.call_center.show_call_info_time = 30
account.6.call_center.disp_code_enable = 0
account.6.call_center.trace_enable = 0
account.6.call_center.emergency_enable = 0
account.6.call_center.queue_status_enable = 0
account.6.call_center.queue_status_light_enable = 0

#######################################################################################
##                                 Broadsoft XSI                                     ##
#######################################################################################
account.6.xsi.user =
account.6.xsi.password =
account.6.xsi.host =
account.6.xsi.server_type =
account.6.xsi.port =


#######################################################################################
##                                   NETWORK                                         ##
#######################################################################################
##0-ipv4, 1-ipv6, 2-ipv4&ipv6
network.ip_address_mode = 2

network.ipv6_prefix = 64
network.ipv6_internet_port.type =
network.ipv6_internet_port.ip =
network.ipv6_internet_port.gateway =
network.ipv6_primary_dns =
network.ipv6_secondary_dns =
network.ipv6_icmp_v6.enable =

#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, subnet mask, 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}

#######################################################################################
##                             Line Key                                              ##
#######################################################################################

#The x of the parameter "linekey.x.line" ranges from 1 to 6.
#The default value equals to the value of x. For example, the default value of the parameter "linekey.1.line" is 1.
#linekey.x.lable--Define the label for each line key. Meet-Me Conference "1" or BLF "16" require pick_value.

{foreach $keys as $row}
{if $row.device_key_category == "line"}
#Configure Line Key {$row.device_key_id}
linekey.{$row.device_key_id}.line = {$row.device_key_line}
linekey.{$row.device_key_id}.value = {$row.device_key_value}
{if $row.device_key_type == "1" || $row.device_key_type == "16"}
linekey.{$row.device_key_id}.pickup_value = {$row.device_key_extension}
{else}
linekey.{$row.device_key_id}.extension = {$row.device_key_extension}
{/if}
linekey.{$row.device_key_id}.type = {$row.device_key_type}
linekey.{$row.device_key_id}.xml_phonebook =
linekey.{$row.device_key_id}.label = {$row.device_key_label}

{/if}
{/foreach}
