<flat-profile>
        <!-- Reset the global configuration options, now we will reset per day instead of every second -->
        <Resync_Periodic>86400</Resync_Periodic>
        <Resync_On_Reset>Yes</Resync_On_Reset>
        <Profile_Rule>{$provisioning_type}://{$server.ip.1}/spa$PSN.cfg</Profile_Rule>
        <Profile_Rule_B ua="na">{$provisioning_type}://{$server.ip.1}/spa$MA.xml</Profile_Rule_B>

        <!-- Line Registration Information -->
        <Text_Logo group="Phone/General">{$text_logo}</Text_Logo>
        <Station_Name group="Phone/General">{$station_name}</Station_Name>
        <Voice_Mail_Number group="Phone/General" ua="na">{$voicemail_extension}</Voice_Mail_Number>
        {line_loop}
        <Display_Name_{$line}_ ua="na">{$displaynameline}</Display_Name_{$line}_>
        <!-- If BLF then set this to the BLF -->
        <Short_Name_{$line}_ ua="na">{$short_name}</Short_Name_{$line}_>
        <User_ID_{$line}_ ua="na">{$username}</User_ID_{$line}_>
        <Password_{$line}_ ua="na">{$secret}</Password_{$line}_>
        <!-- Below set to disabled for BLF -->
        <Extension_{$line}_ group="Phone/Line_Key_{$line}">{$line}</Extension_{$line}_> <!-- options: 1/2/3/4/5/6/Disabled -->
        <!-- If BLF set to shared -->
        <Share_Call_Appearance_{$line}_ group="Phone/Line_Key_{$line}">{$share_call_appearance|private}</Share_Call_Appearance_{$line}_>
        <!-- this changes how the button works. If it's set when the phone isn't on blf then the button turns orange. so we probably need to remove this normally.-->
        <Extended_Function_{$line}_ group="Phone/Line_Key_{$line}">{$extended_function}</Extended_Function_{$line}_>
        <Dial_Plan_{$line}_ ua="na">{$dial_plan}</Dial_Plan_{$line}_>
		
	<!-- User Proxy and Registration - These are extension specific settings too--> 
	<Proxy_{$line}_ ua="na">{$server.ip.1}</Proxy_{$line}_>
        <Use_Outbound_Proxy_{$line}_ ua="na">No</Use_Outbound_Proxy_{$line}_>
        <Outbound_Proxy_{$line}_ ua="na">{$server.ip.1}</Outbound_Proxy_{$line}_>
        <Register_Expires_{$line}_ ua="ro">120</Register_Expires_{$line}_>
        <Ans_Call_Without_Reg_{$line}_ ua="na">No</Ans_Call_Without_Reg_{$line}_>
        <Use_DNS_SRV_{$line}_ ua="rw">No</Use_DNS_SRV_{$line}_>
        <Proxy_Fallback_Intvl_{$line}_ ua="ro">120</Proxy_Fallback_Intvl_{$line}_>
        <Proxy_Redundancy_Method_{$line}_ ua="ro">Normal</Proxy_Redundancy_Method_{$line}_>
        {/line_loop}


         
         <Primary_NTP_Server ua="na">{$server.ip.1}</Primary_NTP_Server>
         <Upgrade_Enable ua="ro">{$enable_upgrade}</Upgrade_Enable>
         <Upgrade_Rule ua="ro">{$upgrade_path}</Upgrade_Rule>


         <Time_Zone  ua="na">{$timezone}</Time_Zone>

        <!-- Admin -->
         <Enable_Web_Server ua="na">{$enable_webserver}</Enable_Web_Server>
         <Web_Server_Port ua="na">{$webserver_port}</Web_Server_Port>
         <Enable_Web_Admin_Access ua="na">{$enable_webserver_admin}</Enable_Web_Admin_Access>
         <Admin_Passwd ua="na">{$administrator_password}</Admin_Passwd>
         <User_Password ua="na">{$user_password}</User_Password>

        <!-- options: -->
         <Server_Type group="Attendant_Console/General">Asterisk</Server_Type>
         <Attendant_Console_Call_Pickup_Code group="Attendant_Console/General">**#</Attendant_Console_Call_Pickup_Code>
         <Daylight_Saving_Time_Rule ua="na">start=3/8/7/02:0:0;end=11/1/7/02:0:0;save=1</Daylight_Saving_Time_Rule>
         <Daylight_Saving_Time_Enable group="Regional/Miscellaneous">No</Daylight_Saving_Time_Enable>
         <Call_Return_Code ua="na"> </Call_Return_Code>
         <Blind_Transfer_Code > </Blind_Transfer_Code>
         <Call_Back_Act_Code> </Call_Back_Act_Code>
         <Call_Back_Deact_Code> </Call_Back_Deact_Code>
         <Cfwd_All_Act_Code> </Cfwd_All_Act_Code>
         <Cfwd_All_Deact_Code> </Cfwd_All_Deact_Code>
         <Cfwd_Busy_Act_Code> </Cfwd_Busy_Act_Code>
         <Cfwd_Busy_Deact_Code> </Cfwd_Busy_Deact_Code>
         <Cfwd_No_Ans_Act_Code> </Cfwd_No_Ans_Act_Code>
         <Cfwd_No_Ans_Deact_Code> </Cfwd_No_Ans_Deact_Code>
         <CW_Act_Code> </CW_Act_Code>
         <CW_Deact_Code> </CW_Deact_Code>
         <CW_Per_Call_Act_Code> </CW_Per_Call_Act_Code>
         <CW_Per_Call_Deact_Code> </CW_Per_Call_Deact_Code>
         <Block_CID_Act_Code> </Block_CID_Act_Code>
         <Block_CID_Deact_Code> </Block_CID_Deact_Code>
         <Block_CID_Per_Call_Act_Code> </Block_CID_Per_Call_Act_Code>
         <Block_CID_Per_Call_Deact_Code> </Block_CID_Per_Call_Deact_Code>
         <Block_ANC_Act_Code> </Block_ANC_Act_Code>
         <Block_ANC_Deact_Code> </Block_ANC_Deact_Code>
         <DND_Act_Code> </DND_Act_Code>
         <DND_Deact_Code> </DND_Deact_Code>
         <Secure_All_Call_Act_Code> </Secure_All_Call_Act_Code>
         <Secure_No_Call_Act_Code> </Secure_No_Call_Act_Code>
         <Secure_One_Call_Act_Code> </Secure_One_Call_Act_Code>
         <Secure_One_Call_Deact_Code> </Secure_One_Call_Deact_Code>
         <Paging_Code ua="na">{$page_code}</Paging_Code>
         <Call_Park_Code> </Call_Park_Code>
         <Call_Pickup_Code> </Call_Pickup_Code>
         <Call_UnPark_Code> </Call_UnPark_Code>
         <Group_Call_Pickup_Code> </Group_Call_Pickup_Code>
         <Media_Loopback_Code> </Media_Loopback_Code>
         <Referral_Services_Codes> </Referral_Services_Codes>

        <Select_Logo ua="na">{$logo_type}</Select_Logo>
        <Select_Background_Picture ua="ro">{$background_type}</Select_Background_Picture>
        <Syslog_Server group="System/Optional_Network_Configuration">192.168.1.5</Syslog_Server>
        <Debug_Level group="System/Optional_Network_Configuration">3</Debug_Level>
        <Debug_Server group="System/Optional_Network_Configuration">192.168.1.5</Debug_Server>

        <Speed_Dial_2 ua="rw">{$speed_dial_2}</Speed_Dial_2>
        <Speed_Dial_3 ua="rw">{$speed_dial_3}</Speed_Dial_3>
        <Speed_Dial_4 ua="rw">{$speed_dial_4}</Speed_Dial_4>
        <Speed_Dial_5 ua="rw">{$speed_dial_5}</Speed_Dial_5>
        <Speed_Dial_6 ua="rw">{$speed_dial_6}</Speed_Dial_6>
        <Speed_Dial_7 ua="rw">{$speed_dial_7}</Speed_Dial_7>
        <Speed_Dial_8 ua="rw">{$speed_dial_8}</Speed_Dial_8>
        <Speed_Dial_9 ua="rw">{$speed_dial_9}</Speed_Dial_9>
</flat-profile>
