﻿<?xml version="1.0" encoding="utf-8" ?> 
<UMRecyclerConfig>

	<!--For all monitoring and heartbeat stuff a value of 0 means that is disabled
		This is only true for the things marked optional. For example HeartBeatInterval of 0
		means heartbeats are disabled-->
	<!-- The worker process SIP ports. This given port and the one after it would be used -->
	<WorkerSIPPort>5065</WorkerSIPPort>
	<!-- Max Threads at which to recycle(optional) -->
	<MaxThreads>100</MaxThreads>
	<!-- Max WorkingSet size(in MB) at which to recycle(optional) -->
	<MaxWorkingSet>500</MaxWorkingSet>
	<!-- Max Temp Dir size(in MB) at which to recycle(optional) -->
	<MaxTempDirSize>0</MaxTempDirSize>
	<!-- Max Uptime (secs) after which to recycle(optional) -->
	<RecycleInterval>604800</RecycleInterval>
	<!-- Interval (secs) after which to poll for heartbeats(optional) -->
	<HeartBeatInterval>30</HeartBeatInterval>
	<!-- Maximum number of consecutive Heartbeat failures after which to recycle(required is sending heartbeats) -->
	<MaxHeartBeatFailures>2</MaxHeartBeatFailures>
	<!-- Interval (secs) after which to monitor resource consumption(optional) -->
	<ResourceMonitorInterval>600</ResourceMonitorInterval>
	<!-- Number of consecutive thrashes(crashes) allowed before service stopped(required) -->
	<ThrashCountMaximum>5</ThrashCountMaximum>
	<!-- Max time (secs) allowed before the worker process should be up and signal the semaphore(required) -->
	<StartupTime>120</StartupTime>
	  <!-- Max number of calls allowed - before recycling the worker process !(optional) -->
	<MaxCallsBeforeRecycle>50000</MaxCallsBeforeRecycle>
	 <!-- Max Interval (secs) by which to receive response for heartbeats(required is sending heartbeats) -->
	<HeartBeatResponseTime>20</HeartBeatResponseTime>
	<!-- Place where temp files needed by UM will be stored  -->
	<TempFilePath>UnifiedMessaging\temp</TempFilePath>
	<!-- Interval in secs after which to poll SIP Peers for health check. '0' means no ping. (optional)  -->
	<PingInterval>120</PingInterval>
	<!-- Needed only if at startup no dialPlan is attached to the umserver. 1 means secured, 0 means non-Secured  -->
	<StartSecured>0</StartSecured>
	<!-- If UM Service is to run in secured mode and it doesnt find any valid certificate in the store,
	it creates a self signed certificate valid for these many months  -->
	<CertificateValidityPeriodMonths>24</CertificateValidityPeriodMonths>
	<!-- If UM Service is to run in secured mode - this denotes the number of days before certificate expiry
	admin wants to be warned of certificate expiry.   -->
	<DaysBeforeCertExpiryForAlert>30</DaysBeforeCertExpiryForAlert>
	<!-- If UM Service is to run in secured mode - this denotes in number of days the subsequent interval after 
	the first warning when the admin wants to be informed of near certificate expiry  -->
	<SubsequentAlertIntervalAfterFirstAlertForCert>1</SubsequentAlertIntervalAfterFirstAlertForCert>
	<!-- Name of the file into which to export the certificate chosen by the umservice.  -->
	<CertFileName>UnifiedMessaging\UMServiceCertificate.cer</CertFileName>

  </UMRecyclerConfig>
