# Avaya Session Manager Call Statistics
The ServicePilot Avaya Session Manager Call Statistics package collects information for Avaya Session Managers.
The Avaya Session Manager Call Statistics package will configure the ServicePilot Agent to collect CDRs using SFTP from the SM. These details are used as the basis for call statistics.
Network Flows - It is necessary to ensure network connectivity between ServicePilot and the monitored device. In case of a network infrastructure with a firewall, all of the following flows must be opened:
- ServicePilot Manager Web server access (by default TCP/80 when using HTTP or TCP/443 when using HTTPS although this port is configurable): Between ServicePilot Agent and ServicePilot Manager
- TCP/22 (SSH-SFTP): Between ServicePilot Agent and Avaya Session Manager management IP address
Third Party Configuration
- Configure Avaya SIP terminals to send RTCP to the ServicePilot Agent IP address on port 5005 in the System Manager's 'VoIP Monitoring Manager' settings
- Configure the Session Manager to collect and make available CDR records in the 'Enhanced Flat File' format with 'User to User Calls' and 'Incomplete Calls'
- See Avaya Application Notes for details
- ServicePilot Manager minimum version: 8.5
- ServicePilot Agent minimum version: 8.5 installed and configured
- A Avaya RTCP Call Quality package imported into the configuration for the ServicePilot Agent
- A Call Quality by Zone Or Network package imported into the configuration for the ServicePilot Agent
Before adding a resource to monitor, make certain that all pre-requisites are in place and if a ServicePilot Agent is required, that it is communicating correctly with the ServicePilot Manager.
Add resource using Views Configuration web interface
- As an administrative user of ServicePilot, open the ServicePilot web interface.
- Navigate to Administration. The Configuration > Views web page will open.
- Click on the view in which to place the new resource in the Views hierarchy on the left of the interface. The View editor section will show the existing view contents.
- From the Packages list on the right of the interface, click and drag the voip-avaya-session-manager-call-statistics package into the View editor and let go.
- The Package properties dialog box will open to allow resource configuration.
- Click OK to close the Package properties dialog box. Note that the dialog box will not close if required parameters are not set.
- Click Save to apply the new resource to ServicePilot configuration.
Key field notes
In the Monitoring Policies tab, specify the policy or policies to apply to the package
Basic Parameters tab:
- IP address: Specify the IP address of the Avaya Session Manager, as resolvable by the machine on which ServicePilot Manager is running
CDR Monitoring tab:
- Customer Name (matching Avaya VoIP Customer Name): If ServicePilot has been set up in multi-tenant environment, then the customer name is to be presented here, otherwise this field is to be left blank.
- SFTP Password: Specify the password to access the SFTP to download the CDRs.
- Delete downloaded CDRs: tick to delete the downloaded CDRs afterwards.
- External extension pattern: A pipe separated list of Like Operator patterns to Specify an extension as external to the enterprise. Starting the list with an ! will reverse the meaning, so then list internal extensions instead (Default: 0|+). See the Like Operator (Visual Basic).
- Mask Extensions: tick to enable extension masking.
- Number of trailing digits to mask: Specify the number of trailing digits to mask.
- Length of number...: Specify the length of the number before digit masking takes effect.
ServicePilot does not support the extended CDR formats of the Avaya Session Manager.
If too many attempts are made by ServicePilot to connect using SSH-SFTP to the Avaya Session Manager with an incorrect password then the Session Manager will block further connection attempts even if the password is corrected. Use a root login on the Avaya Session Manager to run commands to reset the incorrect password connection tally.
``` pam_tally2 --user CDR_User pam_tally2 --user CDR_User --reset ```