<p>These instructions should assist in configuring your Cisco UCM / Business Edition to 
work with TIM Enterprise. If you are not familiar with PBX 
configuration, please contact your system maintainer.</p>

<table class="confluenceTable">
	<tbody>
		<tr>
			<th class="confluenceTh" width=158>Connection information</th>
			<th class="confluenceTh">Description</th>
		</tr>
		<tr>
			<td class="confluenceTd"><b>Connection type</b></td>
			<td class="confluenceTd">FTP or SFTP.
			</td>
		</tr>
		<tr>
			<td class="confluenceTd"><b>Connection method</b></td>
			<td class="confluenceTd">The Cisco UCM will send the CDR data to TIM Enterprise via FTP or SFTP.
			</td>
		</tr>
	</tbody>
</table>


<p>The tasks required to be done are as follows. They are all analysed in details further down this page.</p>

<ol>
	<li>Downloading and configuring interface file <span class="keyword">UCM.zip</span>.</li>
	<li>Creating Cisco Application User for AXL sync.</li>
	<li>Configuring TIM Enterprise to receive data from UCME.</li>
	<li>Creating AXL object to sync from UCM.</li>
	<li>Setting up FTP / SFTP on Cisco UCM to transfer CDRs to TIM Enterprise.</li>
</ol>

<h4>1.&nbsp; Downloading and configuring interface file <span class="keyword" style="color: #477FBD;">UCM.zip</span></h4>

<ol class="split start">
	<li>Visit <a href="https://gateway.tri-line.com/">Tri-Line's Portal</a> and download the template file, as shown below:</li>
	<img id="border" src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/3cx_1.png" alt="3CX" />
	<li> Extract the <span class="keyword">Cisco UCM.zip</span> file to <span class="keyword">C:\Program Files\Tri-Line\TIM Enterprise\config</span> folder. Zip file should contain 
	two files, <span class="keyword">Cisco UCM.TDT</span> and <span class="keyword">Cisco UCM.TDS</span>.</li>
</ol>

<h4>2.&nbsp; Creating Cisco Application User for AXL sync</h4>

<p>Create an Application User on Cisco UCM, enabling TIM Enterprise to query the Cisco DB. Just follow the steps shown below:</p>

<ol>
	<li>Connect to your UCM node, Select Cisco Unified CM Administration from the Navigation drop down list on the right and click Go.</li>
	<li>Login to the system, select User Management from the menu and click Application User.</li>
	<li>Click Add New from the menu.</li>
	<li>Enter in the following details:</li>
	<ul>
		<li><b>User ID:</b> TIM_AXL</li>
		<li><b>Password:</b> C1sco</li>
		<li><b>Confirm Password:</b> C1sco</li>
	</ul>
	<li>Scroll down to the Permissions Information section, click Add to User Group.</li>
	<li>In the new window, enter Standard Tab then click Find. Select Standard TabSync User and click Add Selected, followed by Save.</li>
</ol>

<h4>3.&nbsp; Configuring TIM Enterprise to receive data from UCME</h4>

<p>Below you will find steps on how to configure TIM Enterprise to listen for SMDR data from your Cisco UCM:</p>

<ol>
	<li>Browse to TIM Enterprise as normal and login with your credentials.</li>
	<li>Click on the <span class="button" id="list">Directory</span> tab.</li>
	<li>Go the the point in the Directory where you need to add the PBX Object and add a PBX with the name 'Cisco UCM'.</li>
	<li>Left-click on it and select <span class="button" id="list">Properties</span>.</li>
	<li>From the <span class="button" id="list">General</span> settings tab select <span class="keyword">Cisco UCM 5+</span> from the PBX model list and enable the local backup.</li>
	<img src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/cisco_ucm_4.png" alt="Cisco UCM" />
	<li>In the <span class="button" id="list">Connection</span> tab select <span class="keyword">RADIUS connection</span> from the <span class="reference">Connection method</span> list.</li>
	<li>In the <span class="reference">Client IP</span> field enter in the IP address or Hostname of your Cisco router.</li>
	<li>In the <span class="reference">Secret key</span> field enter in the passphrase used for RADIUS events e.g. 'C1sco'.</li>
	<li>Finally, click on the <span class="button" id="list">Save</span> button.</li>
	<img src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/cisco_ucm_5.png" alt="Cisco UCM" />
