<?xml version="1.0" encoding="UTF-8"?>
<VOIP_CONFIG_FILE>
<version>2.0002</version>
<GLOBAL_CONFIG_MODULE>
<WAN_Mode>DHCP</WAN_Mode>
<WAN_IP></WAN_IP>
<WAN_Subnet_Mask>255.255.255.0</WAN_Subnet_Mask>
<WAN_Gateway></WAN_Gateway>
<Primary_DNS>{$dns_server_primary}</Primary_DNS>
<Secondary_DNS>{$dns_server_secondary}</Secondary_DNS>
<Enable_DHCP>1</Enable_DHCP>
<Use_Vendor_Class_ID>0</Use_Vendor_Class_ID>
<Vendor_Class_ID>Fanvil X4</Vendor_Class_ID>
<DHCP_Auto_DNS>1</DHCP_Auto_DNS>
<DHCP_Auto_Time>0</DHCP_Auto_Time>
<DHCP_Option_100-101>1</DHCP_Option_100-101>
<Enable_PPPoE>0</Enable_PPPoE>
<RTP_Initial_Port>16384</RTP_Initial_Port>
<RTP_Port_Quantity>16384</RTP_Port_Quantity>
<SNTP_Server>{$ntp_server_primary}</SNTP_Server>
<Second_SNTP_Server>{$ntp_server_secondary}</Second_SNTP_Server>
<Enable_SNTP>1</Enable_SNTP>
<Time_Zone>{$fanvil_time_zone}</Time_Zone>
<Location>{$fanvil_location}</Location>
<Time_Zone_Name>{$fanvil_time_zone_name}</Time_Zone_Name>
<Enable_DST>{$fanvil_enable_dst}</Enable_DST>
<DST_Fixed_Type>2</DST_Fixed_Type>
<SNTP_Timeout>60</SNTP_Timeout>
<DST_Min_Offset>60</DST_Min_Offset>
<DST_Start_Mon>3</DST_Start_Mon>
<DST_Start_Week>5</DST_Start_Week>
<DST_Start_Wday>0</DST_Start_Wday>
<DST_Start_Hour>2</DST_Start_Hour>
<DST_End_Mon>10</DST_End_Mon>
<DST_End_Week>5</DST_End_Week>
<DST_End_Wday>0</DST_End_Wday>
<DST_End_Hour>2</DST_End_Hour>
<Language>0</Language>
<Push_XML_IP></Push_XML_IP>
<Enable_Call_History>1</Enable_Call_History>
<Active_Uri_IP></Active_Uri_IP>
<Boot_Completed_Url></Boot_Completed_Url>
<Reg_On_Url></Reg_On_Url>
<Reg_Off_Url></Reg_Off_Url>
<Reg_Failed_Url></Reg_Failed_Url>
<Offhook_Url></Offhook_Url>
<Onhook_Uri></Onhook_Uri>
<Incmoing_Call_Url></Incmoing_Call_Url>
<Outgoing_Call_Url></Outgoing_Call_Url>
<Call_Active_Url></Call_Active_Url>
<Call_Stop_Url></Call_Stop_Url>
<DND_On_Url></DND_On_Url>
<DND_Off_Url></DND_Off_Url>
<Always_FWD_On_Url></Always_FWD_On_Url>
<Always_FWD_Off_Url></Always_FWD_Off_Url>
<Busy_FWD_On_Url></Busy_FWD_On_Url>
<Busy_FWD_Off_Url></Busy_FWD_Off_Url>
<No_Ans_FWD_On_Url></No_Ans_FWD_On_Url>
<No_Ans_FWD_Off_Url></No_Ans_FWD_Off_Url>
<Transfer_Url></Transfer_Url>
<B_Transfer_Url></B_Transfer_Url>
<A_Transfer_Url></A_Transfer_Url>
<Hold_Url></Hold_Url>
<Unhold_Url></Unhold_Url>
<Mute_Url></Mute_Url>
<Unmute_Url></Unmute_Url>
<Missed_call_Url></Missed_call_Url>
<IP_Change_Url></IP_Change_Url>
<Idle_to_Busy_Url></Idle_to_Busy_Url>
<Busy_to_Idle_Url></Busy_to_Idle_Url>
<ATE_ID></ATE_ID>
<All_Pswd_Encryption>0</All_Pswd_Encryption>
</GLOBAL_CONFIG_MODULE>
<TELE_CONFIG_MODULE>
<Dial_by_Pound>1</Dial_by_Pound>
<BTransfer_by_Pound>1</BTransfer_by_Pound>
<Onhook_to_BXfer>0</Onhook_to_BXfer>
<Onhook_to_AXfer>1</Onhook_to_AXfer>
<Memory_Key_to_BXfer>0</Memory_Key_to_BXfer>
<Xfer_On_Conf_Onhook>0</Xfer_On_Conf_Onhook>
<Dial_Fixed_Length>0</Dial_Fixed_Length>
<Fixed_Length_Nums>11</Fixed_Length_Nums>
<Dial_by_Timeout>1</Dial_by_Timeout>
<Dial_Timeout_value>5</Dial_Timeout_value>
<Dialpeer_With_Line>0</Dialpeer_With_Line>
<Accept_Any_Call>1</Accept_Any_Call>
<IP_Dial_Prefix>.</IP_Dial_Prefix>
<Auto_Switch_Call>0</Auto_Switch_Call>
<Port_Config>
<Port_Config_Entry>
<ID>P1</ID>
<Enable_DND>0</Enable_DND>
<DND_Mode>0</DND_Mode>
<Call_Record_Type>0</Call_Record_Type>
<Enable_Force_Rin>0</Enable_Force_Rin>
<Mute_Ringing>0</Mute_Ringing>
<CWaiting_Tone>1</CWaiting_Tone>
<Ban_Dial_Out>0</Ban_Dial_Out>
<Ban_Empty_CID>0</Ban_Empty_CID>
<Enable_CLIP>1</Enable_CLIP>
<CallWaiting>1</CallWaiting>
<CallTransfer>1</CallTransfer>
<CallSemiXfer>1</CallSemiXfer>
<CallConference>1</CallConference>
<AutoAnswer>0</AutoAnswer>
<No_Answer_Time>20</No_Answer_Time>
<Warm_Line_Time>0</Warm_Line_Time>
<Hotline_Num></Hotline_Num>
<Auto_PickupNext>0</Auto_PickupNext>
<Busy_No_Line>0</Busy_No_Line>
<Auto_Onhook>1</Auto_Onhook>
<Auto_Onhook_Time>3</Auto_Onhook_Time>
<DND_Code>1</DND_Code>
<Busy_Code>2</Busy_Code>
<Reject_Code>3</Reject_Code>
<Caller_Name_Type>0</Caller_Name_Type>
<Enable_Intercom>1</Enable_Intercom>
<Intercom_Mute>0</Intercom_Mute>
<Intercom_Tone>1</Intercom_Tone>
<Intercom_Barge>1</Intercom_Barge>
<Use_Auto_Redial>0</Use_Auto_Redial>
<AutoRedial_Delay>10</AutoRedial_Delay>
<AutoRedial_Times>10</AutoRedial_Times>
<Call_Complete>0</Call_Complete>
<Hide_DTMF_Type>0</Hide_DTMF_Type>
<Talk_DTMF_Tone>1</Talk_DTMF_Tone>
<Dial_DTMF_Tone>1</Dial_DTMF_Tone>
<Psw_Dial_Mode>0</Psw_Dial_Mode>
<Psw_Dial_Length>0</Psw_Dial_Length>
<Psw_Dial_Prefix></Psw_Dial_Prefix>
<Enable_MultiLine>1</Enable_MultiLine>
<Allow_IP_Call>1</Allow_IP_Call>
<CHolding_Tone>1</CHolding_Tone>
<Number_Privacy>0</Number_Privacy>
<Privacy_Rule></Privacy_Rule>
</Port_Config_Entry>
</Port_Config>
<Transf_SDial>0</Transf_SDial>
<Enable_Code_Plan>0</Enable_Code_Plan>
<Country_Code></Country_Code>
<Area_Code></Area_Code>
<Transf_DTMF_Code></Transf_DTMF_Code>
<Hold_DTMF_Code></Hold_DTMF_Code>
<Conf_DTMF_Code></Conf_DTMF_Code>
<Code_Plan_List>
<Code_Plan_List_Entry>
<ID>P1</ID>
<rule></rule>
</Code_Plan_List_Entry>
</Code_Plan_List>
</TELE_CONFIG_MODULE>
<DSP_CONFIG_MODULE>
<Signal_Standard>11</Signal_Standard>
<Enable_MWI_Tone>1</Enable_MWI_Tone>
<Onhook_Time>120</Onhook_Time>
<G729_Payload_Len>1</G729_Payload_Len>
<G723_Bit_Rate>1</G723_Bit_Rate>
<G722_Timestamps>0</G722_Timestamps>
<VAD>1</VAD>
<Ring_Type>2</Ring_Type>
<Dtmf_Payload_Type>101</Dtmf_Payload_Type>
<TX_AGC>0</TX_AGC>
<RX_AGC>0</RX_AGC>
<Headset_MIC_offset>3</Headset_MIC_offset>
<Headset_spkr_offset>7</Headset_spkr_offset>
<Sidetone_GAIN>1</Sidetone_GAIN>
<EHS_Type>0</EHS_Type>
<RTP_Keep_Alive>0</RTP_Keep_Alive>
<Session_Report>0</Session_Report>
<Interval_Report>0</Interval_Report>
<Interval_Period>60</Interval_Period>
<MOS-LQ_Warning>40</MOS-LQ_Warning>
<MOS-LQ_Critical>25</MOS-LQ_Critical>
<Delay_Warning>150</Delay_Warning>
<Delay_Critical>200</Delay_Critical>
<Phone_Report>0</Phone_Report>
<WEB_Report>0</WEB_Report>
<Port_Config>
<Port_Config_Entry>
<ID>P1</ID>
<General_Spk_Vol>5</General_Spk_Vol>
<General_Mic_Vol>3</General_Mic_Vol>
<Headset_Vol>5</Headset_Vol>
<Ring_in_Headset>0</Ring_in_Headset>
<Auto_Headset>0</Auto_Headset>
<Headset_Ring_Vol>5</Headset_Ring_Vol>
<HandFree_Vol>5</HandFree_Vol>
<RingTone_Vol>5</RingTone_Vol>
<Voice_Codec1>G722/8000</Voice_Codec1>
<Voice_Codec2>PCMA/8000</Voice_Codec2>
<Voice_Codec3>PCMU/8000</Voice_Codec3>
<Voice_Codec4>G729/8000</Voice_Codec4>
<Voice_Codec5></Voice_Codec5>
<Voice_Codec6></Voice_Codec6>
</Port_Config_Entry>
</Port_Config>
<Alert_Info_Ring>
<Alert_Info_Ring_Entry>
<ID>Alert1</ID>
<Text></Text>
<Ring_Type>1</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert2</ID>
<Text></Text>
<Ring_Type>2</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert3</ID>
<Text></Text>
<Ring_Type>3</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert4</ID>
<Text></Text>
<Ring_Type>4</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert5</ID>
<Text></Text>
<Ring_Type>5</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert6</ID>
<Text></Text>
<Ring_Type>6</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert7</ID>
<Text></Text>
<Ring_Type>7</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert8</ID>
<Text></Text>
<Ring_Type>8</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert9</ID>
<Text></Text>
<Ring_Type>9</Ring_Type>
</Alert_Info_Ring_Entry>
<Alert_Info_Ring_Entry>
<ID>Alert10</ID>
<Text></Text>
<Ring_Type>10</Ring_Type>
</Alert_Info_Ring_Entry>
</Alert_Info_Ring>
</DSP_CONFIG_MODULE>
<SIP_CONFIG_MODULE>
<SIP__Port>5060</SIP__Port>
<STUN_Server></STUN_Server>
<STUN_Port>3478</STUN_Port>
<STUN_Refresh_Time>50</STUN_Refresh_Time>
<SIP_Wait_Stun_Time>800</SIP_Wait_Stun_Time>
<Extern_NAT_Addrs></Extern_NAT_Addrs>
<Reg_Fail_Interval>32</Reg_Fail_Interval>
<SIP_Pswd_Encryption>0</SIP_Pswd_Encryption>
<Strict_BranchPrefix>0</Strict_BranchPrefix>
<Enable_Group_Backup>0</Enable_Group_Backup>
<Enable_RFC4475>1</Enable_RFC4475>
<SIP_invite_strict>1</SIP_invite_strict>
<Notify_Reboot>1</Notify_Reboot>
<SMS_direct_Enabled>0</SMS_direct_Enabled>
<SMS_Save_Enabled>1</SMS_Save_Enabled>
<SMS_Ring_Enabled>1</SMS_Ring_Enabled>
<CSTA_Enable>0</CSTA_Enable>
<SIP_Line_List>
<SIP_Line_List_Entry>
<ID>SIP1</ID>
<Phone_Number>{$account.1.user_id}</Phone_Number>
<Display_Name>{$account.1.display_name}</Display_Name>
<Sip_Name>{$fanvil_server_name}</Sip_Name>
<Register_Addr>{$account.1.server_address}</Register_Addr>
<Register_Port>{$account.1.sip_port}</Register_Port>
<Register_User>{$account.1.auth_id}</Register_User>
<Register_Pswd>{$account.1.password}</Register_Pswd>
<Register_TTL>{$account.1.register_expires}</Register_TTL>

