<?xml version="1.0" encoding="utf-8" ?>

<VoiceRecorder>

	<!-- 0 = IP Recorder Type -->
	<Type>0</Type>

	<AudioRootFolder>c:\temp\vr2</AudioRootFolder>
	
	<!-- customize your audio file name here:
	you can use caller, called, datatime, randnum. 
	Leave it blank for default. 
	Sample: datetime-randnum.wav or caller-called.wav
	-->
	<AudioFileName></AudioFileName>

	<!-- 0 = default(.wav), 1 = mp3, 2 = gsm, 3 = .wzp encoded file, 4 = raw(PCM mono 8K16Bit) -->
	<AudioFileFormat>0</AudioFileFormat>
	
	<!-- As VR2 is using lame.exe to convert wav to mp3, so it may have credential problems when running thirdparty application in Win7 or Win2k8. -->
	<!-- Set credential here to avoid this problem. -->
	<!-- Format: username;password;domain    Sample: admin;1234;localhost -->
	<Credential></Credential>
	
	<!-- 0 = disabled, 1 = enabled -->
	<EncryptAudioFile>0</EncryptAudioFile>	
	
	<!-- Set Filters -->
	<!-- Format: FilterType;Filter1;Filter2;... -->
	<!-- FilterType 0:IP Address, 1:CallID, 2:MAC Address -->
	<!-- Sample: 0;192.168.1.10;192.168.1.21 -->
	<!-- Sample: 1;16135552324;17042223333 --> <!-- CallID supports wild cards. * means any string. ? means any one character. Sample: 1;1613*;1704* -->
	<!-- Sample: 2;00-23-AE-99-3C-14;00-15-5D-01-2E-17 -->
	<Filters></Filters>
	
	<!-- Exclude specific IP, or ID, or MAC address -->
	<!-- Format: FilterType;Filter1;Filter2;... -->
	<!-- FilterType 0:IP Address, 1:CallID, 2:MAC Address -->
	<!-- Sample: 0;192.168.1.10;192.168.1.21 -->
	<!-- Sample: 1;16135552324;17042223333 -->	<!-- CallID supports wild cards. * means any string. ? means any one character. Sample: 1;1613*;1704* -->
	<!-- Sample: 2;00-23-AE-99-3C-14;00-15-5D-01-2E-17 -->
	<Excludes></Excludes>	

	<!-- 0 = disable, 1 = Error only, 2 = Error + Warning, 3 = Error + Warning + Debug, 4 = ALL(Error + Warning + Debug + Info) -->
	<LogLevel>4</LogLevel>

	<LogFileName>c:\temp\vr2\VR2.log</LogFileName>

	<!-- This setting is only for IP Recorder. For hardware based recorder, it can be automatically detected. -->
	<ChannelCount>4</ChannelCount>

	<!-- License Key for your recording software -->
	<LicKey></LicKey>
	
	<!-- The MAC address that you want the license key to be associated with. -->
	<!-- You don't have to set it. If it is null, VR2 will automatically choose one. -->
	<!-- You can use "ipconfig -all" in command Window to list all network interfaces. -->
	<!-- Set it to USB driver letter if you want to use a USB key as a dongle. Like e: -->
	<LicMAC></LicMAC>
	
	<ManagerPort>1376</ManagerPort>
	
	<!-- How many days to keep the record in root folder. -->
	<!-- 0: no clean up. >0: days -->
	<KeepRecordMaxDays>0</KeepRecordMaxDays>
	
	<!-- You can set when how many space left in recording folder, recorder will start to remove the old files until the space gain back enough. -->
	<!-- 0: this feature is disabled. >0 in MB. -->
	<FIFOSpaceInMB>0</FIFOSpaceInMB>
	
	
	<!-- If enable realtime SIP server for listening conversation -->
	<!-- Set it to 1 to enable it -->
	<!-- Then during VR2 is running, you can use SIP phone to call <sip:1@local-ip> to listen to conversation on channel 0 -->
	<!-- Config VR2RTSrv.ini for realtime SIP streaming server -->
	<!-- NOTE: This feature needs special license. -->	
	<!-- Set it to 2 to use Cisco Built-In-Bridge (bib) mode -->	
	<EnableRTSrv>0</EnableRTSrv>

	<Database>
		<Enabled>false</Enabled>
<!--
DBType: 0 = MS SQL 2005 Express, 1 = MS SQL 2005, 2 = MS SQL 2000
-->		
		<DBType>0</DBType>
		
<!--
DBServer: blank = local, otherwise give the server name or ip
-->		
		<DBServer></DBServer>
		
<!-- Please create a database as the following name. -->
<!-- NOTE: you do NOT need to create any table for your DB. -->
<!-- VR2 engine will automatically create tables once it can connect to DB. -->
		<DBName>VoIPRecorder</DBName>
		
