Discussion Locked

How to capture call records from a PBX

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How to capture call records from a PBX, I am trying to develop a call accounting software and need to know of the PBX sends the records directly to the PC through a cable and if yes, where can I find these records?

1 reply

by epepke

It depends on the PBX.

I worked on a system to analyze call traffic for the Federal Emergency Management Agency to monitor their disaster simulations in house. The PBX they were using sent information on calls over an RS-232 line. We used a dedicated PC running a terminal emulator program to capture the data and then sent it to the analysis machine. The next step would have been to put an IP-accessable server on that machine, but the funding ran out.

You are probably going to have to write your own code to get the records over the RS-232 line. It may be sufficient to open the COM1: or COM2: line as a file and read from it (on a PC). You will have to make sure that the baud rate and start and stop bits are correct. If you are using Unix, the drivers are in the /dev directory. It is not as difficult as it sounds: reading RS-232 works mostly like reading a file, only in a single-threaded application where you don't want to block, you should check for availability of the databefore reading. If you're doing, say, a multithreaded Java application, you don't even really need to do that: just read in a separate thread and update a common object using synchronized methods.

The PBX we used had a simple, single-line formatfor each instance of starting and ending a call. You'll have to get with the manufacturer of your PBX to determine the format.

This discussion is closed to new replies.