<?xml version="1.0" ?>
<device>

  <deviceProtocol>SIP</deviceProtocol>

  <sshUserId>root</sshUserId>
  <sshPassword>cisco</sshPassword>

  <devicePool>
     <dateTimeSetting>
        <dateTemplate>{$date_template}</dateTemplate>
        <timeZone>{$ciscotz}</timeZone>
        <ntps>
           <ntp>
               <name>{$network_time_server}</name>
               <ntpMode>Unicast</ntpMode>
           </ntp>
        </ntps>
     </dateTimeSetting>

     <callManagerGroup>
        <members>
           <member priority="0">
              <callManager>
                 <name>{$server.ip.1}</name>
                 <description>Asterisk</description>
                 <ports>
                 <sipPort>5060</sipPort>
                    </ports>
                    </callManager>
                </member>
            </members>



     </callManagerGroup>
     <connectionMonitorDuration>120</connectionMonitorDuration>
  </devicePool>

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

  <vendorConfig>
     <sshAccess>0</sshAccess>
     <sshPort>22</sshPort>

     <disableSpeaker>false</disableSpeaker>
     <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
     <pcPort>0</pcPort>
     <settingsAccess>1</settingsAccess>
     <garp>0</garp>
     <voiceVlanAccess>0</voiceVlanAccess>
     <videoCapability>0</videoCapability>
     <autoSelectLineEnable>0</autoSelectLineEnable>

     <webAccess>0</webAccess>
     <spanToPCPort>1</spanToPCPort>
     <loggingDisplay>1</loggingDisplay>
     <loadServer></loadServer>
     <daysDisplayNotActive></daysDisplayNotActive>
     <displayOnTime>08:30</displayOnTime>
     <displayOnDuration>9:30</displayOnDuration>
     <displayOnWhenIncomingCall>1</displayOnWhenIncomingCall>
     <displayIdleTimeout>60</displayIdleTimeout>
  </vendorConfig>

  <deviceSecurityMode>1</deviceSecurityMode>


  <sipProfile>
     <natEnabled></natEnabled>
     <natAddress></natAddress>
     <sipProxies>
        <registerWithProxy>true</registerWithProxy>
            <outboundProxy>{$outbound_host.line.1}</outboundProxy>
            <outboundProxyPort>{$outbound_port.line.1}</outboundProxyPort>
            <backupProxy>{$server_host.line.1}</backupProxy>
            <backupProxyPort>{$server_port.line.1}</backupProxyPort>
     </sipProxies>

     <preferredCodec>{$preferredcodec}</preferredCodec>
     <phoneLabel>{$displayname.line.1}</phoneLabel>

     <sipCallFeatures>
        <cnfJoinEnabled>true</cnfJoinEnabled>
        <callForwardURI>x--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>true</rfc2543Hold>
        <callHoldRingback>2</callHoldRingback>
        <localCfwdEnable>true</localCfwdEnable>
        <semiAttendedTransfer>true</semiAttendedTransfer>
        <anonymousCallBlock>2</anonymousCallBlock>
        <callerIdBlocking>2</callerIdBlocking>
        <dndControl>1</dndControl>
        <remoteCcEnable>true</remoteCcEnable>
     </sipCallFeatures>

     <sipStack>
        <sipInviteRetx>6</sipInviteRetx>
        <sipRetx>10</sipRetx>
        <timerInviteExpires>180</timerInviteExpires>
        <timerRegisterExpires>3600</timerRegisterExpires>
        <timerRegisterDelta>5</timerRegisterDelta>
        <timerKeepAliveExpires>120</timerKeepAliveExpires>
        <timerSubscribeExpires>120</timerSubscribeExpires>
        <timerSubscribeDelta>5</timerSubscribeDelta>
        <timerT1>500</timerT1>
        <timerT2>4000</timerT2>
        <maxRedirects>70</maxRedirects>
        <remotePartyID>true</remotePartyID>
        <userInfo>None</userInfo>
     </sipStack>

     <autoAnswerTimer>1</autoAnswerTimer>
     <autoAnswerAltBehavior>false</autoAnswerAltBehavior>
     <autoAnswerOverride>true</autoAnswerOverride>
     <transferOnhookEnabled>false</transferOnhookEnabled>
     <enableVad>false</enableVad>
     <preferredCodec>none</preferredCodec>
     <dtmfAvtPayload>101</dtmfAvtPayload>
     <dtmfDbLevel>3</dtmfDbLevel>
     <dtmfOutofBand>avt</dtmfOutofBand>
     <alwaysUsePrimeLine>false</alwaysUsePrimeLine>
     <alwaysUsePrimeLineVoiceMail>false</alwaysUsePrimeLineVoiceMail>
     <kpml>3</kpml>

     <stutterMsgWaiting>1</stutterMsgWaiting>
     <callStats>false</callStats>
     <offhookToFirstDigitTimer>15000</offhookToFirstDigitTimer>
     <silentPeriodBetweenCallWaitingBursts>10</silentPeriodBetweenCallWaitingBursts>
     <disableLocalSpeedDialConfig>false</disableLocalSpeedDialConfig>

     <startMediaPort>16384</startMediaPort>
     <stopMediaPort>32766</stopMediaPort>

     <voipControlPort>5060</voipControlPort>
     <dscpForAudio>184</dscpForAudio>
     <ringSettingBusyStationPolicy>0</ringSettingBusyStationPolicy>
     <dialTemplate>dialplan.xml</dialTemplate>

     <sipLines>
{line_loop}
        <line button="{$line}">
           <featureID>9</featureID>
           <featureLabel>{$username}</featureLabel>
           <name>{$username}</name>

           <proxy>{$server_host}</proxy>
           <port>{$server_port}</port>
           <autoAnswer>
              <autoAnswerEnabled>2</autoAnswerEnabled>
           </autoAnswer>
           <callWaiting>3</callWaiting>

           <authName>{$username}</authName>
           <authPassword>{$secret}</authPassword>

           <sharedLine>false</sharedLine>
           <messageWaitingLampPolicy>1</messageWaitingLampPolicy>
           <messagesNumber>{$voicemail_extension}</messagesNumber>
           <ringSettingIdle>4</ringSettingIdle>
           <ringSettingActive>5</ringSettingActive>

           <forwardCallInfoDisplay>
              <callerName>true</callerName>
              <callerNumber>false</callerNumber>
              <redirectedNumber>false</redirectedNumber>
              <dialedNumber>true</dialedNumber>
           </forwardCallInfoDisplay>
        </line>
{/line_loop}
     </sipLines>
   </sipProfile>
    {$image_name}
    {$tonescheme}
</device>
