返回列表 發帖

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

因为最近非常忙(主要都是写program工作),所以白天不能上来,不过,看到Asterisk 1.8可以做GV,那么我可 ...
角色 發表於 2010-11-7 19:00



    我配左一部PC  用的是技嘉N230底板  本来打算是用来做路由器用的,但是因为装左海蜘蛛软路由之后,效果并不理想,虽然可以将两条ADSL的速度提升双倍,但是只是在多线程软件中起到作用,用QQ或IE上传或download野时,都系单条ADSL的速度   

所以我就用来装asterisk用了

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

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

我在想,在GV怎样才可以disable caller ID呢?

角色

TOP

因为最近非常忙(主要都是写program工作),所以白天不能上来,不过,看到Asterisk 1.8可以做GV,那么我可能计划,买一台PC(Gigabyte D525 + Case + Hard disk 40G + Analogue cards (2 FXS, 2FX0)。

角色

TOP

回復 20# 角色


Asterisk 1.8 好似已經內置及提供此功能了,還有GTALK呢!  所以大家現在都想先睹及先試用為快。

呢度都有提到 Asterisk 1.8 and Google Voice

角色兄,你好嘛!  要多D來開咪講下野先至得啦,沒有你在的日子,少咗好多熱烈討論氣氛。

TOP

Google voice works.
ckleea 發表於 2010-11-3 22:53


How can you do it?

YH

TOP

Haven't select Compiler Flags&Module Embedding...
And complete install~

But DADHI also cannot install...

GUI also have problems...

TOP

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

TOP

我去到make install不成功...
  1. CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
  2. make[1]: Entering directory `/usr/src/asterisk-1.8.0/menuselect'
  3. make[1]: `makeopts' is up to date.
  4. make[1]: Leaving directory `/usr/src/asterisk-1.8.0/menuselect'
  5.    [LD] aelparse.o aelbison.o pbx_ael.o hashtab.o lock.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o -> aelparse
  6. lock.o: In function `__ast_rwlock_trywrlock':
  7. /usr/src/asterisk-1.8.0/utils/lock.c:1339: undefined reference to `ast_bt_get_addresses'
  8. lock.o: In function `__ast_rwlock_tryrdlock':
  9. /usr/src/asterisk-1.8.0/utils/lock.c:1273: undefined reference to `ast_bt_get_addresses'
  10. lock.o: In function `__ast_rwlock_timedwrlock':
  11. /usr/src/asterisk-1.8.0/utils/lock.c:1173: undefined reference to `ast_bt_get_addresses'
  12. lock.o: In function `__ast_rwlock_timedrdlock':
  13. /usr/src/asterisk-1.8.0/utils/lock.c:1073: undefined reference to `ast_bt_get_addresses'
  14. lock.o: In function `__ast_rwlock_wrlock':
  15. /usr/src/asterisk-1.8.0/utils/lock.c:959: undefined reference to `ast_bt_get_addresses'
  16. lock.o:/usr/src/asterisk-1.8.0/utils/lock.c:845: more undefined references to `ast_bt_get_addresses' follow
  17. collect2: ld returned 1 exit status
  18. make[1]: *** [aelparse] Error 1
  19. make: *** [utils] Error 2
複製代碼
不知是甚麼問題...重覆試過數次也不行...
還在試...

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

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

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

Manual of asterisk 1.8 attached for those interested.

asterisk.pdf (899.16 KB)

Asterisk 1.8 Manual

TOP

返回列表