<?xml version="1.0" ?>
<device>
	<deviceProtocol>SIP</deviceProtocol>
	<sshUserId>root</sshUserId>
	<sshPassword>cisco</sshPassword>
	<devicePool>
		<dateTimeSetting>
			<dateTemplate>{$date_template}</dateTemplate>
			<timeZone>{$timezone_template}</timeZone>
			<ntps>
				<ntp>
					<name>{$network_time_server}</name>
					<ntpMode>Unicast</ntpMode>
				</ntp>
			</ntps>
		</dateTimeSetting>
		<callManagerGroup>
			<members>
				<member priority="0">
					<callManager>
						<processNodeName>{$server.ip.1}</processNodeName>
						<ports>
							<sipPort>5060</sipPort>
						</ports>
					</callManager>
				</member>
                        {loop_backup}
                                <member priority="{$number}">
                                        <callManager>
                                                <processNodeName>{$ip}</processNodeName>
                                                <ports>
                                                        <sipPort>{$port}</sipPort>
                                                </ports>
                                        </callManager>
                                </member>
                        {/loop_backup}
			</members>
		</callManagerGroup>
	</devicePool>
	<sipProfile>
		<natEnabled></natEnabled>
     		<natAddress></natAddress>
		<sipProxies>
			<registerWithProxy>true</registerWithProxy>
			<outboundProxy>{$outbound_host.line.1}</outboundProxy>
			<outboundProxyPort>{$outbound_port.line.1}</outboundProxyPort>
			<backupProxy>{$backup_ip}</backupProxy>
			<backupProxyPort>{$backup_port}</backupProxyPort>
		</sipProxies>

		<sipCallFeatures>
	        	<cnfJoinEnabled>true</cnfJoinEnabled>
		        <callForwardURI>x-cisco-serviceuri-cfwdall</callForwardURI>
		        <callPickupURI>x-cisco-serviceuri-pickup</callPickupURI>
		        <callPickupListURI>x-cisco-serviceuri-opickup</callPickupListURI>
	        	<callPickupGroupURI>x-cisco-serviceuri-gpickup</callPickupGroupURI>
		        <meetMeServiceURI>x-cisco-serviceuri-meetme</meetMeServiceURI>
		        <abbreviatedDialURI>x-cisco-serviceuri-abbrdial</abbreviatedDialURI>
		        <rfc2543Hold>false</rfc2543Hold>
		        <callHoldRingback>2</callHoldRingback>
		        <localCfwdEnable>true</localCfwdEnable>
		        <semiAttendedTransfer>true</semiAttendedTransfer>
		        <anonymousCallBlock>2</anonymousCallBlock>
		        <callerIdBlocking>2</callerIdBlocking>
		        <dndControl>0</dndControl>
		        <remoteCcEnable>true</remoteCcEnable>
			<retainForwardInformation>true</retainForwardInformation>
		</sipCallFeatures>
		<preferredCodec>{$preferredcodec}</preferredCodec>
		<phoneLabel>{$displayname.line.1}</phoneLabel>
		<sipLines>
{line_loop}
			<line button="{$line}" lineIndex="{$line}">
				<featureID>9</featureID>
				<featureLabel>{$username}</featureLabel>
				<proxy>USECALLMANAGER</proxy>
				<port>{$server_port}</port>
				<name>{$username}</name>
				<authName>{$username}</authName>
				<authPassword>{$secret}</authPassword>
				<messageWaitingLampPolicy>3</messageWaitingLampPolicy>
				<messagesNumber>{$voicemail_extension}</messagesNumber>
           			<displayName></displayName>
           			<contact></contact>
           			<autoAnswer>
              				<autoAnswerEnabled>2</autoAnswerEnabled>
           			</autoAnswer>
           			<featureOptionMask>1</featureOptionMask>
           			<callWaiting>3</callWaiting>
           			<sharedLine>false</sharedLine>
           			<messageWaitingAMWI>1</messageWaitingAMWI>
           			<ringSettingIdle>4</ringSettingIdle>
           			<ringSettingActive>5</ringSettingActive>
           			<forwardCallInfoDisplay>
              				<callerName>true</callerName>
              				<callerNumber>false</callerNumber>
              				<redirectedNumber>false</redirectedNumber>
              			<dialedNumber>true</dialedNumber>
           			</forwardCallInfoDisplay>
                        	<maxNumCalls>4</maxNumCalls>
                        	<busyTrigger>2</busyTrigger>
			</line>
{/line_loop}
{loop_linekey}
                        <line button="{$number}">
                                <featureID>{$type}</featureID>
                                <featureLabel>{$label}</featureLabel>
	                        <speedDialNumber>{$extension}</speedDialNumber>
        	                <featureOptionMask>1</featureOptionMask>
	                </line>
{/loop_linekey}
{loop_kemkey}
                        <line button="{$number}">
                                <featureID>{$type}</featureID>
                               	<featureLabel>{$label}</featureLabel>
                                <speedDialNumber>{$extension}</speedDialNumber>
                                <featureOptionMask>1</featureOptionMask>
                        </line>
{/loop_kemkey}
		</sipLines>
		<dialTemplate>{$dialplan_template}</dialTemplate>
		<startMediaPort>10000</startMediaPort>
     		<stopMediaPort>20000</stopMediaPort>
     		<voipControlPort>5060</voipControlPort>
     		<dscpForAudio>184</dscpForAudio>
         	<dscpVideo>136</dscpVideo>
         	<dscpForTelepresence>128</dscpForTelepresence>
     		<ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
         	<softKeyFile>softkey.xml</softKeyFile>
	</sipProfile>
	 <loadInformation>{$image_name}</loadInformation>
	 <featurePolicyFile>DefaultFP.xml</featurePolicyFile>
                <addOnModules>
                     <addOnModule uuid="" idx="1">
                        <loadInformation>{$kem}</loadInformation>
                        <phoneTemplateId></phoneTemplateId>
                     </addOnModule>
                </addOnModules>

