How to install g729 codec on FreePBX v12?

Try following the instructions here:
http://kb.digium.com/articles/Configuration/How-do-I-register-a-G729-license