<Enable_Reg>{if isset($account.1.password)}1{else}0{/if}</Enable_Reg>

<Proxy_Addr>{$account.1.outbound_proxy_primary}</Proxy_Addr>
<Proxy_Port>{$account.1.sip_port}</Proxy_Port>
<Proxy_User>{$account.1.auth_id}</Proxy_User>
<Proxy_Pswd>{$account.1.password}</Proxy_Pswd>
<BakProxy_Addr>{$account.1.outbound_proxy_secondary}</BakProxy_Addr>
<BakProxy_Port>{$account.1.sip_port}</BakProxy_Port>
<Enable_Failbac>1</Enable_Failbac>
<Signal_Crypto>0</Signal_Crypto>
<SigCrypto_Key></SigCrypto_Key>
<Media_Crypto>0</Media_Crypto>
<MedCrypto_Key></MedCrypto_Key>
<SRTP_Auth-Tag>0</SRTP_Auth-Tag>
<Local_Domain></Local_Domain>
<Always_FWD>0</Always_FWD>
<Busy_FWD>0</Busy_FWD>
<No_Answer_FWD>0</No_Answer_FWD>
<Always_FWD_Num></Always_FWD_Num>
<Busy_FWD_Num></Busy_FWD_Num>
<NoAnswer_FWD_N></NoAnswer_FWD_N>
<FWD_Timer>5</FWD_Timer>
<Ring_Type>0</Ring_Type>
<Hotline_Num></Hotline_Num>
<Enable_Hotline>0</Enable_Hotline>
<WarmLine_Time>0</WarmLine_Time>
<Pickup_Num></Pickup_Num>
<Join_Num></Join_Num>
<NAT_UDPUpdate>2</NAT_UDPUpdate>
<UDPUpdate_TTL>30</UDPUpdate_TTL>
<Server_Type>0</Server_Type>
<User_Agent></User_Agent>
<PRACK>1</PRACK>
<Keep_AUTH>0</Keep_AUTH>
<Session_Timer>0</Session_Timer>
<S.Timer_Expire>0</S.Timer_Expire>
<Enable_GRUU>0</Enable_GRUU>
<DTMF_Mode>3</DTMF_Mode>
<DTMF_Info_Mode>0</DTMF_Info_Mode>
<NAT_Type>0</NAT_Type>
<Enable_Rport>1</Enable_Rport>
<Subscribe>0</Subscribe>
<Sub_Expire>3600</Sub_Expire>
<Single_Codec>0</Single_Codec>
<CLIR>0</CLIR>
<Strict_Proxy>0</Strict_Proxy>
<Direct_Contact>0</Direct_Contact>
<History_Info>0</History_Info>

