This is for x64 Intel CPU with SSSE4 instructions
To check your CPU type, run: cat /proc/cpuinfo and look for "sse4_1" in the "flags" line then this script works
If your CPU isnt an x64 or have sse4 support, then get your .so file version at: http://asterisk.hosting.lv/
Tested with Asterisk 13.13
wget http://asterisk.hosting.lv/bin/codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so
cp codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so /usr/lib64/asterisk/modules/codec_g729.so
chmod 777 /usr/lib64/asterisk/modules/codec_g729.so
cd /usr/lib64/asterisk/modules/
service asterisk restart
asterisk -vvvvr
core show translation //to check if proper installed