<cardserv-proxy ver="0.8.9">

  <ca-profiles>
    <default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>
    <profile name="myprofile" ca-id="0000"> <!-- ca-id must be correct if set, use 0000 if unknown/irrelevant -->
      <newcamd listen-port="13112"/>
      <services-file>etc/services</services-file> <!-- enigma services file -->
    </profile>
  </ca-profiles>

  <logging>
    <log-file>log/cardserv.log</log-file>
    <log-level>INFO</log-level> <!-- levels: OFF, SEVERE, WARNING, INFO, FINE, FINER, FINEST, ALL -->
  </logging>

  <user-manager class="com.bowman.cardserv.SimpleUserManager" allow-on-failure="true" log-failures="true">
    <auth-config>
      <!-- local users -->
      <user name="test" password="test" ip-mask="192.168.0.*" max-connections="3" profiles="myprofile"/>
      <!-- user name="test2" password="test2" profiles="cable terrestrial" enabled="false"/ -->
      <!-- omit profiles = all profile access -->
    </auth-config>
  </user-manager>

  <connection-manager>
    <reconnect-interval>60</reconnect-interval>
    <max-cw-wait>9</max-cw-wait>
    <congestion-time>8</congestion-time>
    <default-des-key>01 02 03 04 05 06 07 08 09 10 11 12 13 14</default-des-key>
    <default-keepalive-interval>300</default-keepalive-interval>
    <default-client-id>00 00</default-client-id>
    <!-- 4C 43 = LCE, 43 33 = Camd3, 72 64 = Radegast, 67 62 = Gbox, 56 44 = VDR-SC, 77 63 = WinCSC -->

    <service-map>
      <mapper> <!-- defaults -->
        <cache-dir>cache</cache-dir>
        <cache-save-age>300</cache-save-age>
        <auto-map-services>true</auto-map-services> <!-- aggressive service discovery, check all unknown cards -->
        <reset-services></reset-services> <!-- clear maps hourly for these services -->
        <auto-reset-threshold>20</auto-reset-threshold> <!-- number of failed before cannotdecode map is cleared for id -->
      </mapper>
      <mapper profile="myprofile"> <!-- override defaults for this profile -->
        <retry-lost-services>true</retry-lost-services>
      </mapper>
    </service-map>

    <cws-connectors>
      <newcamd-connector name="test" profile="myprofile" enabled="true">
        <host>dreambox</host>
        <port>13111</port>
        <user>testu</user>
        <password>testp</password>
        <au-users>test</au-users> <!-- leave empty or remove to disable au -->
      </newcamd-connector>
    </cws-connectors>
  </connection-manager>

  <cache-handler class="com.bowman.cardserv.DefaultCache">
    <cache-config>
      <cw-max-age>19</cw-max-age>
      <max-cache-wait>8</max-cache-wait>
    </cache-config>
  </cache-handler>

</cardserv-proxy>