<!--
0 = SQL Authentication, 1 = Windows Authentication
-->		
		<AuthType>1</AuthType>
		
<!--
if AuthType is SQL Authentication, then please give the UserName and Password 
for connecting SQL server.
-->		
		<UserName></UserName>
		<Password></Password>

		<CallLogTableName>calls</CallLogTableName>
		<ChannelStatusTableName>channels</ChannelStatusTableName>

		<UpdateChannelStatusToDB>false</UpdateChannelStatusToDB>
	</Database>


	<VoIP>
		<!-- Can be SIP, SCCP or SKINNY or SKINNY_CCM7 or SCCP_CCM7, RTP, H323, IAX2, UNISTIM, MGCP, ..... -->
		<Protocol>SIP</Protocol>
		
		<Port></Port>		

		<!-- Please run ListNetworks.exe to get the index of the NIC on which you want to monitor. -->
		<!-- Set it to filename of wireshark log of .pcap file, it will convert all calls in wireshark log into wav files. -->
		<NIC>0</NIC>
		
		<DumpFile></DumpFile>
		
		<!-- In the most of cases, it is 1. If not working, means your NIC driver doesn't support Promiscuous Mode, then it is 0. -->
		<PromiscuousMode>1</PromiscuousMode>
		
		<RTP>
			<!-- If Protocol is set to RTP recording, please specify the PBX address, and Extension's address -->
			<!-- Sample: 192.168.1.101;192.168.1.102 -->
			<!-- It also supports MAC address. Sample: F4-D9-FB-58-E9-84;F4-D9-FB-64-49-7E -->
			<PBXAddr>192.168.1.214</PBXAddr>
			
			<!-- PBX Extension list for RTP recording -->
			<!-- FORMAT: Name,number,ipaddress;name,number,ipaddress -->
			<!-- Sample: Mike,101,192.168.1.102;Jenny,102,192.168.1.103 -->
			<!-- You can also use dns name instead of IP address: Mike,101,dns-ext101.companydomain.com;Jenny,102,dns-ext102.companydomain.com -->
			<!-- The prefix 'dns-' indicate it is a domain name rather than ip address -->
			<!-- you can also use MAC address instead of IP address: Mike,101,F4-D9-FB-58-E9-84;Jenny,102,F4-D9-FB-64-49-7E-->	
			<ExtenAddr>Mike,101,192.168.1.41</ExtenAddr>
		</RTP>
		
		<!-- Set it to true if you see duplicated calls are recorded. -->
		<IgnorePossibleSameCall>false</IgnorePossibleSameCall>
		
		<!-- Set it to false if you don't want to create wav files for calls. -->
		<Recording>true</Recording>
		
		<!-- Set it to true if you want to create a wav file for each audio leg of the call. -->
		<RecordCallLegs>false</RecordCallLegs>
		
		<!-- Set it to true if you want to record stereo wav. Caller will be left channel and agent will be right channel. -->
		<RecordStereo>false</RecordStereo>
		
		<!-- Set it to false if you don't want to create XML call info file. -->
		<XMLCallInfo>true</XMLCallInfo>		
		
		<!-- Default it is 0, means disabled. If you have seen channels not disconnected and stayed forever, it will be helpful to enable this option. -->
		<!-- You can set it to 5 for 5 seconds, or 3 for 3 seconds. -->
		<NoAudioSeconds>0</NoAudioSeconds>
		
		<!-- if use packet time. default it is false. -->
		<UsePacketTime>false</UsePacketTime>
		
		<!-- set a key string for softphone to press, and pause recording. press the same key again to resume. For example, *, or 1234 -->
		<RecordPauseDTMFKey></RecordPauseDTMFKey>
		
		<!-- set pause options -->
		<!--      0 = not insert, no auto-pause(automatically pause recording when call starts). -->
		<!-- 	  1 = insert blank/silence audio in wav for paused period. -->
		<!--      2 = auto-pause + not insert blank/silence audio in wav for paused period -->
		<!-- 	  3 = auto-pause + insert blank/silence audio in wav for paused period -->
		<RecordPauseOption>0</RecordPauseOption>
		
		<!-- For SIP recorder, if only record after call is connected. Set this to true, it will not record early media before call is answered, like ring tone,.... -->
		<RecordOnlyAfterAnswer>false</RecordOnlyAfterAnswer>		
		
		<!-- Sometimes you need to record extra SIP headers into XML, so you can set the extra headers here -->
		<!-- Fox example: From;To;P-Asserted-Identity;P-Charging-Vector -->
		<!-- Available Headers Name: From;To;Call-Id;Contact;P-Asserted-Identity;P-Charging-Vector;Remote-Party-ID;Reason;Date;User-Agent;Accept-Language;Refer-To -->
		<SIPHeadersInXML></SIPHeadersInXML>
		
		<!-- tell record how extension number looks like. * means any string. ? means any one character. Sample: 1??? means extension number starts as 1, and four digits/characters. -->
		<ExtenPattern></ExtenPattern>
		
		<!-- set 1 to write pcap file for each call -->
		<WriteCallPcapFile>0</WriteCallPcapFile>
		
		<!-- tell record how extension number looks like. * means any string. ? means any one character. Sample: 1??? means extension number starts as 1, and four digits/characters. -->
		<ExtenPattern></ExtenPattern>		
		
		<!-- if add announcement in recording, to indicate the date and time of the call. -->
		<!-- 0  = disabled, 1 = adding at the beginning of the recording, 2 = adding at the end of recording. -->
		<AddDateTimeAnnouncement>0</AddDateTimeAnnouncement>
		
		<!-- what to announce. If it is blank, the default: 'Call recorded %s. Audio of recorded call:'. The %s will be replaced with the real date and time of the call.-->
		<AddDateTimeAnnouncementFmt></AddDateTimeAnnouncementFmt>
		
	</VoIP>
	
	<TAPI>
		<MonitorLines></MonitorLines>
		<RestartHours>0</RestartHours>
	</TAPI>

	<SMTPServer>
		<!-- Set SMTP server account information if you want a notification for server fatal errors. -->
		<!-- sample: smtp.myemailserver.com -->
		<Server></Server>
		
		<!-- SMTP port -->
		<Port>25</Port>
		
		<!-- Email address to used for sending email from address. -->
		<EmailAddr></EmailAddr>
		
		<!-- its password -->
		<Password></Password>
		
		<!-- if use SSL -->
		<SSL>true</SSL>
	</SMTPServer>
	
	<!-- Set email addresses to be notified for system fatal errors. -->
	<!-- Format: email1;email2;... -->
	<!-- Sample: abc@gmail.com;def@hotmail.com -->
	<NotifyEmails></NotifyEmails>
	
	<!-- if notify recording wav file by email using above email setting -->
	<!-- Format: email1;email2;... -->
	<!-- Sample: abc@gmail.com;def@hotmail.com -->	
	<NotifyRecordingEmails></NotifyRecordingEmails>
	
	<!-- if run a script to notify the recording wav to other party, it will run 'scriptfile callerid calledid timebegin timeend wavfile xmlfile' -->
	<NotifyRecordingScript></NotifyRecordingScript>
	
	<!-- A XML service URI to post the recording data to. Usually it is a link like: http://, or https:// -->
	<NotifyXMLServiceURI></NotifyXMLServiceURI>
	
	<!-- Set ID mapping rule if you want to replace specific ID before it is writen into DB table -->
	<!-- Format: org-str1,replace-str1;org-str2,replace-str2; -->
	<!-- Sample: exten_1234,Mike;1100,Bob -->
	<IDMaps></IDMaps>
	
	<!-- for avaya CDR correction -->
	<AvayaCDR>
		<!-- 0 = disabled, otherwise set a port number between 10000 - 65535, on Avaya, give this port number to forward CDR info over -->
		<CDRPort>0</CDRPort>
		
		<!-- TCP or UDP -->
		<CDRPortType>TCP</CDRPortType>
		<Trunks>
			<Trunk0></Trunk0>
			<Trunk1></Trunk1>
			<Trunk2></Trunk2>
		</Trunks>
		
		<Pos>
			<TimePos1>1</TimePos1>
			<TimePos2>4</TimePos2>
			<CondPos1>11</CondPos1>
			<CondPos2>11</CondPos2>
			<CallerPos1>37</CallerPos1>
			<CallerPos2>41</CallerPos2>
			<CalleePos1>21</CalleePos1>
			<CalleePos2>35</CalleePos2>
		</Pos>
	</AvayaCDR>
	
	<SamsungCDR>
		<ServerIPAddr></ServerIPAddr>
		<ServerPort></ServerPort>
	</SamsungCDR>

	<CiscoBIB>
		<!-- Recording Trunk Names in Cisco Call Manager, if you have multiple, please use ; to separate -->
		<RecordingTrunk></RecordingTrunk>
		
		<!-- Incoming Trunk Names in Cisco Call Manager, if you have multiple, please use ; to separate -->
		<IncomingTrunk></IncomingTrunk>
		
		<!-- Outgoing Trunk Names in Cisco Call Manager, if you have multiple, please use ; to separate -->
		<OutgoingTrunk></OutgoingTrunk>
		
	</CiscoBIB>
		
</VoiceRecorder>

