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

{foreach $lines as $row}
#######################################################################################
##                                   Trnasfer                                        ##       
#######################################################################################
account.{$row.line_number}.phone_setting.call_appearance.transfer_via_new_linekey=


#######################################################################################
##                                   Conference                                      ##       
#######################################################################################
account.{$row.line_number}.phone_setting.call_appearance.conference_via_new_linekey=


#######################################################################################
##                                   Anonymous                                       ##       
#######################################################################################
account.{$row.line_number}.anonymous_call.server_base_only =
account.{$row.line_number}.send_anonymous_rejection_code =
account.{$row.line_number}.anonymous_reject_offcode =
account.{$row.line_number}.anonymous_reject_oncode =
account.{$row.line_number}.reject_anonymous_call=
account.{$row.line_number}.anonymous_call_offcode =
account.{$row.line_number}.anonymous_call_oncode =
account.{$row.line_number}.anonymous_call =
account.{$row.line_number}.send_anonymous_code =



#######################################################################################
##                          Call Configuration                                       ##       
#######################################################################################
account.{$row.line_number}.music_server_uri=
account.{$row.line_number}.music_on_hold_type=
account.{$row.line_number}.auto_label.rule=
account.{$row.line_number}.auto_label.enable=
account.{$row.line_number}.number_of_linekey=
account.{$row.line_number}.phone_setting.call_appearance.calls_per_linekey=


#######################################################################################
##                                    Codec                                          ##       
#######################################################################################
account.{$row.line_number}.codec.ilbc_15_2kbps.priority= 0
account.{$row.line_number}.codec.ilbc_15_2kbps.enable= 0
account.{$row.line_number}.codec.ilbc_13_33kbps.priority= {if isset($flyingvoice_codec_iLBC_priority)}{$flyingvoice_codec_iLBC_priority}{else}0{/if}

account.{$row.line_number}.codec.ilbc_13_33kbps.enable = {if isset($flyingvoice_codec_iLBC_enable)}1{else}0{/if}

account.{$row.line_number}.codec.pcma.enable= {if isset($flyingvoice_codec_pcma_enable)}1{else}0{/if}

account.{$row.line_number}.codec.pcma.priority= {if isset($flyingvoice_codec_pcma_priority)}{$flyingvoice_codec_pcma_priority}{else}0{/if}

account.{$row.line_number}.codec.pcmu.enable= {if isset($flyingvoice_codec_pcmu_enable)}1{else}0{/if}

account.{$row.line_number}.codec.pcmu.priority= {if isset($flyingvoice_codec_pcmu_priority)}{$flyingvoice_codec_pcmu_priority}{else}0{/if}

account.{$row.line_number}.codec.opus.priority = {if isset($flyingvoice_codec_opus_priority)}{$flyingvoice_codec_opus_priority}{else}0{/if}

account.{$row.line_number}.codec.opus.enable= {if isset($flyingvoice_codec_opus_enable)}1{else}0{/if}

account.{$row.line_number}.codec.opus.para=