<XFER_Expire>0</XFER_Expire>
<Ban_Anonymous>0</Ban_Anonymous>
<Dial_Off_Line>0</Dial_Off_Line>
<Quota_Name>0</Quota_Name>
<Presence_Mode>0</Presence_Mode>
<RFC_Ver>1</RFC_Ver>
<Signal_Port>5060</Signal_Port>

{if $account.1.sip_transport == 'udp'}<Transport>0</Transport>{/if}
{if $account.1.sip_transport == 'tcp'}<Transport>1</Transport>{/if}
{if $account.1.sip_transport == 'tls'}<Transport>2</Transport>{/if}
{if $account.1.sip_transport == 'dns srv'}<DNS_SRV>1</DNS_SRV>{/if}
{if $account.1.sip_transport == 'dns srv'}<DNS_Mode>1</DNS_Mode>{/if}

<Enable_ChgPort>1</Enable_ChgPort>
<TLS_Version>0</TLS_Version>
<Use_SRV_Mixer>0</Use_SRV_Mixer>
<SRV_Mixer_Uri></SRV_Mixer_Uri>
<Long_Contact>0</Long_Contact>
<Auto_TCP>0</Auto_TCP>
<Uri_Escaped>1</Uri_Escaped>
<Click_to_Talk>0</Click_to_Talk>
<MWI_Num></MWI_Num>
<CallPark_Num></CallPark_Num>
<Retrieve_Num></Retrieve_Num>
<MSRPHelp_Num></MSRPHelp_Num>
<User_Is_Phone>1</User_Is_Phone>
<Auto_Answer>0</Auto_Answer>
<NoAnswerTime>5</NoAnswerTime>
<MissedCallLog>1</MissedCallLog>
<SvcCode_Mode>1</SvcCode_Mode>
<DNDOn_SvcCode>*78</DNDOn_SvcCode>
<DNDOff_SvcCode>*79</DNDOff_SvcCode>
<CFUOn_SvcCode>*72</CFUOn_SvcCode>
<CFUOff_SvcCode>*73</CFUOff_SvcCode>
<CFBOn_SvcCode>*72</CFBOn_SvcCode>
<CFBOff_SvcCode>*73</CFBOff_SvcCode>
<CFNOn_SvcCode>*72</CFNOn_SvcCode>
<CFNOff_SvcCode>*73</CFNOff_SvcCode>
<ANCOn_SvcCode></ANCOn_SvcCode>
<ANCOff_SvcCode></ANCOff_SvcCode>
<Send_ANOn_Code>*67</Send_ANOn_Code>
<Send_ANOffCode>*67</Send_ANOffCode>
<CW_On_Code></CW_On_Code>
<CW_Off_Code></CW_Off_Code>
<VoiceCodecMap>G722,G711U,G711A,G729,G726-32,G723</VoiceCodecMap>
<BLFList_Uri></BLFList_Uri>
<BLF_Server></BLF_Server>
<Respond_182>0</Respond_182>
<Enable_BLFList>0</Enable_BLFList>
<Caller_Id_Type>4</Caller_Id_Type>
<Syn_Clock_Time>0</Syn_Clock_Time>
<Use_VPN>1</Use_VPN>
<Enable_DND>0</Enable_DND>
<Update_Reg_Exp>1</Update_Reg_Exp>
<Inactive_Hold>0</Inactive_Hold>
<Enable_SCA>0</Enable_SCA>
<Sub_CallPark>0</Sub_CallPark>
<Hoteling_Event>0</Hoteling_Event>
<Sub_CC_Status>0</Sub_CC_Status>
<CSTA_Number></CSTA_Number>
<Feature_Sync>0</Feature_Sync>
<Req_With_Port>1</Req_With_Port>
<Enable_Mute>0</Enable_Mute>
<VQ_Name></VQ_Name>
<VQ_Server></VQ_Server>
<VQ_Server_Port>5060</VQ_Server_Port>
<VQ_HTTP_Server></VQ_HTTP_Server>
<Unreg_Reboot>0</Unreg_Reboot>
<Flash_Mode>0</Flash_Mode>
<Use_Tel_Call>0</Use_Tel_Call>
<Content_Type></Content_Type>
<Content_Body></Content_Body>
<Deal_180>1</Deal_180>
</SIP_Line_List_Entry>
<SIP_Line_List_Entry>
<ID>SIP2</ID>
<Phone_Number>{$account.2.user_id}</Phone_Number>
<Display_Name>{$account.2.display_name}</Display_Name>
<Sip_Name>{$fanvil_server_name}</Sip_Name>
<Register_Addr>{$account.2.server_address}</Register_Addr>
<Register_Port>{$account.2.sip_port}</Register_Port>
<Register_User>{$account.2.auth_id}</Register_User>
<Register_Pswd>{$account.2.password}</Register_Pswd>
<Register_TTL>{$account.2.register_expires}</Register_TTL>

<Enable_Reg>{if isset($account.2.password)}1{else}0{/if}</Enable_Reg>

<Proxy_Addr>{$account.2.outbound_proxy_primary}</Proxy_Addr>
<Proxy_Port>{$account.2.sip_port}</Proxy_Port>
<Proxy_User>{$account.2.auth_id}</Proxy_User>
<Proxy_Pswd>{$account.2.password}</Proxy_Pswd>
<BakProxy_Addr>{$account.2.outbound_proxy_secondary}</BakProxy_Addr>
<BakProxy_Port>{$account.2.sip_port}</BakProxy_Port>
<Enable_Failbac>1</Enable_Failbac>
<Signal_Crypto>0</Signal_Crypto>
<SigCrypto_Key></SigCrypto_Key>
<Media_Crypto>0</Media_Crypto>
<MedCrypto_Key></MedCrypto_Key>
<SRTP_Auth-Tag>0</SRTP_Auth-Tag>
<Local_Domain></Local_Domain>
<Always_FWD>0</Always_FWD>
<Busy_FWD>0</Busy_FWD>
<No_Answer_FWD>0</No_Answer_FWD>
<Always_FWD_Num></Always_FWD_Num>
<Busy_FWD_Num></Busy_FWD_Num>
<NoAnswer_FWD_N></NoAnswer_FWD_N>
<FWD_Timer>5</FWD_Timer>
<Ring_Type>0</Ring_Type>
<Hotline_Num></Hotline_Num>
<Enable_Hotline>0</Enable_Hotline>
<WarmLine_Time>0</WarmLine_Time>
<Pickup_Num></Pickup_Num>
<Join_Num></Join_Num>
<NAT_UDPUpdate>2</NAT_UDPUpdate>
<UDPUpdate_TTL>30</UDPUpdate_TTL>
<Server_Type>0</Server_Type>
<User_Agent></User_Agent>
<PRACK>1</PRACK>
<Keep_AUTH>0</Keep_AUTH>
<Session_Timer>0</Session_Timer>
<S.Timer_Expire>0</S.Timer_Expire>
<Enable_GRUU>0</Enable_GRUU>
<DTMF_Mode>3</DTMF_Mode>
<DTMF_Info_Mode>0</DTMF_Info_Mode>
<NAT_Type>0</NAT_Type>
<Enable_Rport>1</Enable_Rport>
<Subscribe>0</Subscribe>
<Sub_Expire>3600</Sub_Expire>
<Single_Codec>0</Single_Codec>
<CLIR>0</CLIR>
<Strict_Proxy>0</Strict_Proxy>
<Direct_Contact>0</Direct_Contact>
<History_Info>0</History_Info>

