Tuesday, August 30, 2016
3CX Call Data Record CDR output file format
3CX Call Data Record CDR output file format
UPDATE: Refer to my latest article on how to access the 3CX CDR PostgreSQL database directly and extract meaningful call history information from it using SQL. This approach is much better than parsing the CDR output file.
Although 3CX, the most common software PBX for Windows, comes with a few ways for user to generate detailed call reports and usage statistics in various different formats, many advanced users often find the reporting feature inadequate due to the need to generate custom reports which arent supported by default. To do so one would need to retrieve the raw CDR data, either by accessing the call database directly or by analyzing the CDR text files generated by 3CX, and generate their own reports.
Direct access to the 3CX call database
The 3CX database, containing call records and various other PBX settings, is in PostgreSQL format and will be accessible via a PostgreSQL client such as pgAdmin. The authentication credentials can be retrieved from the file 3CXPhoneSystem.ini found in the C:Program Files3CX PhoneSystemBin folder.
Once connected to the server, the 3CX database is located at Servers>3CX>Databases>phonesystem>Schemas>public>tables. Call information is consolidated into 3 tables, namely calldetails, callhistory2, callhistory3. For general call history statistics, records from table calldetails would be sufficient.
Although not officially documented, various online resources describing the database format are available. Refer to this for more information on the database schema.
Interestingly, the credential provided in the 3CXPhoneSystem.ini cannot be used to access other tables in the database. I do not yet know how to access other tables.
Analyzing the CDR text files
If you do not wish to connect to the database, another approach is to read the CDR text files that are generated by 3CX as calls are made. These files are found in the C:ProgramData3CXDataLogsCallHistory folder. (And for those who are interested, the call recordings WAV files, if recording is enabled, are found in C:ProgramData3CXDataRecordings, with recording for each extension saved in a subfolder having the same name as the extension number)
The default format of the CDR output is quite straightforward. Each line in the log file is comma separated and will have at least 8 fields. For each call from the initiating to completion state, several lines will be written to the CDR log file as the call progresses. The description of the fields are below:
Field #0 State of the call. Possible value are Connecting = 1, CallEstablished = 2, PartyAdded = 3, PartyRemoved = 4, PartyChanged = 5, Disconnected = 6, DestNoAnswer = 7, DestIsBusy = 8, DestNotAvail = 9, RecordingInfo = 10
Field #1 The time of the call state change, in the format yyyymmddhhmmss.### where ### is the number of milliseconds
Field #2 History ID of the call on the PBX
Field #3 Internal source number of the call
Field #4 Internal destination number of the call
Field #5 External source number of the call if the call originates from an external number, otherwise, same as Field #3. Or if Field #0 is 10, this field will contain RecON to indicate the start of a call recording, or RecOFF to indicate that recording has been completed.
Field #6 External destination number of the call if the call terminates on an external number, otherwise, same as Field #4. Or if Field #0 is 10, this will contain the path to the recorded wave file.
Field #7 Type of call (1 = voice call, 0 = fax call)
Field #8 (Optional) Any additional information about the call. This is often the name of the 3CX call queue if the call is involved in a queue.
For example the following line
Blog Archive
-
▼
2016
(1002)
-
▼
August
(1001)
- Happy Holi
- Bugs in Translated version
- Atasi masalah “The procedure entry point except ha...
- Delight Belle v3 6 released on 06 12 2011 Minor Bu...
- KeepVid Free for personal use Windows Web Cloud
- Menampilkan Menu Hibernate di Windows 8
- DELL Inspiron 17 5749 Windows 10 64bit drivers
- Aplikasi Homescreen Keren Untuk Smartphone Android
- DELL XPS 15 9550 Windows 7 64bit Drivers
- Christmas Present Next update
- Delight v4 1 will be published on
- Dell Inspiron 15 3520 Windows 8 1 64bit drivers
- X7 Delight v1 0
- Wondershare Filmora 6 7 0 42 Full Terbaru
- Ainol Nova 10 Hero Android USB Driver For Windows ...
- DELL Vostro 14 3458 Windows 8 1 64bit drivers
- DELL Vostro 14 3459 Windows 8 1 64bit Drivers
- Download MTK Droid Tool all versions
- Brother HL 1110 Driver Download
- Download Driver Acer Aspire V5 431 Win 8
- Amoi N821 USB Driver For Windows Xp 7 8 32Bit 64Bit
- Canon PIXMA MP210 Driver Download
- Transferring SMS messages from Windows Mobile to B...
- Ainol Novo 7 Myth USB Driver For Windows Xp 7 8 32...
- DELL Inspiron 11 3162 Windows 10 64bit drivers
- WinRAR 5 11
- MediaCoder Free with limited functionality Mac Win...
- Ainol Novo 7 Eos USB Driver For Windows Xp 7 8 32B...
- Jamendo Free Web Cloud Android iPhone Blackberry
- Samsung SL M2675FN Driver Download
- Ainol Novo 7 Aurora USB Driver For Windows Xp 7 8 ...
- Photoshine v 4 Full Version Patch dan Serial Number
- Ableton Live Commercial Mac Windows
- Download IDM Terbaru IDM versi 6 19 Build 9
- Cara Mudah Blockir Program dengan Firewall
- Download AutoCAD 2010 Full Version IDWS
- Cara Aktivasi Windows 8 Pro Via Telepon
- DELL Latitude 3460 Windows 7 64bit Drivers
- Pageone v2 Blogger Template
- Cara mengatasi Error 0xc0000001 saat Install Win 8...
- Situs Download Game Gratis
- Roman&"
- HP Officejet Pro 8100 Driver download
- Dell Alienware 18 Windows 10 64bit Drivers
- Ainol Nova 10 Hero USB Driver For Windows 7 Xp 8 3...
- Download Office 2013 Costomer Preview New
- Ramai Blogger Template
- HTML5 Resources Demos and Tutorials
- DELL Inspiron 13 7359 Windows 10 64bit drivers
- hp Deskjet 600c Printer Driver Download
- Cara Membuat COC Tetap Aktif Online Sehingga Aman ...
- Ainol Novo 7 Legend Tablet USB Driver For Windows ...
- Apex Advance HD USB Driver For Windows 7Xp8 32Bit ...
- Spice Smart Flo Edge Mi 349 USB Driver For Windows
- Hack Idhostinger
- Brother MFC J4620DW Driver Download
- Octave Aplikasi Open Source Image Processing
- DELL Inspiron 15 5557 Windows 10 64bit drivers
- Dell Inspiron 15 3531 Windows 10 64bit drivers
- DELL Inspiron 11 3157 Windows 10 64bit Drivers
- DELL Inspiron 14 5455 Windows 10 64bit Drivers
- Download Office 2013 Pro Plus versi RTM x86 Mediaf...
- Windows Repair Pro 1 9 14 Final Full Version
- DELL Latitude E7450 Windows 10 32bit drivers
- DELL Latitude 11 5175 2 In 1 Windows Tablet 10 64b...
- Aktivasi Office 2013 OffLine dengan mengconvert da...
- MuseScore Open Source Mac Windows Linux BSD
- DELL Precision 7710 Windows 8 1 64bit drivers
- Porting Delight for C7 Postponed Cancelled
- DELL Latitude 3150 Windows 10 64bit drivers
- DELL Latitude 3470 Windows 8 1 64bit Drivers
- IDM Terbaru Versi 6 19 Build 2 Final Full Version
- Driver AVR910 for x86 x64
- HP G60 104XX windows XP Driver Download
- hp LaserJet 8100 Printer Driver Download
- Download Game Flash Ringan WarLords 2 Rise Of Demons
- Canon PIXMA MG3550 Driver Download
- Download Windows 10 Skin Pack For Windows 7 8 8 1
- Tutorial Adobe Photoshop CS Lengkap
- fre ac Open Source Mac Windows Linux BSD
- XML
- Cara Membuat Akun Gmail 2014
- Tips Memilih Spesifikasi Komputer Game
- Cara Mengetahui Siapa Yang Melihat Facebook Kita
- Dell Alienware 13 R2 Windows 8 1 64bit Drivers
- HP nr3600 Windows XP Driver Download
- Canon PIXMA MG5620 Driver Download
- Cara Main Game Gta San Andreas Di Notebook
- DELL Vostro 14 5480 Windows 10 64bit drivers
- Canon PIXMA MG2510 Driver Download
- Cara Bootable Flashdisk Untuk Menginstall Windows
- Cara Menghilangkan Goresan Pada Ponsel
- Cara Menggabungkan Video Dengan Gom Player
- Cara Membuat Kotak Script Dengan Sroll Di Blogger
- 3CX Call Data Record CDR output file format
- SharePod Free with limited functionality Windows
- hp Designjet 220 Printer Driver Download
- Sneak Preview of next version D
- Acer Aspire 5740 Windows Xp Drivers Download
- Download Subway Surfers For PC
-
▼
August
(1001)