Making your own DAHDI Hardware

Hi,

I’m developing a small embedded system that needs to have multiple fxs and fxo ports. But all the hardware I can find is in the form of external modules or cards running on pcie so they really aren’t an option.

Are there any existing chipsets I could interface to the pins of an ARM processor that have DAHDI support? If not how would I go about developing my own? Would it be enough to get something like an AG1171 SLIC (Ag1171 – Silvertel | Power Over Ethernet Modules | Telecom Modules) which has a ring generator pin and an offhook detect pin, connect it up to an audio codec chip, and write a dahdi driver for that?

How would one go about writing a very minimal dahdi driver?

Thanks