<XFER_Expire>0</XFER_Expire>
<Ban_Anonymous>0</Ban_Anonymous>
<Dial_Off_Line>0</Dial_Off_Line>
<Quota_Name>0</Quota_Name>
<Presence_Mode>0</Presence_Mode>
<RFC_Ver>1</RFC_Ver>
<Signal_Port>5060</Signal_Port>

{if $account.2.sip_transport == 'udp'}<Transport>0</Transport>{/if}
{if $account.2.sip_transport == 'tcp'}<Transport>1</Transport>{/if}
{if $account.2.sip_transport == 'tls'}<Transport>2</Transport>{/if}
{if $account.2.sip_transport == 'dns srv'}<DNS_SRV>1</DNS_SRV>{/if}
{if $account.2.sip_transport == 'dns srv'}<DNS_Mode>1</DNS_Mode>{/if}

<Enable_ChgPort>1</Enable_ChgPort>
<TLS_Version>0</TLS_Version>
<Use_SRV_Mixer>0</Use_SRV_Mixer>
<SRV_Mixer_Uri></SRV_Mixer_Uri>
<Long_Contact>0</Long_Contact>
<Auto_TCP>0</Auto_TCP>
<Uri_Escaped>1</Uri_Escaped>
<Click_to_Talk>0</Click_to_Talk>
<MWI_Num></MWI_Num>
<CallPark_Num></CallPark_Num>
<Retrieve_Num></Retrieve_Num>
<MSRPHelp_Num></MSRPHelp_Num>
<User_Is_Phone>1</User_Is_Phone>
<Auto_Answer>0</Auto_Answer>
<NoAnswerTime>5</NoAnswerTime>
<MissedCallLog>1</MissedCallLog>
<SvcCode_Mode>1</SvcCode_Mode>
<DNDOn_SvcCode>*78</DNDOn_SvcCode>
<DNDOff_SvcCode>*79</DNDOff_SvcCode>
<CFUOn_SvcCode>*72</CFUOn_SvcCode>
<CFUOff_SvcCode>*73</CFUOff_SvcCode>
<CFBOn_SvcCode>*72</CFBOn_SvcCode>
<CFBOff_SvcCode>*73</CFBOff_SvcCode>
<CFNOn_SvcCode>*72</CFNOn_SvcCode>
<CFNOff_SvcCode>*73</CFNOff_SvcCode>
<ANCOn_SvcCode></ANCOn_SvcCode>
<ANCOff_SvcCode></ANCOff_SvcCode>
<Send_ANOn_Code>*67</Send_ANOn_Code>
<Send_ANOffCode>*67</Send_ANOffCode>
<CW_On_Code></CW_On_Code>
<CW_Off_Code></CW_Off_Code>
<VoiceCodecMap>G722,G711U,G711A,G729,G726-32,G723</VoiceCodecMap>
<BLFList_Uri></BLFList_Uri>
<BLF_Server></BLF_Server>
<Respond_182>0</Respond_182>
<Enable_BLFList>0</Enable_BLFList>
<Caller_Id_Type>4</Caller_Id_Type>
<Syn_Clock_Time>0</Syn_Clock_Time>
<Use_VPN>1</Use_VPN>
<Enable_DND>0</Enable_DND>
<Update_Reg_Exp>1</Update_Reg_Exp>
<Inactive_Hold>0</Inactive_Hold>
<Enable_SCA>0</Enable_SCA>
<Sub_CallPark>0</Sub_CallPark>
<Hoteling_Event>0</Hoteling_Event>
<Sub_CC_Status>0</Sub_CC_Status>
<CSTA_Number></CSTA_Number>
<Feature_Sync>0</Feature_Sync>
<Req_With_Port>1</Req_With_Port>
<Enable_Mute>0</Enable_Mute>
<VQ_Name></VQ_Name>
<VQ_Server></VQ_Server>
<VQ_Server_Port>5060</VQ_Server_Port>
<VQ_HTTP_Server></VQ_HTTP_Server>
<Unreg_Reboot>0</Unreg_Reboot>
<Flash_Mode>0</Flash_Mode>
<Use_Tel_Call>0</Use_Tel_Call>
<Content_Type></Content_Type>
<Content_Body></Content_Body>
<Deal_180>1</Deal_180>
</SIP_Line_List_Entry>
<SIP_Line_List_Entry>
<ID>SIP3</ID>
<Phone_Number>{$account.3.user_id}</Phone_Number>
<Display_Name>{$account.3.display_name}</Display_Name>
<Sip_Name>{$fanvil_server_name}</Sip_Name>
<Register_Addr>{$account.3.server_address}</Register_Addr>
<Register_Port>{$account.3.sip_port}</Register_Port>
<Register_User>{$account.3.auth_id}</Register_User>
<Register_Pswd>{$account.3.password}</Register_Pswd>
<Register_TTL>{$account.3.register_expires}</Register_TTL>

<Enable_Reg>{if isset($account.3.password)}1{else}0{/if}</Enable_Reg>

<Proxy_Addr>{$account.3.outbound_proxy_primary}</Proxy_Addr>
<Proxy_Port>{$account.3.sip_port}</Proxy_Port>
<Proxy_User>{$account.3.auth_id}</Proxy_User>
<Proxy_Pswd>{$account.3.password}</Proxy_Pswd>
<BakProxy_Addr>{$account.3.outbound_proxy_secondary}</BakProxy_Addr>
<BakProxy_Port>{$account.3.sip_port}</BakProxy_Port>
<Enable_Failbac>1</Enable_Failbac>
<Signal_Crypto>0</Signal_Crypto>
<SigCrypto_Key></SigCrypto_Key>
<Media_Crypto>0</Media_Crypto>
<MedCrypto_Key></MedCrypto_Key>
<SRTP_Auth-Tag>0</SRTP_Auth-Tag>
<Local_Domain></Local_Domain>
<Always_FWD>0</Always_FWD>
<Busy_FWD>0</Busy_FWD>
<No_Answer_FWD>0</No_Answer_FWD>
<Always_FWD_Num></Always_FWD_Num>
<Busy_FWD_Num></Busy_FWD_Num>
<NoAnswer_FWD_N></NoAnswer_FWD_N>
<FWD_Timer>5</FWD_Timer>
<Ring_Type>0</Ring_Type>
<Hotline_Num></Hotline_Num>
<Enable_Hotline>0</Enable_Hotline>
<WarmLine_Time>0</WarmLine_Time>
<Pickup_Num></Pickup_Num>
<Join_Num></Join_Num>
<NAT_UDPUpdate>2</NAT_UDPUpdate>
<UDPUpdate_TTL>30</UDPUpdate_TTL>
<Server_Type>0</Server_Type>
<User_Agent></User_Agent>
<PRACK>1</PRACK>
<Keep_AUTH>0</Keep_AUTH>
<Session_Timer>0</Session_Timer>
<S.Timer_Expire>0</S.Timer_Expire>
<Enable_GRUU>0</Enable_GRUU>
<DTMF_Mode>3</DTMF_Mode>
<DTMF_Info_Mode>0</DTMF_Info_Mode>
<NAT_Type>0</NAT_Type>
<Enable_Rport>1</Enable_Rport>
<Subscribe>0</Subscribe>
<Sub_Expire>3600</Sub_Expire>
<Single_Codec>0</Single_Codec>
<CLIR>0</CLIR>
<Strict_Proxy>0</Strict_Proxy>
<Direct_Contact>0</Direct_Contact>
<History_Info>0</History_Info>

