<Parameter Model="5330">
	<dhcpenable>1</dhcpenable>
	{if isset($mitel_tftp_config)}<tftp_config>{$mitel_tftp_config}</tftp_config>{else}<tftp_config>2</tftp_config>
	{/if}<pppoe_enable>0</pppoe_enable>
	<tftp_task_enable>1</tftp_task_enable>
	<tftp_upgrade>2</tftp_upgrade>
	<http_upgrade>0</http_upgrade>
	<outbound_state>0</outbound_state>
	<local_sip_port>5060</local_sip_port>
	<tos>0</tos>
	<e802_priority>-1</e802_priority>
	{if isset($mitel_vlan_id)}<vlan_id>{$mitel_vlan_id}</vlan_id>{else}<vlan_id>-1</vlan_id>
	{/if}<host_name>{$account.1.user_id}</host_name>
	<domain>{$domain_name}</domain>
	<addr_type>0</addr_type>
	<hot_line>0</hot_line>
	<hot_address>operator@example.com</hot_address>
	<hot_addr_type>0</hot_addr_type>
	<tls_private_url></tls_private_url>
	<tls_certificate_url></tls_certificate_url>
	<tls_ca_cert_url></tls_ca_cert_url>
	<tls_root_cert_url></tls_root_cert_url>
	<tls_certificate></tls_certificate>
	<tls_ca_cert></tls_ca_cert>
	<tls_root_cert></tls_root_cert>
	<poundkeydial>1</poundkeydial>
	<dialtonekey>12</dialtonekey>
	<htmlpuseraccess>1</htmlpuseraccess>
	<remote_reboot>1</remote_reboot>
	<checkpeercert>0</checkpeercert>
	<sipkeepalive>1</sipkeepalive>
	<rss_feed></rss_feed>
	<host_ip>{$domain_name}</host_ip>
	<video_ip>{$domain_name}</video_ip>
	<sntp>0.us.pool.ntp.org</sntp>
	<time_zone>{$mitel_time_zone}</time_zone>
	<auth_method>2</auth_method>
	<register_expire>120</register_expire>
	<emerg_number></emerg_number>
	<emerg_ip>0.0.0.0</emerg_ip>
	<emerg_port>5060</emerg_port>
	<audio_codec>5</audio_codec>
	<audio_pkt_size>20</audio_pkt_size>
	<video_codec>0</video_codec>
	<dtmf_type>0</dtmf_type>
	<dtmf_payload>101</dtmf_payload>
	<advisorymsg>0</advisorymsg>
	<reasons>0</reasons>
	<other_reason></other_reason>
	<do_not_disturb>0</do_not_disturb>
	<noans_fwd_mode>0</noans_fwd_mode>
	<try_ring_nums>10</try_ring_nums>
	<noans_fwd_addr></noans_fwd_addr>
	<beep_on_hold>1</beep_on_hold>
	<on_hold_alert>60</on_hold_alert>
	<system_mode>0</system_mode>
	<pppoe_login></pppoe_login>
	<pppoe_passwd>******</pppoe_passwd>
	<callCountIn>0</callCountIn>
	<callCountOut>0</callCountOut>
	<discovery>0</discovery>
	<pbIndex>0</pbIndex>
	<adminId>admin</adminId>
	<admin_dispname>Administrator</admin_dispname>
	<admin_passwd>{$admin_password}</admin_passwd>
	<busy_fwd_mode>0</busy_fwd_mode>
	<busy_fwd_addr></busy_fwd_addr>
	<always_fwd_mode>0</always_fwd_mode>
	<always_fwd_addr></always_fwd_addr>
	<pcport>0</pcport>
	<lanport>0</lanport>
	<lcd>4</lcd>
	<rdkw1></rdkw1>
	<rdringtype1>0</rdringtype1>
	<rdvmail1>0</rdvmail1>
	<rdblock1>0</rdblock1>
	<rdkw2></rdkw2>
	<rdringtype2>0</rdringtype2>
	<rdvmail2>0</rdvmail2>
	<rdblock2>0</rdblock2>
	<rdkw3></rdkw3>
	<rdringtype3>0</rdringtype3>
	<rdvmail3>0</rdvmail3>
	<rdblock3>0</rdblock3>
	<rdkw4></rdkw4>
	<rdringtype4>0</rdringtype4>
	<rdvmail4>0</rdvmail4>
	<rdblock4>0</rdblock4>
	<rdkw5></rdkw5>
	<rdringtype5>0</rdringtype5>
	<rdvmail5>0</rdvmail5>
	<rdblock5>0</rdblock5>
	<dtringtype1>0</dtringtype1>
	<dtringtype2>0</dtringtype2>
	<dtringtype3>0</dtringtype3>
	<dtringtype4>0</dtringtype4>
	<dtringtype5>0</dtringtype5>
	<dtringtype6>0</dtringtype6>
	<dtringtype7>0</dtringtype7>
	<dtringtype8>0</dtringtype8>
	<dtringtype9>0</dtringtype9>
	<dtringtype10>0</dtringtype10>
	<dtringtype11>0</dtringtype11>
	<dtringtype12>0</dtringtype12>
	<http_task_enable>1</http_task_enable>
	<https_task_enable>0</https_task_enable>
	<httpport>80</httpport>
	<httpsport>443</httpsport>
	<telnet_task_enable>1</telnet_task_enable>
	<voicemail_ringnum>4</voicemail_ringnum>
	<gruu_ctl>1</gruu_ctl>
	<proxyrequire_ctl>0</proxyrequire_ctl>
	<fwEnable>0</fwEnable>
	<fwWanurl></fwWanurl>
	<sym_udp>0</sym_udp>
	<stunip>213.192.59.75</stunip>
	<fwWanDurl></fwWanDurl>
	<fwMode>0</fwMode>
	<start_port>20000</start_port>
	<end_port>20998</end_port>
	<multi_user_enable>0</multi_user_enable>
	<upgrade>0</upgrade>
	<bksrvtm>3</bksrvtm>
	<ntfcfg>0</ntfcfg>
	<lancode>en_US</lancode>
	<tonecode>US</tonecode>
	<dsmode>1</dsmode>
	<dsmonth>3</dsmonth>
	<dsweek>2</dsweek>
	<dsday>1</dsday>
	<dsemonth>11</dsemonth>
	<dseweek>1</dseweek>
	<dseday>1</dseday>
	<ds_transition_time>2</ds_transition_time>
	<flashVer>201</flashVer>
	<http_download>{$domain_name}/app/provision</http_download>
	<tftp></tftp>
	<downloadtype>1</downloadtype>
	<dialpl></dialpl>
	<gtEnable>0</gtEnable>
	<dtimer>3</dtimer>
	<autoanswer>0</autoanswer>
	<ringPitch>0</ringPitch>
	<keysys_enable>0</keysys_enable>
	<pbName1></pbName1>
	<pbaddr1></pbaddr1>
	<pbName2></pbName2>
	<pbaddr2></pbaddr2>
	<pbName3></pbName3>
	<pbaddr3></pbaddr3>
	<pbName4></pbName4>
	<pbaddr4></pbaddr4>
	<pbName5></pbName5>
	<pbaddr5></pbaddr5>
	<pbName6></pbName6>
	<pbaddr6></pbaddr6>
	<pbName7></pbName7>
	<pbaddr7></pbaddr7>
	<pbName8></pbName8>
	<pbaddr8></pbaddr8>
	<pbName9></pbName9>
	<pbaddr9></pbaddr9>
	<pbName10></pbName10>
	<pbaddr10></pbaddr10>
	<pbName11></pbName11>
	<pbaddr11></pbaddr11>
	<pbName12></pbName12>
	<pbaddr12></pbaddr12>
	<pbName13></pbName13>
	<pbaddr13></pbaddr13>
	<pbName14></pbName14>
	<pbaddr14></pbaddr14>
	<pbName15></pbName15>
	<pbaddr15></pbaddr15>
	<pbName16></pbName16>
	<pbaddr16></pbaddr16>
	<pbName17></pbName17>
	<pbaddr17></pbaddr17>
	<pbName18></pbName18>
	<pbaddr18></pbaddr18>
	<pbName19></pbName19>
	<pbaddr19></pbaddr19>
	<pbName20></pbName20>
	<pbaddr20></pbaddr20>
	<pbName21></pbName21>
	<pbaddr21></pbaddr21>
	<pbName22></pbName22>
	<pbaddr22></pbaddr22>
	<pbName23></pbName23>
	<pbaddr23></pbaddr23>
	<pbName24></pbName24>
	<pbaddr24></pbaddr24>
	<pbName25></pbName25>
	<pbaddr25></pbaddr25>
	<pbName26></pbName26>
	<pbaddr26></pbaddr26>
	<pbName27></pbName27>
	<pbaddr27></pbaddr27>
	<pbName28></pbName28>
	<pbaddr28></pbaddr28>
	<pbName29></pbName29>
	<pbaddr29></pbaddr29>
	<pbName30></pbName30>
	<pbaddr30></pbaddr30>
	<pbName31></pbName31>
	<pbaddr31></pbaddr31>
	<pbName32></pbName32>
	<pbaddr32></pbaddr32>
	<pbName33></pbName33>
	<pbaddr33></pbaddr33>
	<pbName34></pbName34>
	<pbaddr34></pbaddr34>
	<pbName35></pbName35>
	<pbaddr35></pbaddr35>
	<pbName36></pbName36>
	<pbaddr36></pbaddr36>
	<pbName37></pbName37>
	<pbaddr37></pbaddr37>
	<pbName38></pbName38>
	<pbaddr38></pbaddr38>
	<pbName39></pbName39>
	<pbaddr39></pbaddr39>
	<pbName40></pbName40>
	<pbaddr40></pbaddr40>
	<pbName41></pbName41>
	<pbaddr41></pbaddr41>
	<pbName42></pbName42>
	<pbaddr42></pbaddr42>
	<pbName43></pbName43>
	<pbaddr43></pbaddr43>
	<pbName44></pbName44>
	<pbaddr44></pbaddr44>
	<pbName45></pbName45>
	<pbaddr45></pbaddr45>
	<pbName46></pbName46>
	<pbaddr46></pbaddr46>
	<pbName47></pbName47>
	<pbaddr47></pbaddr47>
	<pbName48></pbName48>
	<pbaddr48></pbaddr48>
	<pbName49></pbName49>
	<pbaddr49></pbaddr49>
	<pbName50></pbName50>
	<pbaddr50></pbaddr50>
	<pbName51></pbName51>
	<pbaddr51></pbaddr51>
	<pbName52></pbName52>
	<pbaddr52></pbaddr52>
	<pbName53></pbName53>
	<pbaddr53></pbaddr53>
	<pbName54></pbName54>
	<pbaddr54></pbaddr54>
	<pbName55></pbName55>
	<pbaddr55></pbaddr55>
	<pbName56></pbName56>
	<pbaddr56></pbaddr56>
	<pbName57></pbName57>
	<pbaddr57></pbaddr57>
	<pbName58></pbName58>
	<pbaddr58></pbaddr58>
	<pbName59></pbName59>
	<pbaddr59></pbaddr59>
	<pbName60></pbName60>
	<pbaddr60></pbaddr60>
	<snmp>0</snmp>
	<srtp>0</srtp>
