Here is a link to a doc I wrote to get your freepbx based pbx working, this works on trixbox, pbxinaflash, elastix and others.

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