<XFER_Expire>0</XFER_Expire>
<Ban_Anonymous>0</Ban_Anonymous>
<Dial_Off_Line>0</Dial_Off_Line>
<Quota_Name>0</Quota_Name>
<Presence_Mode>0</Presence_Mode>
<RFC_Ver>1</RFC_Ver>
<Signal_Port>5060</Signal_Port>

{if $account.3.sip_transport == 'udp'}<Transport>0</Transport>{/if}
{if $account.3.sip_transport == 'tcp'}<Transport>1</Transport>{/if}
{if $account.3.sip_transport == 'tls'}<Transport>2</Transport>{/if}
{if $account.3.sip_transport == 'dns srv'}<DNS_SRV>1</DNS_SRV>{/if}
{if $account.3.sip_transport == 'dns srv'}<DNS_Mode>1</DNS_Mode>{/if}

<Enable_ChgPort>1</Enable_ChgPort>
<TLS_Version>0</TLS_Version>
<Use_SRV_Mixer>0</Use_SRV_Mixer>
<SRV_Mixer_Uri></SRV_Mixer_Uri>
<Long_Contact>0</Long_Contact>
<Auto_TCP>0</Auto_TCP>
<Uri_Escaped>1</Uri_Escaped>
<Click_to_Talk>0</Click_to_Talk>
<MWI_Num></MWI_Num>
<CallPark_Num></CallPark_Num>
<Retrieve_Num></Retrieve_Num>
<MSRPHelp_Num></MSRPHelp_Num>
<User_Is_Phone>1</User_Is_Phone>
<Auto_Answer>0</Auto_Answer>
<NoAnswerTime>5</NoAnswerTime>
<MissedCallLog>1</MissedCallLog>
<SvcCode_Mode>1</SvcCode_Mode>
<DNDOn_SvcCode>*78</DNDOn_SvcCode>
<DNDOff_SvcCode>*79</DNDOff_SvcCode>
<CFUOn_SvcCode>*72</CFUOn_SvcCode>
<CFUOff_SvcCode>*73</CFUOff_SvcCode>
<CFBOn_SvcCode>*72</CFBOn_SvcCode>
<CFBOff_SvcCode>*73</CFBOff_SvcCode>
<CFNOn_SvcCode>*72</CFNOn_SvcCode>
<CFNOff_SvcCode>*73</CFNOff_SvcCode>
<ANCOn_SvcCode></ANCOn_SvcCode>
<ANCOff_SvcCode></ANCOff_SvcCode>
<Send_ANOn_Code>*67</Send_ANOn_Code>
<Send_ANOffCode>*67</Send_ANOffCode>
<CW_On_Code></CW_On_Code>
<CW_Off_Code></CW_Off_Code>
<VoiceCodecMap>G722,G711U,G711A,G729,G726-32,G723</VoiceCodecMap>
<BLFList_Uri></BLFList_Uri>
<BLF_Server></BLF_Server>
<Respond_182>0</Respond_182>
<Enable_BLFList>0</Enable_BLFList>
<Caller_Id_Type>4</Caller_Id_Type>
<Syn_Clock_Time>0</Syn_Clock_Time>
<Use_VPN>1</Use_VPN>
<Enable_DND>0</Enable_DND>
<Update_Reg_Exp>1</Update_Reg_Exp>
<Inactive_Hold>0</Inactive_Hold>
<Enable_SCA>0</Enable_SCA>
<Sub_CallPark>0</Sub_CallPark>
<Hoteling_Event>0</Hoteling_Event>
<Sub_CC_Status>0</Sub_CC_Status>
<CSTA_Number></CSTA_Number>
<Feature_Sync>0</Feature_Sync>
<Req_With_Port>1</Req_With_Port>
<Enable_Mute>0</Enable_Mute>
<VQ_Name></VQ_Name>
<VQ_Server></VQ_Server>
<VQ_Server_Port>5060</VQ_Server_Port>
<VQ_HTTP_Server></VQ_HTTP_Server>
<Unreg_Reboot>0</Unreg_Reboot>
<Flash_Mode>0</Flash_Mode>
<Use_Tel_Call>0</Use_Tel_Call>
<Content_Type></Content_Type>
<Content_Body></Content_Body>
<Deal_180>1</Deal_180>
</SIP_Line_List_Entry>
<SIP_Line_List_Entry>
<ID>SIP4</ID>
<Phone_Number>{$account.4.user_id}</Phone_Number>
<Display_Name>{$account.4.display_name}</Display_Name>
<Sip_Name>{$fanvil_server_name}</Sip_Name>
<Register_Addr>{$account.4.server_address}</Register_Addr>
<Register_Port>{$account.4.sip_port}</Register_Port>
<Register_User>{$account.4.auth_id}</Register_User>
<Register_Pswd>{$account.4.password}</Register_Pswd>
<Register_TTL>{$account.4.register_expires}</Register_TTL>

<Enable_Reg>{if isset($account.4.password)}1{else}0{/if}</Enable_Reg>

<Proxy_Addr>{$account.4.outbound_proxy_primary}</Proxy_Addr>
<Proxy_Port>{$account.4.sip_port}</Proxy_Port>
<Proxy_User>{$account.4.auth_id}</Proxy_User>
<Proxy_Pswd>{$account.4.password}</Proxy_Pswd>
<BakProxy_Addr>{$account.4.outbound_proxy_secondary}</BakProxy_Addr>
<BakProxy_Port>{$account.4.sip_port}</BakProxy_Port>
<Enable_Failbac>1</Enable_Failbac>
<Signal_Crypto>0</Signal_Crypto>
<SigCrypto_Key></SigCrypto_Key>
<Media_Crypto>0</Media_Crypto>
<MedCrypto_Key></MedCrypto_Key>
<SRTP_Auth-Tag>0</SRTP_Auth-Tag>
<Local_Domain></Local_Domain>
<Always_FWD>0</Always_FWD>
<Busy_FWD>0</Busy_FWD>
<No_Answer_FWD>0</No_Answer_FWD>
<Always_FWD_Num></Always_FWD_Num>
<Busy_FWD_Num></Busy_FWD_Num>
<NoAnswer_FWD_N></NoAnswer_FWD_N>
<FWD_Timer>5</FWD_Timer>
<Ring_Type>0</Ring_Type>
<Hotline_Num></Hotline_Num>
<Enable_Hotline>0</Enable_Hotline>
<WarmLine_Time>0</WarmLine_Time>
<Pickup_Num></Pickup_Num>
<Join_Num></Join_Num>
<NAT_UDPUpdate>2</NAT_UDPUpdate>
<UDPUpdate_TTL>30</UDPUpdate_TTL>
<Server_Type>0</Server_Type>
<User_Agent></User_Agent>
<PRACK>1</PRACK>
<Keep_AUTH>0</Keep_AUTH>
<Session_Timer>0</Session_Timer>
<S.Timer_Expire>0</S.Timer_Expire>
<Enable_GRUU>0</Enable_GRUU>
<DTMF_Mode>3</DTMF_Mode>
<DTMF_Info_Mode>0</DTMF_Info_Mode>
<NAT_Type>0</NAT_Type>
<Enable_Rport>1</Enable_Rport>
<Subscribe>0</Subscribe>
<Sub_Expire>3600</Sub_Expire>
<Single_Codec>0</Single_Codec>
<CLIR>0</CLIR>
<Strict_Proxy>0</Strict_Proxy>
<Direct_Contact>0</Direct_Contact>
<History_Info>0</History_Info>

<XFER_Expire>0</XFER_Expire>
<Ban_Anonymous>0</Ban_Anonymous>
<Dial_Off_Line>0</Dial_Off_Line>
<Quota_Name>0</Quota_Name>
<Presence_Mode>0</Presence_Mode>
<RFC_Ver>1</RFC_Ver>
<Signal_Port>5060</Signal_Port>

