Installing the free G729 Codec for Asterisk

May 28th, 2010 Ahmed El Gamil No comments

This tutorial will let you install the G729 Codec on an Asterisk installation in under 5 minutes.

cd /usr/lib/asterisk/modules

Download the codec

[root@Machine modules]# wget http://asterisk.hosting.lv/bin/codec_g729-ast14-gcc4-glibc-pentium.so

Notice that we are in the modules directory

Rename the codec file

mv codec_g729-ast14-gcc4-glibc-pentium4.so codec_g729.so

Restart Asterisk

/etc/init.d/asterisk restart

Check your work

Connect to Asterisk

asterisk -r

Then show all of the codec translations available using the command below, and check g729 at the left, you should see that it can be translated to many other codecs on the top of the table

Machine*CLI> show translations

         Translation times between formats (in milliseconds) for one second of data

          Source Format (Rows) Destination Format (Columns)

          g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722

     g723    -   -    -    -        -     -    -     -    -     -    -    -    -

      gsm    -   -    2    2        2     2    1     2    3     -    -    2    -

     ulaw    -   3    -    1        2     2    1     2    3     -    -    2    -

     alaw    -   3    1    -        2     2    1     2    3     -    -    2    -

 g726aal2    -   3    2    2        -     2    1     2    3     -    -    2    -

    adpcm    -   3    2    2        2     -    1     2    3     -    -    2    -

     slin    -   2    1    1        1     1    -     1    2     -    -    1    -

    lpc10    -   3    2    2        2     2    1     -    3     -    -    2    -

     g729    -   3    2    2        2     2    1     2    -     -    -    2    -

    speex    -   -    -    -        -     -    -     -    -     -    -    -    -

     ilbc    -   -    -    -        -     -    -     -    -     -    -    -    -

     g726    -   3    2    2        2     2    1     2    3     -    -    -    -

     g722    -   -    -    -        -     -    -     -    -     -    -    -    -

Machine*CLI> quit

Troubleshooting

If you didn’t see the codec translation as mentioned above then probably you downloaded the wrong codec, please check again the points mentioned during downloading the codec, you can use the following commands to help you:

asterisk -V

uname -a

Twitter Weekly Updates for 2010-05-27

May 27th, 2010 Ahmed El Gamil No comments
Categories: /dev/random Tags:

Twitter Weekly Updates for 2010-05-20

May 20th, 2010 Ahmed El Gamil No comments
Categories: /dev/random Tags:

Twitter Weekly Updates for 2010-05-13

May 13th, 2010 Ahmed El Gamil No comments
  • كسر حاجز التحدى مش فى كل الاوقات بيكون كويس .. #
  • RT @standaloneSA: If you're an engineer or architect, then documentation *IS* your output – Brian K Jones #PICC10 #
  • RT @josephkern Hi Ho! Hi Ho! It's off to the datacenter we go! Do the computers run? Then our work is done! Hi Ho! Hi Ho Hi Ho Hi Ho! #
  • انا بفتحه على شاشة منفصلة ! RT @abdulla_79: إن اطلعت على بريدك الإلكتروني مرة كل خمس دقائق فهذا يعني أنك ستكرر ذلك 24 ألف مرة في العام #
  • RT @AlSayedGaMaL: اللهم أشف أخت أيمن طاهر شفاء لا يغادر سقما و إشفنا و أشفي مرضي المسلمين و فرج كربه و كرب كل المسلمين يا رب العلمين. #
  • Heading to Cairo .. #
  • RT: @keepondev: اللهم إنى أسألك علما نافعا و رزقا طيبا و عملا متقبلا و شفاء من كل داء #
  • May be i will give Ubuntu 10.04 NE a try, With the Unity desktop .. #
  • الشغلانة دى مش سهلة #IT #KnowledgeWorkers ! #
  • الشغلانة دى مش سهلة #IT #KnowledgeWorkers #Sysadmin ! #
  • طيب الواحد لو حب "يتمشى" فى مدينة نصر .. يروح فين يعنى .. عايز اشم نفسى و افكر .. فين كورنيش اسكندرية ! #
  • RT @nixcraft: http://io9.in/61 Mac OS X Read ext3 / ext4 External USB Hard Disk Partition #
  • One day you will have to move .. #
Categories: /dev/random Tags:

Twitter Weekly Updates for 2010-05-06

May 6th, 2010 Ahmed El Gamil No comments
  • Configure inband DTMF for X-Lite http://www.meshwalk.com/?p=10 #
  • RT @MarwaFahmy: يارب اجعلنا من الراضين بما قسمته لنا #
  • Guys, Please stop posting ALL of your #twitter updates into #LinkedIn it is very noisy !, use the #In hash tag if you want to .. #
  • حتى ادهم صبرى طلع عنده حساب على الكيس بوك ده ! #
  • Are you aware of a public NTP server that is updated with the "manual" time changes in #Egypt ?, Please advise or RT #
  • Giving #Photography a shot .. #
  • I have discovered most of electronics stores in #Egypt are using Asterisk ! Every time i call i hear the famous Music on Hold, Am i wrong ? #
  • و الدنيا متستحقش كل ده .. عشان كده اسمها "دنيا" .. #
  • RT: @mzaian: http://goo.gl/WlYV #eglug #ubuntu-eg Arabic is only 61% we need more contribution PLZ RT #
  • LOL RT: @KarimAllahAhmed: كل سيجاره بتشربها بتاخد من عمرك دقيقتين ، و تويتر بياخد الباقي :) #
  • Memory usage analysis http://ktown.kde.org/~seli/memory/analysis.html #
  • RT: @linuxawy: I'll be a speaker isA in CAT Scope 11 about "Virtualization and cloud computing" http://ping.fm/ffxEh #
  • RT: @fedora_linux:we'll have a Fedora IRC classroom session on the exciting new features in Fedora 13: http://ow.ly/1GlTa #
  • Revolution in progress … #
  • A train station is where the train stops. A bus station is where the bus stops. A work station is …. #
  • RT: @backtracklinux: BT4 r1 Dev in a few days – Kernel 2.6.34-rc6. Will need testers. Plz RT http://tinyurl.com/37mwdq9 #
  • RT: @builddoctor: [Blog] Git for Sysadmins – Stephen Nelson-Smith http://bit.ly/a0obfl #
  • True ! RT: @slyall: "Facebook is the people you went to school with. Twitter is the people you wished you went to school with." #
Categories: /dev/random Tags: