Revision 1.5 - libimf.so and libimf.a notes Revision 1.4 - static linking - compiler optimizations Revision 1.3 - added Intel links - fixed patch command - added notes about build dependencies Step 1a ------- Download the code from Intel cd /tmp wget ftp://download.intel.com/software/products/ipp/downloads/samples/l_ipp-sample-speech-coding_p_4.1.008.tgz wget ftp://download.intel.com/software/products/ipp/downloads/l_ipp_ia32_itanium_p_4_1.tar Step 1b ------- Install Asterisk header files On Debian, just type apt-get build-dep asterisk Specifically, you need the *.h files that come with Asterisk Step 2a ------- Register with Intel See http://www.intel.com/software/products/ipp/ a) register on Intel's site under the 'free non-commercial use' section b) obtain the license number and a license key file c) put the license key file in the place specified by Intel's documentation d) run the installer Step 2b ------- Install IPP libraries. mkdir /tmp/ipp-tmp cd /tmp/ipp-tmp tar xf /tmp/l_ipp_ia32_itanium_p_4_1.tar Follow Intel's instructions to install IPP. If using Debian, the Intel installed will stop half way, leaving a .rpm file sitting in a subdirectory of /tmp. You can install the .rpm file using `alien' and then proceed. Intel's instructions and licensing information (including Open Source version information) are at http://www.intel.com/software/products/ipp/ Once you've installed IPP and agreed to the license terms, you may need to copy the libraries from one PC to another (eg, from your development machine to a production server). You just need to copy the contents of the following directory: /opt/intel/ipp41/ia32_itanium/sharedlib/ without re-running the install process. If you use static linking, you DON'T need to copy the libraries onto every computer where you run the codec. You only need the libraries on the computer where you compile the codec. Step 3 ------ Install IPP sample code cd /usr/local/src tar xzf /tmp/l_ipp-sample-speech-coding_p_4.1.008.tgz Step 4 ------ Apply my patch cd intel1/ipp_sample/speech-coding/G729-float/ patch -p1 < /tmp/g729-041103.diff Step 4a ------- Select compiler optimizations vi Makefile Step 5a ------- If you have icc 8.0 libimf, move intel_cc_80/lib/libimf.so to somewhere out of the way. This will allow you to link libimf.a statically with codec_g729.so Step 5b ------- Build ./build.sh Step 6 ------ Deploy cp bin/codec_g729.so /usr/lib/asterisk/modules (this location depends on your system) If you haven't used static linking (now the default), modify /etc/init.d/asterisk: export LD_LIBRARY_PATH=/opt/intel/ipp41/ia32_itanium/sharedlib:/opt/intel/ipp41/ia32_itanium/sharedlib/linux32:$LD_LIBRARY_PATH You may need to insert the following into your sip.conf: allow=g729 Now restart Asterisk /etc/init.d/asterisk restart Step 7 ------ Verify install At the shell prompt: # asterisk -r At the Asterisk prompt: >show translation If the G.729 column has -'s instead of numbers, then the codec is not working properly.