My own knowledge of this is many years out of date, but I have to backup markwild's recommendation for hardware. I've found Dialogic boards to be wonderful, if expensive. Mind you, this is over 5 years out of date, so take it for what it's worth. They had C APIs back then to their device drivers, which perhaps you could imbed calls to them.