返回列表 發帖

Compiling Asterisk 1.8 on Centos 5.5 32/64 bits

本帖最後由 ckleea 於 2010-10-30 16:46 編輯

Just come across
http://astrecipes.net/index.php?n=398

Compile Asterisk 1.8 with iCal, GTalk, SNMP, MySQL, cURL and DAHD

This site describes how to compile in 64 bits linux.

I have modified to 32 bits. Gtalk can now work.
I
  1. yum install gcc-c++ make gnutls-devel kernel-devel
  2. yum install libxml2-devel ncurses-devel subversion doxygen texinfo
  3. yum install curl-devel net-snmp-devel neon-devel
  4. cd /usr/src
  5. wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.4.0+2.4.0.tar.gz
  6. tar zxvf dahdi-linux-complete-2.4.0+2.4.0.tar.gz
  7. cd dahdi-linux-complete-2.4.0+2.4.0
  8. make
  9. make install
  10. [color=Red]make config[/color] ; missing from site.
  11. cd ..
  12. http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12-beta2.tar.gz
  13. tar zxvf libpri-1.4.12-beta2.tar.gz
  14. cd libpri-1.4.12-beta2
  15. make
  16. make install
  17. cd ..
  18. rpm -Uvh http://dl.atrpms.net/all/libiksemel3-1.4-2_2.el5.i386.rpm
  19. wget http://sourceforge.net/projects/freeassociation/files/libical/libical-0.44/libical-0.44.tar.gz/download
  20. tar zxvf libical-0.44.tar.gz
  21. cd libical-0.44
  22. ./configure --enable-shared
  23. make
  24. make install
  25. cd ..
  26. wget http://launchpad.net/rubber/trunk/1.1/+download/rubber-1.1.tar.gz
  27. tar zxvf rubber-1.1.tar.gz
  28. cd rubber-1.1
  29. ./configure
  30. make
  31. make install
  32. cd ..
  33. wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.0.tar.gz
  34. tar zxvf asterisk-1.8.0.tar.gz
  35. cd asterisk-1.8.0
  36. ./configure
  37. make menuselect
  38. make
  39. #this is ony for format MP3 - SVN required
  40. contrib/scripts/get_mp3_source.sh
  41.   
  42. make install
  43. make samples
  44. make progdocs
複製代碼

How was the result? Are you able to make it work?

YH

TOP

Apparently works. I just install in VM. Need to add more modules before real test. But looks better when  is in CLI. c.f. rpm methods

TOP

本帖最後由 ckleea 於 2010-10-30 11:45 編輯

Still have errors in the GUI and DADHI
DADHI errors fixed. Forgot to make config after make install
Same for asterisk

TOP

Updated. It works in APL. No GUI at the moment. I duplicate my IP01 setting into asterisk 1.8.

TOP

本帖最後由 bubblestar 於 2010-10-30 13:18 編輯

Speaking of installation on 64 bits system, it seems we may encounter problem for getting codec g723 and g729 as there are no ready-made codec for ATOM computer.  I had tried to get them for my ATOM-Based Asterisk 1.4 or 1.6 but failed.   I finally turned back to 32 bits for the time being.

Do you know whether these codecs are already included in Asterisk 1.8 or not ??

TOP

本帖最後由 ckleea 於 2010-10-30 19:24 編輯

Not yet, just start to make it works. I only install 32 bits.

See my first post, keep updating.

Now Gtalk work.
  1. ast18*CLI> module load chan_gtalk.so
  2. Loaded chan_gtalk.so
  3.   == Parsing '/etc/asterisk/gtalk.conf':   == Found
  4.   == Registered RTP glue 'Gtalk'
  5.   == Registered channel type 'Gtalk' (Gtalk Channel Driver)
  6. Loaded chan_gtalk.so => (Gtalk Channel Driver)

  7. JABBER: asterisk INCOMING:

  8. JABBER: asterisk INCOMING:
複製代碼

TOP

本帖最後由 ckleea 於 2010-11-3 22:00 編輯

Another  update, as brave as bubblestar, I upgrade my asterisk 1.6.2.12 to a compiled version of asterisk 1.8. The GUI works as well.

Everything seems ok though some errors seen in the log. I put in g723 and g729 codec as well

screenshot.9.jpg (213.48 KB)

screenshot.9.jpg

screenshot.8.jpg (74.43 KB)

screenshot.8.jpg

TOP

Google voice works.

TOP

Google Voice can be used and dialed directly from hardphone? Congratulations!  you did it.

TOP

回復 10# bubblestar


    Yes, it calls and when you are in voice.google.com, you can see the dial history.

TOP

回復 6# bubblestar


    I use 32 bits for my ATOM server. G729 and g&23 codecs loaded as before. But not yet tested.

TOP

Manual of asterisk 1.8 attached for those interested.

asterisk.pdf (899.16 KB)

Asterisk 1.8 Manual

TOP

Another  update, as brave as bubblestar, I upgrade my asterisk 1.6.2.12 to a compiled version of ast ...
ckleea 發表於 2010-11-3 21:55



    ip01里的code可否直接移到atom的asterisk用?

TOP

據 ckleea 兄所講,是可以的。我仲未試過,他有經驗,稍後我都會嘗試一下,可以的話就一定非常方便,無需再為每一個系統作相同的設定。

TOP

返回列表