{if $account.4.sip_transport == 'udp'}<Transport>0</Transport>{/if}
{if $account.4.sip_transport == 'tcp'}<Transport>1</Transport>{/if}
{if $account.4.sip_transport == 'tls'}<Transport>2</Transport>{/if}
{if $account.4.sip_transport == 'dns srv'}<DNS_SRV>1</DNS_SRV>{/if}
{if $account.4.sip_transport == 'dns srv'}<DNS_Mode>1</DNS_Mode>{/if}

<Enable_ChgPort>1</Enable_ChgPort>
<TLS_Version>0</TLS_Version>
<Use_SRV_Mixer>0</Use_SRV_Mixer>
<SRV_Mixer_Uri></SRV_Mixer_Uri>
<Long_Contact>0</Long_Contact>
<Auto_TCP>0</Auto_TCP>
<Uri_Escaped>1</Uri_Escaped>
<Click_to_Talk>0</Click_to_Talk>
<MWI_Num></MWI_Num>
<CallPark_Num></CallPark_Num>
<Retrieve_Num></Retrieve_Num>
<MSRPHelp_Num></MSRPHelp_Num>
<User_Is_Phone>1</User_Is_Phone>
<Auto_Answer>0</Auto_Answer>
<NoAnswerTime>5</NoAnswerTime>
<MissedCallLog>1</MissedCallLog>
<SvcCode_Mode>1</SvcCode_Mode>
<DNDOn_SvcCode>*78</DNDOn_SvcCode>
<DNDOff_SvcCode>*79</DNDOff_SvcCode>
<CFUOn_SvcCode>*72</CFUOn_SvcCode>
<CFUOff_SvcCode>*73</CFUOff_SvcCode>
<CFBOn_SvcCode>*72</CFBOn_SvcCode>
<CFBOff_SvcCode>*73</CFBOff_SvcCode>
<CFNOn_SvcCode>*72</CFNOn_SvcCode>
<CFNOff_SvcCode>*73</CFNOff_SvcCode>
<ANCOn_SvcCode></ANCOn_SvcCode>
<ANCOff_SvcCode></ANCOff_SvcCode>
<Send_ANOn_Code>*67</Send_ANOn_Code>
<Send_ANOffCode>*67</Send_ANOffCode>
<CW_On_Code></CW_On_Code>
<CW_Off_Code></CW_Off_Code>
<VoiceCodecMap>G722,G711U,G711A,G729,G726-32,G723</VoiceCodecMap>
<BLFList_Uri></BLFList_Uri>
<BLF_Server></BLF_Server>
<Respond_182>0</Respond_182>
<Enable_BLFList>0</Enable_BLFList>
<Caller_Id_Type>4</Caller_Id_Type>
<Syn_Clock_Time>0</Syn_Clock_Time>
<Use_VPN>1</Use_VPN>
<Enable_DND>0</Enable_DND>
<Update_Reg_Exp>1</Update_Reg_Exp>
<Inactive_Hold>0</Inactive_Hold>
<Enable_SCA>0</Enable_SCA>
<Sub_CallPark>0</Sub_CallPark>
<Hoteling_Event>0</Hoteling_Event>
<Sub_CC_Status>0</Sub_CC_Status>
<CSTA_Number></CSTA_Number>
<Feature_Sync>0</Feature_Sync>
<Req_With_Port>1</Req_With_Port>
<Enable_Mute>0</Enable_Mute>
<VQ_Name></VQ_Name>
<VQ_Server></VQ_Server>
<VQ_Server_Port>5060</VQ_Server_Port>
<VQ_HTTP_Server></VQ_HTTP_Server>
<Unreg_Reboot>0</Unreg_Reboot>
<Flash_Mode>0</Flash_Mode>
<Use_Tel_Call>0</Use_Tel_Call>
<Content_Type></Content_Type>
<Content_Body></Content_Body>
<Deal_180>1</Deal_180>
</SIP_Line_List_Entry>
</SIP_Line_List>
</SIP_CONFIG_MODULE>
<MCAST_CFG_MODULE>
<Priority>0</Priority>
<Enbale_Priority>0</Enbale_Priority>
<Mcast_Addr>
<Mcast_Addr_Entry>
<ID>MCAST1</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST2</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST3</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST4</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST5</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST6</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST7</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST8</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST9</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
<Mcast_Addr_Entry>
<ID>MCAST10</ID>
<Port>0</Port>
<Name></Name>
<Host></Host>
</Mcast_Addr_Entry>
</Mcast_Addr>
</MCAST_CFG_MODULE>
<PPPoE_CONFIG_MODULE>
<PPPoE_User>user123</PPPoE_User>
<PPPoE_Password>password</PPPoE_Password>
<PPPoE_Svc_Name>ANY</PPPoE_Svc_Name>
<PPPoE_IP_Address></PPPoE_IP_Address>
</PPPoE_CONFIG_MODULE>
<MMI_CONFIG_MODULE>
<Web_Port>80</Web_Port>
<Web_Server_Type>0</Web_Server_Type>
<Https_Web_Port>443</Https_Web_Port>
<Enable_MMI_Filter>0</Enable_MMI_Filter>
<Web_Authentication>0</Web_Authentication>
<Default_WEB_User>0</Default_WEB_User>
<MMI_Account>
<MMI_Account_Entry>
<ID>Account1</ID>
<Name>admin</Name>
<Password>admin</Password>
<Level>10</Level>
</MMI_Account_Entry>
<MMI_Account_Entry>
<ID>Account2</ID>
<Name>guest</Name>
<Password>guest</Password>
<Level>5</Level>
</MMI_Account_Entry>
</MMI_Account>
</MMI_CONFIG_MODULE>
<QOS_CONFIG_MODULE>
<Enable_VLAN>0</Enable_VLAN>
<Enable_diffServ>1</Enable_diffServ>
<LLDP_Transmit>1</LLDP_Transmit>
<LLDP_Refresh_Time>60</LLDP_Refresh_Time>
<LLDP_Learn_Policy>1</LLDP_Learn_Policy>
<CDP_Enabled>0</CDP_Enabled>
<CDP_Refresh_Time>60</CDP_Refresh_Time>
<Singalling_DSCP>-1</Singalling_DSCP>
<Voice_DSCP>46</Voice_DSCP>
<VLAN_ID>256</VLAN_ID>
<Signalling_Priority>0</Signalling_Priority>
<Voice_Priority>0</Voice_Priority>
<VLAN_Recv_Check>1</VLAN_Recv_Check>
<Enable_PVID>1</Enable_PVID>
<PVID_Value>254</PVID_Value>
<DHCP_Option_Vlan>0</DHCP_Option_Vlan>
</QOS_CONFIG_MODULE>
<DEBUG_CONFIG_MODULE>
<MGR_Trace_Level>0</MGR_Trace_Level>
<SIP_Trace_Level>0</SIP_Trace_Level>
<Trace_File_Info>0</Trace_File_Info>
<Enable_Watch_Dog>1</Enable_Watch_Dog>
<Enable_Memory_Info>0</Enable_Memory_Info>
</DEBUG_CONFIG_MODULE>
<AAA_CONFIG_MODULE>
<Enable_Syslog>0</Enable_Syslog>
<Syslog_address>0.0.0.0</Syslog_address>
<Syslog_port>514</Syslog_port>
</AAA_CONFIG_MODULE>
<ACCESS_CONFIG_MODULE>
<Enable_In_Access>0</Enable_In_Access>
<Enable_Out_Access>0</Enable_Out_Access>
</ACCESS_CONFIG_MODULE>
<PHONE_CONFIG_MODULE>
<Menu_Password>123</Menu_Password>
<KeyLock_Password>123</KeyLock_Password>
<Fast_Keylock_Code></Fast_Keylock_Code>
<Enable_KeyLock>0</Enable_KeyLock>
<KeyLock_Status>0</KeyLock_Status>
<Emergency_Call>110</Emergency_Call>
<LCD_Title>{$fanvil_greeting}</LCD_Title>
<LCD_Constrast>5</LCD_Constrast>
<LCD_Luminance>1</LCD_Luminance>
<Backlight_Off_Time>30</Backlight_Off_Time>
<ScrnSaver_Wait_Time>0</ScrnSaver_Wait_Time>
<KeyLock_Timeout>0</KeyLock_Timeout>
<Enable_Power_Led>0</Enable_Power_Led>
<SMS_MWI_Power_Led>0</SMS_MWI_Power_Led>
<Miss_Call_Power_Led>0</Miss_Call_Power_Led>
<Talk_Dial_Power_Led>0</Talk_Dial_Power_Led>
<Ringing_Power_Led>0</Ringing_Power_Led>
<Mute_Call_Power_Led>0</Mute_Call_Power_Led>
<Hold_Power_Led>0</Hold_Power_Led>

