Here is a link to a tutorial I wrote for my customers to configure systems like trixbox, pbxinaflash, elastix and other pbx systems that are using freepbx.

http://www.voipmyway.com/docs/voipmyway_asterisk.pdf