返回列表 發帖

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
複製代碼

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

本帖最後由 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

回復 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

回復 15# bubblestar

My asterisk 1.8 is just using the old 1.6 config files. Overwrite the default settings. So far it is ok but not for IAX. Something need to set.

TOP

deselect utilities at the make menuconfig
You may have missing some libraries

TOP

本帖最後由 ckleea 於 2010-11-7 21:09 編輯

回復 20# 角色

Need to enable gtalk and jabber using your gmail account. I understand google apps account does not work.
After gtalk and jabber works, add a simple dial plan for google voice.

e.g.

[CallingRule_gv]
exten => _813XXXXXXXXXX,1,Dial(gtalk/asterisk/+1${EXTEN:3}@voice.google.com)

TOP

回復 16# ckleea


    I found the problem of IAX is due to Zoiper client. It has two new versions recently. Both have problems in IAX connection. My older file works very well after reinstallation.

TOP

返回列表