{if isset({$fanvil_time_display}) }
<Time_Display_Style>{$fanvil_time_display}</Time_Display_Style>
{else}
<Time_Display_Style>0</Time_Display_Style>
{/if}

<Phone_Model>X4G</Phone_Model>
<FuncKey_Page_Num>5</FuncKey_Page_Num>
<Blf_Default_type>0</Blf_Default_type>
<Alarm__Clock>0,,1</Alarm__Clock>
<Disable_CHN_IME>0</Disable_CHN_IME>
<Disable_Dial_Search>0</Disable_Dial_Search>
<Redial_Enter_CLog>1</Redial_Enter_CLog>
<Date_Display_Style>{$fanvil_date_display}</Date_Display_Style>
<Date_Separator>0</Date_Separator>
<Enable_Pre-Dial>1</Enable_Pre-Dial>
<Default_Line>0</Default_Line>
<Enable_Default_Line>0</Enable_Default_Line>
<Enable_Auto_SelLine>1</Enable_Auto_SelLine>
<Agent_Username></Agent_Username>
<Agent_Password></Agent_Password>
<Agent_Number></Agent_Number>
<Agent_Sipline>0</Agent_Sipline>
<Agent_Status>0</Agent_Status>
<Agent_Status_Reason></Agent_Status_Reason>
<BW_Calllogs_Conf->
<BW_Calllogs_Conf-_Entry>
<ID>BWCLog1</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Calllogs_Conf-_Entry>
<BW_Calllogs_Conf-_Entry>
<ID>BWCLog2</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Calllogs_Conf-_Entry>
<BW_Calllogs_Conf-_Entry>
<ID>BWCLog3</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Calllogs_Conf-_Entry>
</BW_Calllogs_Conf->
<BW_Directory_Conf>
<BW_Directory_Conf_Entry>
<ID>BWDir1</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
<BW_Directory_Conf_Entry>
<ID>BWDir2</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
<BW_Directory_Conf_Entry>
<ID>BWDir3</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
<BW_Directory_Conf_Entry>
<ID>BWDir4</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
<BW_Directory_Conf_Entry>
<ID>BWDir5</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
<BW_Directory_Conf_Entry>
<ID>BWDir6</ID>
<Title></Title>
<URL></URL>
<Username></Username>
<Password></Password>
<SipLine>0</SipLine>
</BW_Directory_Conf_Entry>
</BW_Directory_Conf>
<LDAP_Config>
<LDAP_Config_Entry>
<ID>LDAP1</ID>
<Title></Title>
<Server></Server>
<port>389</port>
<Authenticate>0</Authenticate>
<Version>3</Version>
<Calling_Line>0</Calling_Line>
<Enable_Search>0</Enable_Search>
<Base></Base>
<Username></Username>
<Password></Password>
<Tel_Attr>telephoneNumber</Tel_Attr>
<Mobile_Attr>mobile</Mobile_Attr>
<Other_Attr>home</Other_Attr>
<Displayname>cn</Displayname>
<Filter_Name></Filter_Name>
<Filter_number></Filter_number>
</LDAP_Config_Entry>
<LDAP_Config_Entry>
<ID>LDAP2</ID>
<Title></Title>
<Server></Server>
<port>389</port>
<Authenticate>0</Authenticate>
<Version>3</Version>
<Calling_Line>0</Calling_Line>
<Enable_Search>0</Enable_Search>
<Base></Base>
<Username></Username>
<Password></Password>
<Tel_Attr>telephoneNumber</Tel_Attr>
<Mobile_Attr>mobile</Mobile_Attr>
<Other_Attr>home</Other_Attr>
<Displayname>cn</Displayname>
<Filter_Name></Filter_Name>
<Filter_number></Filter_number>
</LDAP_Config_Entry>
<LDAP_Config_Entry>
<ID>LDAP3</ID>
<Title></Title>
<Server></Server>
<port>389</port>
<Authenticate>0</Authenticate>
<Version>3</Version>
<Calling_Line>0</Calling_Line>
<Enable_Search>0</Enable_Search>
<Base></Base>
<Username></Username>
<Password></Password>
<Tel_Attr>telephoneNumber</Tel_Attr>
<Mobile_Attr>mobile</Mobile_Attr>
<Other_Attr>home</Other_Attr>
<Displayname>cn</Displayname>
<Filter_Name></Filter_Name>
<Filter_number></Filter_number>
</LDAP_Config_Entry>
<LDAP_Config_Entry>
<ID>LDAP4</ID>
<Title></Title>
<Server></Server>
<port>389</port>
<Authenticate>0</Authenticate>
<Version>3</Version>
<Calling_Line>0</Calling_Line>
<Enable_Search>0</Enable_Search>
<Base></Base>
<Username></Username>
<Password></Password>
<Tel_Attr>telephoneNumber</Tel_Attr>
<Mobile_Attr>mobile</Mobile_Attr>
<Other_Attr>home</Other_Attr>
<Displayname>cn</Displayname>
<Filter_Name></Filter_Name>
<Filter_number></Filter_number>
</LDAP_Config_Entry>
</LDAP_Config>
<Xml_PhoneBook>
<Xml_PhoneBook_Entry>
<ID>XML-PBook1</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook2</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook3</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook4</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook5</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook6</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook7</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
<Xml_PhoneBook_Entry>
<ID>XML-PBook8</ID>
<Name></Name>
<Addr></Addr>
<Auth></Auth>
<Policy>0</Policy>
<Sipline>0</Sipline>
</Xml_PhoneBook_Entry>
</Xml_PhoneBook>
<Phonebook_Groups></Phonebook_Groups>



<Function_Key>
	
{foreach $keys["line"] as $row}
{if $row.device_key_id <= 30}	
	
<Function_Key_Entry>
<ID>Fkey{$row.device_key_id}</ID>
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</Function_Key_Entry>

{/if}
{/foreach}


	
{foreach $keys["memory"] as $row}
{if $row.device_key_id <= 30}

<Function_Key_Entry>
<ID>Fkey{$row.device_key_id}</ID>
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</Function_Key_Entry>

{/if}
{/foreach}

</Function_Key>


<Soft_Dss_Key>

{foreach $keys["programmable"] as $row}
{if $row.device_key_id <= 12}

<Soft_Dss_Key_Entry>
<ID>SoftFkey{$row.device_key_id}</ID>
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</Soft_Dss_Key_Entry>

{/if}
{/foreach}


{foreach $keys["expansion"] as $row}
{if $row.device_key_id <= 12}

<Soft_Dss_Key_Entry>
<ID>SoftFkey{$row.device_key_id}</ID>
<Type>{if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}</Type>
<Value>{if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}</Value>
<Title>{$row.device_key_label}</Title>
</Soft_Dss_Key_Entry>

{/if}
{/foreach}

</Soft_Dss_Key>




