Hey guys, I am hoping anyone of you can give me some ideas…
I am trying to develop an app that should read the call detail records from a pbx. (In case you don’t know, that is the information provided by a telephone network server) and parse it in order to apply the right charges to the rooms in a hotel.
Most of the pbx’s boxes (panasonic, LG, Goldstar, etc) have a serial port that outputs the data.
But I don’t have a pbx, so I don’t where to start, because I can’t test nor experiment.
It’s the first time I try to write code that talks to ext hardware that I don’t have… and I don’t even know where to start…
I do not think you can reliably develop anything without having a connection to the actual PBX and the full protocol of the device, at least to experiment. Maybe you can get a used PBX box to play with ?
In the ancient times what I did was to use a communication program with an RS-232 interface, plug that into whatever you want to get to, and see what it says. Of course you do need the manual of the PBX to understand what is going on and what you need to send to get the data you need. There are RS-232 adapters that plug in the USB port. I am not too familiar with them, though.
Before you get your hands on the actual device, I would advise you try to get your hands on the specs of communication command codes for a given PBX. It is not sure they all the same BTW.
I think Chris’s answer sounds closer to my actual possibilities… but still I wouldn’t know what to expect from a PBX… that is the problem… I think it’s like a burst of data (could even be human readable) every time a phone call is finished…
Michael, you mean I couldo check in a hyperterminal window the output of the pbx ? I would still need to get my hands in one of those things…
Not even sure it contains what is required, but basically you need to know what the PBX will be expecting through the RS-232 in order to deliver what you are looking for.
This should not be too difficult, IF you know which box you are talking to, and IF you know how to work with Serial protocols and hardware. Each box may have a slightly different protocol. If you’ve never done this, and have zero experience with serial protocols and hardware it may be a challenge (good challenge though).
google: how to read pbx serial output
google: smdr software
I wasted my keyboard’s keys labels typing “Google” “PBX” and “SMDR”.
I am definitely wanting to achieve this… SO I will put some effort on it…
Is it absolutely always required a command for the device to output some data ? I’ve had the idea that the PBX would simply output a certain amount of data everytime it was available (like after a call has been finished)
Actually I see some of these SMDR apps are simply terminal windows that have an extra parsing functinality to process the text data, but looks like the PBX outputs the data in a very neat and readable way…
I think I just need a logger that will write a txt file from that output, and I will write code in XOJO to read and parse that file… maybe hyperterminal works… Is not the most integrated or elegant way… but It might work… wouldn’t ?
Maybe these helps some. i’ve never worked with it, so i can’t really offer much help, but i’ve done plenty of internal loggers and parsers for proprietary hardware we develop,and this pbx stuff looks very similar.
[quote=258764:@Roman Varas]I think Chris’s answer sounds closer to my actual possibilities… but still I wouldn’t know what to expect from a PBX… that is the problem… I think it’s like a burst of data (could even be human readable) every time a phone call is finished…
Michael, you mean I couldo check in a hyperterminal window the output of the pbx ? I would still need to get my hands in one of those things…[/quote]
A long time ago before my company switched to VOIP we had a AT&T PBX with such a serial port that was meant to be connected to a printer. We bought a serial to syslog over ethernet tool that sent the serial communications to a syslog server we had running. A program periodically read the file (it was plain text) and posted it to a database.
PS2_Config is a utility made to configure and test a hardware unit that logs serial connection over ethernet. Comes bundled with a simple PBX emulator. Now I can automatically send messages to a virtual COM port like a real PBX would.