</ol> 

<h4>4.&nbsp; Configuring Directory Sync</h4>

<p>Below you will find steps on how to configure the Directory Sync from Cisco UCM:</p>

<ol>
	<li>Browse to TIM Enterprise as normal and login with your credentials.</li>
	<li>Click on the <span class="button" id="list">Directory</span> tab.</li>
	<li>Go to the point in the Directory where you need to synchronise and add a new <span class="reference">Directory Sync</span> object with an appropriate description e.g. 'Cisco AXL'.</li>
	<img src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/cisco_ucme_6.png" alt="Cisco UCM" />
	<li>Left-click on it and select <span class="button" id="list">Properties</span>.</li>
	<li>In the <span class="reference">Directory type</span> drop-down list select <span class="keyword">Cisco UCME</span>.</li>
	<li>In the <span class="reference">Host name</span> field enter in the IP address or Hostname of your Cisco router.</li>
	<li>In the <span class="reference">Username</span> field enter in the username of your choice.</li>
	<img src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/cisco_ucm_6.png" alt="Cisco UCM" />
	<li>Click <span class="button" id="list">Set password</span> and enter the password used to login to the Cisco UCM, followed by clicking <span class="button" id="list">OK</span>.</li>
	<img src="http://www.tri-line.com/common/img/documentation/tim_enterprise/pbx/cisco_ucm_7.png" alt="Cisco UCM" />
	<li>Finally, click on the <span class="button" id="list">Save</span> button.</li>
</ol> 

<h4>5.&nbsp; Setting up FTP / SFTP on Cisco UCM to transfer CDRs to TIM Enterprise</h4>

<p>You will need to configure your Cisco UCM to send the CDR data to TIM 
Enterprise. Note that the UCM can be configured with cluster wide or 
server specific settings depending on how the system maintainer has 
installed it. Please note that by default CDR records are turned off.</p>

<ol>
	<li>Login to Cisco UCM Administration and choose System, Service Parameters which is located on the left hand side of the screen.</li>
	<li>Select your UCM node from the Server drop down list.</li>
	<li>Select Cisco Call Manager from the Service drop down list.</li>
	<li>In the System section, change the CDR Enabled Flag to true, enable this parameter on all servers in the cluster that you want to log calls for.</li>
	<li>Change the CDR Log Calls with Zero Duration Flag to True (This parameter enables or disables the logging of CDRs for calls which were never connected or which lasted 1 second.</li>
	<li>Click on the Save button.</li>
	<li>Click on the Navigation drop-down list in the top right hand corner and select Cisco Serviceability.</li>
	<li>You may be prompted to login with a user account with Administrative permissions, if so, login with such an account.</li>
	<li>Select Tools then click CDR Management.</li>
	<li>Click Add New button. You will now see the Billing Application Server Parameters window.</li>
	<li>Enter the following parameters:</li>
	<ul>
		<li><b>Host Name/IP Address: </b>The IP address or hostname of the machine running TIM Enterprise.</li>
		<li><b>User Name: </b>as configured within Step 12 e.g. C1sco.</li>
		<li><b>Password: </b>as configured within Step 12 e.g. C1sco.</li>
		<li><b>Protocol: </b>Select FTP or SFTP as configured within Step 12.</li>
		<li><b>Directory Path: </b>Enter /</li>
		<li><b>Remove the tick from Resend on Failure</b></li>
	</ul>
	<li>Now click on the Add button to complete the Billing Server configuration. The UCM node will check that the FTP/SFTP details are correct and will write a test file to the FTP/SFTP directory.</li>
	<li> if it fails you will see the following error message and you should check the FTP or SFTP details.</li>
</ol>

<p>You have now completed the configuration.</p>

NOTE: If you have more than one server in your cluster you must repeat Steps 1 to 5 for each node. This will enable the UCM nodes to start creating CDR records, which are stored on the Publisher Node.