<Ui_font_Color>0xFFFFFF$0x444343</Ui_font_Color>
<Ui_Title_Color>0x000026$0x4f79a7</Ui_Title_Color>
<Ui_Softkey_Color>up:0x5e6f85$0x485972@ down:0x00$0xffc83b</Ui_Softkey_Color>
<Ui_List__Color>0x00$0xa9c1c9</Ui_List__Color>
<Ui_Balloon_Color>0x00$0x6c7b8d</Ui_Balloon_Color>
<Ui_Second_Color>odd:0xc9d9eb$0x9fc0e3@ even:0x356291$0x7296bb@ select:0x34373c$0xe2a917@ interval:0x4478ae@ LSKbgc:0x6b84aa</Ui_Second_Color>
<Ui_ScrnSaver_Color>0x00$0x808080</Ui_ScrnSaver_Color>
<Vqm_Display_Order></Vqm_Display_Order>
<DSS_Home_Page>0</DSS_Home_Page>
</PHONE_CONFIG_MODULE>
<SCREEN_KEY_CONFIG_MODULE>
<Desktop_Softkey>history;contact;dnd;menu;</Desktop_Softkey>
<Talking_Softkey>hold;xfer;conf;end;</Talking_Softkey>
<Ringing_Softkey>accept;none;cfwd;reject;</Ringing_Softkey>
<Alerting_Softkey>none;none;none;end;</Alerting_Softkey>
<XAlerting_Softkey>xfer;none;none;end;</XAlerting_Softkey>
<Conference_Softkey>hold;none;split;end;</Conference_Softkey>
<Waiting_Softkey>hold;xfer;conf;end;</Waiting_Softkey>
<Ending_Softkey>repeat;none;none;end;</Ending_Softkey>
<DialerPre_Softkey>delete;save;send;exit;</DialerPre_Softkey>
<DialerCall_Softkey>delete;history;send;exit;</DialerCall_Softkey>
<DialerXfer_Softkey>delete;xfer;send;exit;</DialerXfer_Softkey>
<DialerCfwd_Softkey>delete;none;cfwd;exit;</DialerCfwd_Softkey>
<Desktop_Click>history;status;paccout;naccout;menu;</Desktop_Click>
<Dailer__Click>pline;nline;none;none;none;</Dailer__Click>
<Call____Click>pcall;ncall;voldown;volup;none;</Call____Click>
<Desktop_Long_Press>status;none;none;sdial;reset;</Desktop_Long_Press>
<Softkey_Mode>1</Softkey_Mode>
<Softkey_Exit_Style>1</Softkey_Exit_Style>
</SCREEN_KEY_CONFIG_MODULE>
<SIP_Hotspot_MODULE>
<Enable_Hotspot>0</Enable_Hotspot>
<Mode>1</Mode>
<Listen_Type>0</Listen_Type>
<Listen_IP>224.0.2.0</Listen_IP>
<Listen_Port>16360</Listen_Port>
<Remote_Port>16360</Remote_Port>
<Own_Name>SIP Hotspot</Own_Name>
<Line_Conf_List>
<Line_Conf_List_Entry>
<ID>HS1</ID>
<Enable>1</Enable>
</Line_Conf_List_Entry>
<Line_Conf_List_Entry>
<ID>HS2</ID>
<Enable>1</Enable>
</Line_Conf_List_Entry>
<Line_Conf_List_Entry>
<ID>HS3</ID>
<Enable>1</Enable>
</Line_Conf_List_Entry>
<Line_Conf_List_Entry>
<ID>HS4</ID>
<Enable>1</Enable>
</Line_Conf_List_Entry>
</Line_Conf_List>
</SIP_Hotspot_MODULE>
<RECORD_CONFIG_MODULE>
<Enabled>0</Enabled>
<Voice_Codec>PCMA</Voice_Codec>
<Enable_Server_Rec>0</Enable_Server_Rec>
<Enable_PBX_Rec>0</Enable_PBX_Rec>
<Server_Addr></Server_Addr>
<Server_Port>0</Server_Port>
<Type>0</Type>
</RECORD_CONFIG_MODULE>
<AUTOUPDATE_CONFIG_MODULE>
<Download_Username>{$http_auth_username}</Download_Username>
<Download_Password>{$http_auth_password}</Download_Password>
<AP_Pswd_Encryption>0</AP_Pswd_Encryption>
<FDPS_Enable>1</FDPS_Enable>
<Config_File_Name></Config_File_Name>
<Config_File_Key></Config_File_Key>
<Common_Cfg_File_Key></Common_Cfg_File_Key>
<Download_Server_IP>https://{$domain_name}/app/provision</Download_Server_IP>
<Download_Protocol>5</Download_Protocol>
<Download_Mode>1</Download_Mode>
<Download_Interval>1</Download_Interval>
<DHCP_Option>66</DHCP_Option>
<Save_DHCP_Opion>0</Save_DHCP_Opion>
<DHCP_Option_120>0</DHCP_Option_120>
<PNP_Enable>1</PNP_Enable>
<PNP_IP>224.0.1.75</PNP_IP>
<PNP_Port>5060</PNP_Port>
<PNP_Transport>0</PNP_Transport>
<PNP_Interval>1</PNP_Interval>
<Save_Provision_Info>0</Save_Provision_Info>
<Download_CommonConf>1</Download_CommonConf>
<Download_DeviceConf>1</Download_DeviceConf>
<Check_FailTimes>5</Check_FailTimes>
<update_PB_Interval>5</update_PB_Interval>
<Clr_PB_B4_Import>0</Clr_PB_B4_Import>
<Trust_Certification>0</Trust_Certification>
<Enable_Auto_Upgrade>0</Enable_Auto_Upgrade>
<Upgrade_Server_1></Upgrade_Server_1>
<Upgrade_Server_2></Upgrade_Server_2>
<Auto_Upgrade_intval>24</Auto_Upgrade_intval>
</AUTOUPDATE_CONFIG_MODULE>
<VPN_CONFIG_MODULE>
<VPN_mode>2</VPN_mode>
<L2TP_LNS_IP></L2TP_LNS_IP>
<L2TP_User_Name></L2TP_User_Name>
<L2TP_Password></L2TP_Password>
<L2TP_Negotiate_DNS>1</L2TP_Negotiate_DNS>
<Enable_VPN_Tunnel>0</Enable_VPN_Tunnel>
<VPN_Server_IP></VPN_Server_IP>
<VPN_Server_Port>80</VPN_Server_Port>
<Server_Group_ID>VPN</Server_Group_ID>
<Server_Area_Code>12345</Server_Area_Code>
</VPN_CONFIG_MODULE>
<DOT1X_CONFIG_MODULE>
<Xsup_User>admin</Xsup_User>
<Xsup_Password>admin</Xsup_Password>
<Xsup_Enable>0</Xsup_Enable>
<Xsup_AuthMac>01:80:C2:00:00:03</Xsup_AuthMac>
<Xsup_UseDefaultMac>1</Xsup_UseDefaultMac>
</DOT1X_CONFIG_MODULE>
<TR069_CONFIG_MODULE>
<ACS_Server_Type>1</ACS_Server_Type>
<ACS_URL></ACS_URL>
<ACS_UserName>admin</ACS_UserName>
<ACS_Password>admin</ACS_Password>
<CPE_UserName>dps</CPE_UserName>
<CPE_Password>dps</CPE_Password>
<CPE_SerialNumber></CPE_SerialNumber>
<TR069_Auto_Login>0</TR069_Auto_Login>
<TR069_Tone>1</TR069_Tone>
<Enable_TR069>0</Enable_TR069>
<Periodix_Interval>3600</Periodix_Interval>
<Area_Code>020</Area_Code>
<TLS_Version>0</TLS_Version>
</TR069_CONFIG_MODULE>
</VOIP_CONFIG_FILE>
