Raspberry pi suitable FXS/FXO circuit schemes?

I want to add fxs and fxo capability to raspberry pi. Is there any open sourced fxs/fxo tested circuit and driver for raspberry pi and asterisk?

No, buy grandstream ht503, has one fxo port and one fxs that can be used with asterisk.