account.{$row.line_number}.codec.g726_40.enable= {if isset($flyingvoice_codec_g726_40_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g726_40.priority= {if isset($flyingvoice_codec_g726_40_priority)}{$flyingvoice_codec_g726_40_priority}{else}0{/if}

account.{$row.line_number}.codec.g726_32.enable= {if isset($flyingvoice_codec_g726_32_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g726_32.priority= {if isset($flyingvoice_codec_g726_32_priority)}{$flyingvoice_codec_g726_32_priority}{else}0{/if}

account.{$row.line_number}.codec.g726_24.enable= {if isset($flyingvoice_codec_g726_24_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g726_24.priority= {if isset($flyingvoice_codec_g726_24_priority)}{$flyingvoice_codec_g726_24_priority}{else}0{/if}

account.{$row.line_number}.codec.g726_16.enable= {if isset($flyingvoice_codec_g726_16_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g726_16.priority= {if isset($flyingvoice_codec_g726_16_priority)}{$flyingvoice_codec_g726_16_priority}{else}0{/if}

account.{$row.line_number}.codec.g723_63.priority= {if isset($flyingvoice_codec_g723_63_priority)}{$flyingvoice_codec_g723_63_priority}{else}0{/if}

account.{$row.line_number}.codec.g723_63.enable= {if isset($flyingvoice_codec_g723_63_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g723_53.priority= {if isset($flyingvoice_codec_g723_53_priority)}{$flyingvoice_codec_g723_53_priority}{else}0{/if}

account.{$row.line_number}.codec.g723_53.enable= {if isset($flyingvoice_codec_g723_53_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g729.priority= {if isset($flyingvoice_codec_g729_priority)}{$flyingvoice_codec_g729_priority}{else}0{/if}

account.{$row.line_number}.codec.g729.enable= {if isset($flyingvoice_codec_g729_enable)}1{else}0{/if}

account.{$row.line_number}.codec.g722.priority= {if isset($flyingvoice_codec_g722_priority)}{$flyingvoice_codec_g722_priority}{else}0{/if}

account.{$row.line_number}.codec.g722.enable= {if isset($flyingvoice_codec_g722_enable)}1{else}0{/if}



################################################################
#                      Account Register                       ##
################################################################
{if isset($row.password) }
account.{$row.line_number}.enable = 1
{else}
account.{$row.line_number}.enable = 0
{/if}
account.{$row.line_number}.label = {$row.display_name}
account.{$row.line_number}.display_name = {$row.display_name}
account.{$row.line_number}.auth_name = {$row.auth_id}
account.{$row.line_number}.password = {$row.password}
{if isset($row.server.1.address)}
account.{$row.line_number}.user_name = {$row.user_id}@{$row.server_address}
{else}
account.{$row.line_number}.user_name = {$row.user_id}
{/if}

{if isset($row.server.1.address)} account.1.sip_server.1.address= {$row.server.1.address}{else} account.1.sip_server.1.address= {$row.server_address}{/if}

account.{$row.line_number}.sip_server.1.port= {$row.sip_port}


{if $row.sip_transport == 'udp'}account.1.sip_server.1.transport_type = 0{/if}
{if $row.sip_transport == 'tcp'}account.1.sip_server.1.transport_type = 1{/if}
{if $row.sip_transport == 'tls'}account.1.sip_server.1.transport_type = 2{/if}
{if $row.sip_transport == 'dns srv'}account.1.sip_server.1.transport_type = 3{/if}

account.{$row.line_number}.sip_server.1.expires= {$row.register_expires}
account.{$row.line_number}.sip_server.1.retry_counts= 3

account.{$row.line_number}.sip_server.2.address= {$row.server.2.address}
account.{$row.line_number}.sip_server.2.port= {$row.sip_port}


{if $row.sip_transport == 'udp'}account.1.sip_server.2.transport_type = 0{/if}
{if $row.sip_transport == 'tcp'}account.1.sip_server.2.transport_type = 1{/if}
{if $row.sip_transport == 'tls'}account.1.sip_server.2.transport_type = 2{/if}
{if $row.sip_transport == 'dns srv'}account.1.sip_server.2.transport_type = 3{/if}

account.{$row.line_number}.sip_server.2.expires= {$row.register_expires}
account.{$row.line_number}.sip_server.2.retry_counts= 3

account.{$row.line_number}.outbound_proxy_enable= {if isset($row.outbound_proxy_primary)}1{else}0{/if}

account.{$row.line_number}.outbound_proxy.1.address= {$row.outbound_proxy_primary}

{if isset($outbound_proxy_1_port)}
account.{$row.line_number}.outbound_proxy.1.port = {$outbound_proxy_1_port}
{else}
account.{$row.line_number}.outbound_proxy.1.port = {$row.sip_port}
{/if}

account.{$row.line_number}.outbound_proxy.2.address= {$row.outbound_proxy_secondary}

{if isset($outbound_proxy_1_port)}
account.{$row.line_number}.outbound_proxy.2.port = {$outbound_proxy_2_port}
{else}
account.{$row.line_number}.outbound_proxy.2.port = {$row.sip_port}
{/if}

{if isset($outbound_proxy_fallback_interval)}
account.{$row.line_number}.outbound_proxy_fallback_interval = {$outbound_proxy_fallback_interval}
{else}
account.{$row.line_number}.outbound_proxy_fallback_interval = 120
{/if}

account.{$row.line_number}.nat.nat_traversal=


################################################################
#                      Account Basic                          ##
################################################################
account.{$row.line_number}.auto_answer=

################################################################
#                      Account Advanced                       ##
################################################################
account.{$row.line_number}.nat.udp_update_enable= 3
account.{$row.line_number}.nat.udp_update_time= 30
account.{$row.line_number}.nat.rport= {$flyingvoice_rport}

account.{$row.line_number}.dtmf.type= {$flyingvoice_dtmf_type}
account.{$row.line_number}.dtmf.info_type=
account.{$row.line_number}.dtmf.dtmf_payload=
account.{$row.line_number}.100rel_enable= {$flyingvoice_retransmission}

account.{$row.line_number}.subscribe_register=
account.{$row.line_number}.cid_source= {$flyingvoice_cid_source}
account.{$row.line_number}.enable_user_equal_phone=
account.{$row.line_number}.srtp_encryption= {$flyingvoice_srtp_encryption}
account.{$row.line_number}.ptime= 20
account.{$row.line_number}.register_line=
account.{$row.line_number}.register_mac=
account.{$row.line_number}.reg_fail_retry_interval=
account.{$row.line_number}.unregister_on_reboot=1

account.{$row.line_number}.session_timer.refresher=
account.{$row.line_number}.session_timer.expires=
account.{$row.line_number}.session_timer.enable= {$flyingvoice_session_timer}

account.{$row.line_number}.conf_type ={if $nway_conference == 'true'}2{elseif $nway_conference == 'false'}0{/if}

account.{$row.line_number}.sip_server_type=



account.{$row.line_number}.srtp.unencrypted_rtcp.enable =
account.{$row.line_number}.srtp.unencrypted_rtp.enable =
account.{$row.line_number}.sip_server_mode =
>>>>>>> Stashed changes



################################################################
#                        SIP Backup Server                    ##
################################################################
account.{$row.line_number}.outbound_proxy.1.register_on_enable=
account.{$row.line_number}.outbound_proxy.1.failback_timeout=
account.{$row.line_number}.outbound_proxy.1.failback_mode=
account.{$row.line_number}.outbound_proxy.1.retry_counts=
account.{$row.line_number}.outbound_proxy.1.only_signal_with_registered=
account.{$row.line_number}.outbound_proxy.1.failback_subscribe.enable=
account.{$row.line_number}.outbound_proxy.1.invite_retry_counts=

account.{$row.line_number}.sip_server.1.register_on_enable= 0
account.{$row.line_number}.sip_server.1.failback_timeout= 3600
account.{$row.line_number}.sip_server.1.failback_mode= 0
account.{$row.line_number}.sip_server.1.failback_subscribe.enable= 
account.{$row.line_number}.sip_server.1.only_signal_with_registered=
account.{$row.line_number}.sip_server.1.invite_retry_counts=

account.{$row.line_number}.outbound_proxy.2.register_on_enable=
account.{$row.line_number}.outbound_proxy.2.failback_timeout=
account.{$row.line_number}.outbound_proxy.2.failback_mode=
account.{$row.line_number}.outbound_proxy.2.retry_counts=
account.{$row.line_number}.outbound_proxy.2.only_signal_with_registered=
account.{$row.line_number}.outbound_proxy.2.failback_subscribe.enable=
account.{$row.line_number}.outbound_proxy.2.invite_retry_counts=

account.{$row.line_number}.sip_server.2.register_on_enable=
account.{$row.line_number}.sip_server.2.failback_timeout=
account.{$row.line_number}.sip_server.2.failback_mode=
account.{$row.line_number}.sip_server.2.failback_subscribe.enable=
account.{$row.line_number}.sip_server.2.only_signal_with_registered=
account.{$row.line_number}.sip_server.2.invite_retry_counts=

account.{$row.line_number}.static_cache_pri=
account.{$row.line_number}.dns_cache_type=
account.{$row.line_number}.naptr_build=
account.{$row.line_number}.fallback.timeout = {$flyingvoice_outbound_proxy_fallback_interval}
account.{$row.line_number}.fallback.redundancy_type=
account.{$row.line_number}.reg_failed_retry_max_time=
account.{$row.line_number}.reg_failed_retry_min_time=
account.{$row.line_number}.redundancy_with_reg_fail.enable =


account.{$row.line_number}.sip_server.1.outbound_proxy_enable =
account.{$row.line_number}.sip_server.2.outbound_proxy_enable =

################################################################
#                        SIP Basic config                     ##
################################################################

account.{$row.line_number}.contact_take_line_param=
account.{$row.line_number}.update_ack_while_dialing=
account.{$row.line_number}.srtp_lifetime=
account.{$row.line_number}.third_part_request_with_route.enable=
account.{$row.line_number}.insert_outbound_in_route.enable=
account.{$row.line_number}.path.enable=
account.{$row.line_number}.sub_fail_retry_interval=
account.{$row.line_number}.transfer_refer_to_contact_header.enable=
account.{$row.line_number}.hold_use_inactive=
account.{$row.line_number}.gruu.enable=
account.{$row.line_number}.dial_tone=
account.{$row.line_number}.call_id_mode=
account.{$row.line_number}.subscribe_expires_overlap=
account.{$row.line_number}.register_expires_overlap=
account.{$row.line_number}.call_info=
account.{$row.line_number}.custom_ua=
account.{$row.line_number}.mwi_parse_terminated=
account.{$row.line_number}.check_cseq.enable=
account.{$row.line_number}.check_to_tag.enable=
account.{$row.line_number}.vq_rtcpxr.collector_server_port=
account.{$row.line_number}.vq_rtcpxr.collector_server_host=
account.{$row.line_number}.vq_rtcpxr.collector_name=
account.{$row.line_number}.compact_header_enable=
account.{$row.line_number}.cp_source=
account.{$row.line_number}.cid_source_ppi=
account.{$row.line_number}.cid_source_privacy=
account.{$row.line_number}.reg_with_pani_header.enable =
account.{$row.line_number}.alert_info=
account.{$row.line_number}.picture_info_enable=
>>>>>>> Stashed changes


#######################################################################################
##                                 History                                           ##       
#######################################################################################
account.{$row.line_number}.missed_calllog=


#######################################################################################  
##                                  Forward                                          ##  
####################################################################################### 
account.{$row.line_number}.timeout_fwd.off_code=
account.{$row.line_number}.timeout_fwd.on_code=
account.{$row.line_number}.timeout_fwd.timeout=
account.{$row.line_number}.timeout_fwd.target=
account.{$row.line_number}.timeout_fwd.enable=
account.{$row.line_number}.busy_fwd.off_code=
account.{$row.line_number}.busy_fwd.on_code=
account.{$row.line_number}.busy_fwd.target=
account.{$row.line_number}.busy_fwd.enable=
account.{$row.line_number}.always_fwd.off_code=
account.{$row.line_number}.always_fwd.on_code=
account.{$row.line_number}.always_fwd.target=
account.{$row.line_number}.always_fwd.enable=


#######################################################################################  
##                                  DND                                              ##  
#######################################################################################
account.{$row.line_number}.dnd.enable=
account.{$row.line_number}.dnd.off_code=
account.{$row.line_number}.dnd.on_code=



#######################################################################################  
##                               Voice Mail                                          ##  
#######################################################################################
voice_mail.number.1= {$voicemail_number}
account.{$row.line_number}.subscribe_mwi=
account.{$row.line_number}.subscribe_mwi_to_vm=
account.{$row.line_number}.subscribe_mwi_expires=
account.{$row.line_number}.display_mwi.enable=

#######################################################################################  
##                               Auto Dial                                           ##  
#######################################################################################
account.{$row.line_number}.auto_dial_enable=
account.{$row.line_number}.auto_dial_num=


#######################################################################################
##                           Preference&Status                                       ##       
#######################################################################################
account.{$row.line_number}.ringtone.ring_type=



#######################################################################################
##                                 Rings Settings                                    ##
#######################################################################################
account.{$row.line_number}.alert_info_url_enable=


#######################################################################################
##                                  BLF/BLF List                                     ##       
#######################################################################################
account.{$row.line_number}.blf.blf_list_uri=
account.{$row.line_number}.blf_list_barge_in_code=
account.{$row.line_number}.blf_list_code=
account.{$row.line_number}.blf_list_retrieve_call_parked_code=
account.{$row.line_number}.blf.subscribe_period=
account.{$row.line_number}.blf.match_host.enable=
account.{$row.line_number}.out_dialog_blf_enable=
account.{$row.line_number}.blf.subscribe_event=



#######################################################################################
##                                   SCA                                             ##       
#######################################################################################
account.{$row.line_number}.shared_line= {if isset($row.password) }{$shared_line_1}{else}{/if}

account.{$row.line_number}.line_seize.expires=
account.{$row.line_number}.shared_line_one_touch_bargein.enable=
account.{$row.line_number}.shared_line_one_touch_retrieve.enable=
account.{$row.line_number}.sca_manage_interface_display_time=
account.{$row.line_number}.shared_line_callpull_code=




#######################################################################################
##                         Broadsoft Hoteling                                        ##       
#######################################################################################
account.{$row.line_number}.hoteling.enable=
account.{$row.line_number}.hoteling.user_id=
account.{$row.line_number}.hoteling.password=
account.{$row.line_number}.hoteling.expires=
account.{$row.line_number}.hoteling.auto_login_enable=


#######################################################################################
##                              Broadsoft XSI                                        ##       
#######################################################################################
account.{$row.line_number}.xsi.user =
account.{$row.line_number}.xsi.password =
account.{$row.line_number}.xsi.host =
account.{$row.line_number}.xsi.server_type =
account.{$row.line_number}.xsi.port =


#######################################################################################
##                                Call Pickup                                        ##       
#######################################################################################
account.{$row.line_number}.direct_pickup_code =
account.{$row.line_number}.group_pickup_code =
account.{$row.line_number}.dialoginfo_callpickup =
account.{$row.line_number}.refresh_remote_id.enable =



#######################################################################################
##                                Network Conferene                                  ##       
#######################################################################################
account.{$row.line_number}.conf_uri ={if $nway_conference == 'true'}nway{$row.auth_id}@{$row.server_address}{/if}



#######################################################################################
##                         Features Sync                                             ##       
#######################################################################################

account.{$row.line_number}.feature_key_sync.enable=

#######################################################################################
##                                   ACD                                             ##       
#######################################################################################

account.{$row.line_number}.acd.available_url=
account.{$row.line_number}.acd.away_url =
account.{$row.line_number}.acd.refresh_url =
account.{$row.line_number}.acd.call_information=
>>>>>>> Stashed changes

{/foreach}
