http://www.rowetel.com/blog/?p=15

Building an Embedded Asterisk PBX