Remove FreePBX. Most of your problems are through trying to work round FreePBX.
Remembering that Asterisk Extension is closer to FPBX virtual extension, and FPBX extensions are normally Asterisk devices, you may only need one line of dialplan, consisting of a single Asterisk extension that runs the Record application, with a filename based on the extension number (i.e. DID digits) and the time).
If you want to insist on using FreePBX use http://community.freepbx.org/
for peer support.