Configuring Connection Data for the CDR Server
This section describes the connection data for the CDR server on the PBX.
Context
The CDR data generated for voice service is stored to the internal CDR pool on the PBX. Because the CDR pool capacity is limited, connect the PBX to the CDR server. Otherwise, CDRs are lost when the CDR pool is full or the PBX is powered off. The data in CDR pool can be saved to the CDR server through the CDR interface, or saved to the FTP/SFTP server in binary format or txt format. Figure 2-68 shows the networking.
The PBX and CDR server must be deployed on a trusted network. Otherwise, there will be security risks.
Visit https://support.huawei.com/enterprise and download the software package eSpace ECS.
The PBX can connect to the following CDR server through either of the following protocols:
- TCP: The PBX transfers the CDRs to the CDR server through TCP. The corresponding CDR format is UCBILL.
- FTP/SFTP: The PBX transfers the CDRs to the FTP/SFTP server through FTP/SFTP. The third-party systems or billing centers can obtain CDR information from the FTP/SFTP server. The corresponding CDR format is CDR for CC08, SOFTX for SOFTX3000, or MINI if only CDRs are required but billing process is ignored.
UCBILL, CDR, and SOFTX are the binary CDR format, and MINI is the txt CDR format.
For the call restriction policy used when the CDR pool is approximately full (90%), see Configuring Call Limiting When the CDR Pool Is Full.
Prerequisites
- The work mode of the device has been set to PBX. For how to configure the work mode of device, see Configuring a Device to Work in PBX Mode.
- The read, write, and overwrite permissions have been granted to the login account of the PBX when FTP/SFTP is used to transfer CDRs.
Providing CDRs through TCP
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
Enter the CDR server view. |
cdr-server |
- |
4 |
Configure the IP address and port number of the CDR server. |
server ip ip-address port port-number |
The default server port number is 21. |
5 |
(Optional) Configure the user name and password. |
username username password cipher cipher-password |
The user name and password must be consistent with those on the CDR server. NOTE:
If no user name or password is configured, the system uses anonymous user name and password for login. The anonymous user name and password are anonymous and user@anonymous.com, respectively. |
6 |
Configure the CDR format. |
bill format format-value |
For the TCP protocol, the CDR format is UCBILL. NOTE:
|
7 |
(Optional) Configure the CDR output information. |
bill textfield index |
- |
8 |
(Optional) Return to the voice view. |
quit |
- |
9 |
(Optional) Configure the CDR local storage adaptation. |
pbx number-parameter 85 value |
Enumerated type. The value is 0 or 1.
The default value is 0. |
10 |
Save the configuration. |
save |
- |
Providing CDRs through FTP/SFTP
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
Enter the CDR server view. |
cdr-server |
- |
4 |
Configure transfer mode. |
bill transfertype { FTP | SFTP } |
The default transfer mode is SFTP. |
5 |
Configure the IP address and port number of the CDR server. |
server ip ip-address port port-number |
The default server port number is 21. |
6 |
Configure the user name and password. |
username username password cipher cipher-password |
The user name and password must be consistent with those on the FTP/SFTP server.
NOTE:
Enable the FTP/SFTP CDR server to ensure that all CDRs are saved. |
7 |
Configure the CDR format. |
bill format format-value |
When FTP/SFTP is used, the CDR formats include:
|
8 |
(Optional) Configure the CDR output information. |
bill textfield index |
- |
9 |
(Optional) Return to the voice view. |
quit |
- |
10 |
(Optional) Configure the CDR local storage adaptation. |
pbx number-parameter 85 value |
Enumerated type. The value is 0 or 1.
The default value is 0. |
11 |
Save the configuration. |
save |
- |
Example
When the PBX uses TCP to transfer CDRs to the CDR server, the connection data for the CDR server is configured as follows: (Assume that the CDR server IP address is 192.168.1.14, port number is 2020, and CDR format is UCBILL.)
<Huawei> system-view [Huawei] voice [Huawei-voice] cdr-server [Huawei-voice-cdr-server] server ip 192.168.1.14 port 2020 [Huawei-voice-cdr-server] bill format UCBILL [Huawei-voice-cdr-server] save
When the PBX uses FTP/SFTP to transfer CDRs to the CDR server, the connection data for the CDR server is configured as follows: (Assume that the CDR server IP address is 192.168.1.15, port number is 21, FTP user name and password are admin and huawei123, and CDR format is CDR.)
<Huawei> system-view [Huawei] voice [Huawei-voice] cdr-server [Huawei-voice-cdr-server] bill transfertype FTP [Huawei-voice-cdr-server] server ip 192.168.1.15 port 21 [Huawei-voice-cdr-server] bill format CDR [Huawei-voice-cdr-server] username admin password cipher Please input user password(1-15 chars):********* [Huawei-voice-cdr-server] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the connection configuration between PBX and CDR server. |
display voice cdr-server |
The parameter values in the command output are consistent with the settings. |