12-06-2005
350,
5
Join Date: May 2002
Last Activity: 28 March 2014, 4:09 PM EDT
Location: India
Posts: 350
Thanks Given: 0
Thanked 5 Times in 5 Posts
Hmm, this is a very broad level question. The way you connect to the PBX will depend on the protocol that the PBX specifies. whethere linux can do it or not, will depend on the PBX, but generally yes. I suppose PBX will either use serial or TCP connection to the computer. If it supports one of the 2 then the rest is how you decide to get connected. You could write basic c socket layer program and send across info to the PBX and get that info from the PBX. You can then parse this info based on what messaging protocol is setup between you and your PBX.
coming to sample codes, what sample codes do you want? For socket connection there will be plenty on the C forum of this website or in general over the internet. As for parsing you need to first lay out the protocol.
I am working on a PMS that interfaces with many vendors like PBX, keys, GVS etc. We have a huge bunch of software here. and that is why i tell you that yours is a very broad level question