<commonProfile>
     <phonePassword></phonePassword>
     <backgroundImageAccess>true</backgroundImageAccess>
     <callLogBlfEnabled>3</callLogBlfEnabled>
</commonProfile>

  <vendorConfig>
     <disableSpeaker>false</disableSpeaker>
     <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
     <pcPort>0</pcPort>
     <settingsAccess>1</settingsAccess>
     <garp>0</garp>
     <voiceVlanAccess>0</voiceVlanAccess>
     <ciscoCamera>1</ciscoCamera>
     <videoCapability>{$video}</videoCapability>
     <usbClasses>0,1,2</usbClasses>
     <sdio>1</sdio>
     <wifi>0</wifi>
     <bluetoothProfile>0,1</bluetoothProfile>
     <powerNegotiation>0</powerNegotiation>
     <autoSelectLineEnable>0</autoSelectLineEnable>
     <webAccess>0</webAccess>
     <sshAccess>0</sshAccess>
     <g722CodecSupport></g722CodecSupport>
     <daysDisplayNotActive>1,2,3,4,5,6,7</daysDisplayNotActive>
     <displayOnTime>08:30</displayOnTime>
     <displayOnDuration>09:30</displayOnDuration>
     <displayIdleTimeout>01:00</displayIdleTimeout>
     <displayOnWhenIncomingCall>1</displayOnWhenIncomingCall>
     <spanToPCPort>1</spanToPCPort>
     <loggingDisplay>1</loggingDisplay>
     <loadServer>{$dns_server}</loadServer>
  </vendorConfig>
<commonConfig>
     <usb1>1</usb1>
     <usb2>1</usb2>
     <ciscoCamera>1</ciscoCamera>
     <usbClasses>0,1,2</usbClasses>
     <sdio>1</sdio>
     <bluetooth>1</bluetooth>
     <wifi>1</wifi>
     <bluetoothProfile>0,1</bluetoothProfile>
     <joinAndDirectTransferPolicy>0</joinAndDirectTransferPolicy>
  </commonConfig>

  <enterpriseConfig>
     <usb1>1</usb1>
     <usb2>1</usb2>
     <ciscoCamera>1</ciscoCamera>
     <usbClasses>0,1,2</usbClasses>
     <sdio>1</sdio>
     <bluetooth>1</bluetooth>
     <wifi>1</wifi>
     <bluetoothProfile>0,1</bluetoothProfile>
     <joinAndDirectTransferPolicy>0</joinAndDirectTransferPolicy>
     <videoCapability>1</videoCapability>
     <webAccess>0</webAccess>
     <eapAuthentication>2</eapAuthentication>
     <webProtocol>0</webProtocol>
  </enterpriseConfig>
<deviceSecurityMode>1</deviceSecurityMode>

  <idleTimeout>0</idleTimeout>
  <authenticationURL>{$authentication_url}</authenticationURL>
  <directoryURL>{$directory_url}</directoryURL>
  <idleURL>{$idle_url}</idleURL>
  <informationURL></informationURL>
  <messagesNumber>10000</messagesNumber>
  <messagesURL></messagesURL>
  <proxyServerURL></proxyServerURL>
  <servicesURL></servicesURL>
  <dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig>
  <dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
  <dscpForCm2Dvce>96</dscpForCm2Dvce>

  <transportLayerProtocol>{$transport_layer}</transportLayerProtocol>
  <dndCallAlert>5</dndCallAlert>
  <phonePersonalization>1</phonePersonalization>
  <rollover>0</rollover>
  <singleButtonBarge>0</singleButtonBarge>
  <joinAcrossLines>1</joinAcrossLines>
  <autoCallPickupEnable>false</autoCallPickupEnable>
  <blfAudibleAlertSettingOfIdleStation>0</blfAudibleAlertSettingOfIdleStation>
  <blfAudibleAlertSettingOfBusyStation>0</blfAudibleAlertSettingOfBusyStation>

  <capfAuthMode>0</capfAuthMode>
  <capfList>
     <capf>
        <phonePort>3804</phonePort>
     </capf>
  </capfList>

  <certHash></certHash>
	{$tonescheme}
 <phoneServices>
     <provisioning>0</provisioning>
        <phoneService  type="1" category="0">
                <name>Missed Calls</name>
                <url>Application:Cisco/MissedCalls</url>
                <vendor></vendor>
                <version></version>
        </phoneService>
        <phoneService  type="2" category="0">
                <name>Voicemail</name>
                <url>Application:Cisco/Voicemail</url>
                <vendor></vendor>
                <version></version>
        </phoneService>
        <phoneService  type="1" category="0">
                <name>Received Calls</name>
                <url>Application:Cisco/ReceivedCalls</url>
                <vendor></vendor>
                <version></version>
        </phoneService>
        <phoneService  type="1" category="0">
                <name>Placed Calls</name>
                <url>Application:Cisco/PlacedCalls</url>
                <vendor></vendor>
                <version></version>
        </phoneService>
        <phoneService  type="1" category="0">
                <name>Personal Directory</name>
                <url>Application:Cisco/PersonalDirectory</url>
                <vendor></vendor>
                <version></version>
        </phoneService>
{loop_servicekey}
        <phoneService  type="{$type}" category="{$category}">
                <name>{$name}</name>
                <url>{$url}</url>
                <vendor>{$vendor}</vendor>
                <version>{$version}</version>
        </phoneService>
{/loop_servicekey}


  </phoneServices>


</device>