<pkDescription>
{foreach $keys["line"] as $row}
{if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $account.1.user_id}{/if}
{if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $account.2.user_id}{/if}
{if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $account.3.user_id}{/if}
{if $row.device_key_line == "4"}{$feature = "9"}{$user_id = $account.4.user_id}{/if}
{if $row.device_key_line == "5"}{$feature = "10"}{$user_id = $account.5.user_id}{/if}
{if $row.device_key_line == "6"}{$feature = "11"}{$user_id = $account.6.user_id}{/if}
{if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $account.7.user_id}{/if}
{if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $account.8.user_id}{/if}
{if $row.device_key_type == "6"}
<Key Line="{$row.device_key_id}" Fea="{$feature}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{else}
<Key Line="{$row.device_key_id}" Fea="{$row.device_key_type}" Des="{$row.device_key_label}" Addr="{$row.device_key_value}" Addr2="" Mode="1" Mode2="1" UserID="{$user_id}"></Key>
{/if}
{/foreach}
	</pkDescription>
	<webdialurl></webdialurl>
	<cw_tone>1</cw_tone>
	<missedcallsctl>1</missedcallsctl>
	<callforwardctl>1</callforwardctl>
	<lcdbacklightctl>1</lcdbacklightctl>
	<time_format>1</time_format>
	<csta_enable>0</csta_enable>
	<csta_passwd>******</csta_passwd>
	<cfg_poll_timer>1440</cfg_poll_timer>
	<reboot_phone>1</reboot_phone>
	<firmware_timer>1440</firmware_timer>
	<firmware_abs_timer_hr>23</firmware_abs_timer_hr>
	<firmware_abs_timer_min>59</firmware_abs_timer_min>
	<firmware_abs_enable>1</firmware_abs_enable>
	<installer_passcode></installer_passcode>
	<user_passwd>{$user_password}</user_passwd>
	<web_logo1></web_logo1>
	<!--<web_logo1>&lt;img src="http://sipdnld.mitel.com/mitel.gif" alt="Mitel" width="143" height="43" hspace="0" align="left" /&gt;</web_logo1>-->
	<sip_mode>sip</sip_mode>
	<voicemail_key>{$voicemail_number}</voicemail_key>
	<html_enable>1</html_enable>
	<html_filename></html_filename>
	<facDef>90</facDef>
	<user_list>
		{foreach $lines as $row}
		<User State="1"
		ID="{$row.user_id}"
		DispName="{$row.display_name}"
		Pwd="{$row.password}"
		AuthName="{$row.auth_id}"
		Realm=""
		RegSvr="{$row.server_address}"
		RegPort="{$row.sip_port}"
		RegScheme="2"
		ProxySvr="{$row.server_address}"
		ProxyPort="{$row.sip_port}"
		ProxyScheme="2"
		VMSvr="{$row.server_address}"
		VMPort="{$row.sip_port}"
		VMScheme="2"
		{if isset($row.outbound_proxy)}OutSvr = "{$row.outbound_proxy}"{else}OutSvr=""{/if}
		OutPort="{$row.sip_port}"
		OutCtr="0"
		Ring="1"
		Line="0"
		EventSvr=""
		EventPort="{$row.sip_port}"
		EventScheme="2"
		NatMode="0"
		NatType="option"
		NatIp="0">
		</User>
		{/foreach}
		<!--
		<User State="1" ID="user" DispName="disp username" Pwd="hello" AuthName="user" Realm="" RegSvr="" RegPort="5060" RegScheme="2" ProxySvr="" ProxyPort="5060" ProxyScheme="2" VMSvr="" VMPort="5060" VMScheme="2" OutSvr="" OutPort="5060" OutCtr="0" Ring="1" Line="0" EventSvr="" EventPort="5060" EventScheme="2" NatMode="0" NatType="option" NatIp="0"></User>
		-->
	</user_list>

	<!--
	<ipadr>10.7.0.12</ipadr>
	<ipgateway>10.7.0.1</ipgateway>
	<ipmask>255.255.255.0</ipmask>
	<dhcpLease>86400</dhcpLease>
	<dhcpT1>43200</dhcpT1>
	<dhcpT2>75600</dhcpT2>
	<dhcpSrv>10.7.0.1</dhcpSrv>
	<ipdns>10.7.0.1</ipdns>
	<ipscddns>0.0.0.0</ipscddns>
	-->
	<cfg_version>7.2</cfg_version>
</Parameter>
