Mitel 5000 SMDR setup and CDR format
This page shows how to get call records out of the Mitel 5000 into Advanced PBX Data Logger: the connection settings, the parser to select and the 9 fields the logger extracts for reports or a database. The settings apply to our logger; other call accounting software may expect a different configuration.
Quick facts
| Item | Mitel 5000 |
|---|---|
| Interface | LAN. The PBX accepts a connection on TCP port 4000; the logger connects to the PBX IP address. |
| Port | 4000 |
| Parser to select | Mitel 5000 |
| Fields extracted | 9 |
| Other Mitel systems | Mitel SX-200D, CS-5000 and Inter-Tel SMDR formats |
| SMDR login handshake (documented) | <Byte_Count><Socket_Type=0x84><Password>0x00 |
| SMDR password location (documented) | Database Programming, System\Sockets |
Settings from the manufacturer's documentation
Taken from Mitel 5000 CP SMDR Connection Guide, Mitel 5000 CP v5.1 Features and Programmming Guide, Mitel CallAccounting InstallationGuide. Values are those stated in the documentation; confirm them against your firmware release.
| Setting | Documented value |
|---|---|
| SMDR TCP socket port | 4000 |
| SMDR login handshake | <Byte_Count><Socket_Type=0x84><Password>0x00 |
| SMDR password location | Database Programming, System\Sockets |
| Listening Port for socket connections | 4000, under System > IP Settings |
| record framing | 80 ASCII characters plus CR/LF |
Switching SMDR output on, as documented
- Select System > Sockets > SMDR and enable the socket, matching the SMDR password configured in Database Programming System\Sockets.
- Verify System > IP Settings has the Listening Port set to 4000 before connecting.
Record format notes
- Normal call record layout: TYP EXT TRUNK DIALED-DIGITS START ELAPSED COST ACCOUNT-CODE, fixed columns, space-separated.
- Two-line header (title/time, then column headers) is sent at connection and at the start of each day.
Configuring PBX Data Logger as a TCP client
Our software should work in the TCP client mode. It means that our software will initiate connection with the PBX and the PBX will work as a server. Add one or several PBX IP addresses here (the IP address of the Mitel 5000). The port number should match the port that you have defined within the PBX (4000 in the example below).
1. Add a new configuration with the TCP data source (if you didn't it before).

2. Configure the TCP settings as shown below.

192.168.1.220
4000
192.168.1.220:4000
Selecting the correct parser for Mitel 5000

Mitel 5000
Mitel 5000
Data items
| Description | Data type | Column name |
|---|---|---|
| Call type | string | CALL_TYPE |
| External | string | EXT |
| Trunk | string | TRUNK |
| Phone | string | DIALED_PHONE |
| Call time | datetime | CALL_TIME |
| Call duration | datetime | CALL_DURATION |
| Call duration (s) | integer | CALL_DURATION_S |
| Cost | float | COST |
| Account | string | ACC |
Reports and a database
Once records arrive, the logger writes them to a text file or to any ODBC database in real time, or hands them to the PBX Reports utility for manual, scheduled and e-mailed reports with a built-in web server. See exporting call log data to a database for the database setup.
Related Mitel systems
Mitel 5000 CPMitel 3300 ICP (Universal)
Mitel CS-5000
Mitel MiVoice Office 400
Mitel SX-200D, CS-5000 and Inter-Tel SMDR formats
All supported PBX systems
Note: Products and companies mentioned here are used only for definition and identification purposes and can be trademarks and/or registered trademarks of the respective companies.
Related topics: Advanced PBX Data Logger
hereCall logging Call accounting SMDR to SQL SMDR Listener Cables and signals