返回列表 發帖

我是用這個Compile Asterisk 1.8 的

我是用這個Compile Asterisk 1.8 的,希望大家有用。

根據各位不同的需要,可能不需要yum install 太多以下東西:
  1. yum -y install gcc gcc-c++ libxml2-devel ncurses-devel
  2. yum -y install openssl-devel mysql-devel sqlite-devel unixODBC-devel libtool-ltdl-devel
  3. yum -y install freetds-devel libvorbis-devel alsa-lib-devel bluez-libs-devel curl-devel libtiff-devel  libssl-dev
  4. yum -y install libusb-devel gmime-devel net-snmp-devel flex bison lua-devel subversion
  5. yum -y install make gnutls-devel gnutls-utils kernel-devel newt-devel mlocate lynx tar wget nmap
  6. yum -y install bzip2 mod_ssl crontabs vixie-cron libxml2 texinfo neon neon-devel


  7. # for Gtalk support
  8. cd /usr/src
  9. wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz
  10. tar zxvf iksemel-1.4.tar.gz
  11. cd iksemel-1.4
  12. ./configure
  13. make && make check && make install
  14. ldconfig -p | grep semel
  15. echo "/usr/local/lib" >> /etc/ld.so.conf.d/iksemel.conf
  16. ldconfig
  17. ldconfig -p | grep semel
  18. cd ..

  19. # install dahdi
  20. wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
  21. tar zxvf dahdi-linux-complete-current.tar.gz
  22. cd dahdi-linux-complete-2.4.0+2.4.0
  23. make && make install && make config
  24. chkconfig dahdi on
  25. service dahdi start
  26. cd ..

  27. #If you are using E1 cards you need to install LIBPRI.
  28. wget http://downloads.asterisk.org/pub/telephony/libss7/libss7-1.0.2.tar.gz
  29. tar zxvf libss7-1.0.2.tar.gz
  30. cd libss7-1.0.2
  31. make && make install
  32. cd ..

  33. wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.12-beta3.tar.gz
  34. tar zxvf libpri-1.4.12-beta3.tar.gz
  35. cd libpri-1.4.12-beta3
  36. make && make install
  37. cd ..

  38. rpm -ivh http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/epel/5/i386/libical-0.43-4.el5.i386.rpm
  39. rpm -ivh http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/epel/5/i386/libical-devel-0.43-4.el5.i386.rpm

  40. cd ..

  41. #optional; If you also want to build the PDF manual (but you don't need to, you will need an optional tool called rubber that compiles Latex into a PDF
  42. wget http://launchpad.net/rubber/trunk/1.1/+download/rubber-1.1.tar.gz
  43. tar zxvf rubber-1.1.tar.gz
  44. cd rubber-1.1
  45. ./configure && make && make install
  46. cd ..

  47. #install asterisk
  48. wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8.1.1.tar.gz
  49. tar zxvf asterisk-1.8.1.1.tar.gz
  50. cd asterisk-1.8.1.1
  51. ./configure
  52. #this is only for format MP3 - SVN required
  53. contrib/scripts/get_mp3_source.sh
  54. contrib/scripts/get_ilbc_source.sh
  55. make menuselect
  56. make
  57. make install
  58. make samples
  59. make progdocs
  60. make config
  61. make install-logrotate

  62. chkconfig asterisk on
  63. service dahdi start
  64. service asterisk start
複製代碼

回復 1# bubblestar

What is your status of Calendar? Are you able to load the google calendar?

TOP

Not yet !  Still studying the setup instructions.

TOP

If you properly  set up, in CLI, calendar show calendars will show up proper entry

TOP

本帖最後由 bubblestar 於 2011-1-5 15:20 編輯

成功利用Google Calendar 在 Asterisk 1.8 之下使用 Wake up Call.  

先在網上的Google Calendar 隨便設定一個約會或什麼東西也可以。記著要剔取Alarm 或 Reminder,當時間一到,Asterisk 1.8 Server 即刻會致電給你作為提示,其中一個用途可當作Wake up call,貪睡的朋友或在公司蛇王的朋友,到時到候它會提你起身啦

/etc/asterisk/calendar.conf

[myGoogleCal]
type = caldav
url = https://www.google.com/calendar/ ... e@gmail.com/events/
user = your_username@gmail.com
secret = your_top_secret_password
refresh = 15
timeframe = 60
autoreminder = 10
channel = SIP/6688
waittime = 30
app = Playback
appdata = this-is-yr-wakeup-call       ; 這裡如果選擇播放音樂檔應該沒有問題。

TOP

One naive question. I am unable to use SIP/exten. Instead I can use Local/exten. Do I need to register every extension in the sip.conf. A

TOP

In my case, SIP/exten is one of the real registered extension in the sip.conf.  

I have not tried Local/exten, so no ideas about that.  Is "Local" one of your context in extension.conf or sip.conf?  
I think the point is your designated extension must be reachable and can get the incoming call through ringing.

TOP

用了此功能,偷懶的朋友也可以變成看似忙碌的員工了。只要在Google Calendar 設定好時間,咁樣便經常會有電話找大家。 真亦假時,假亦真,老板們真係多得呢個功能唔少啦!

TOP

回復 6# ckleea


    It seems Local/Channel is a new feature introduced in Asterisk 1.8.  

    http://ofps.oreilly.com/titles/9780596517342/ch10.html#id3174771

TOP

回復 9# bubblestar


    I have no problem but from time to time, if I use Dial (SIP/{exten}), sometimes it does not work

TOP

本帖最後由 bubblestar 於 2011-1-7 15:19 編輯
回復  bubblestar


    I have no problem but from time to time, if I use Dial (SIP/{exten}), someti ...
ckleea 發表於 2011-1-7 13:53



    Double check if you have added $ in front of {EXTEN}, i.e., SIP/${EXTEN}

TOP

回復 7# bubblestar


    So, do you set up your extension under GUI or just paste the codes into sip.conf? I believe I can't use SIP/6000 is due to the setup under GUI. The information is in users.conf not sip.conf.

Then what is the purpose of GUI?

TOP

I, myself, do not use SIP/6000.  As mentioned before, extension 6000 is predefined to some other purpose, probably for auto-attendant.

I think we can adjust or fix to use extension 6000 again.

TOP

回復 13# bubblestar

My 6000 is assigned to the Siemens IP phone. Works without problem.
Only I did not put any extension setting in SIP.conf.

My point is since we need to add the extensions setting in sip.conf and iax.conf. What is the point of using GUI to create users/extensions? Only you can see them under GUI.

TOP

Maybe I get you wrong.

OK.  As far as I know,if we use GUI to create extensions, it is NOT necessary to put those extensions in SIP.conf since they will be included in USERS.conf.  As I am not using GUI for Asterisk 1.8, all my extensions are put inside SIP.conf and do not need to touch users.conf.

Basically, we should handle extensions for IAX in the same fashion.  However, I notice from the Internet that we might face some strange problems if we check both IAX and SIP in GUI.  Hence, it is suggested that we'd better create IAX and SIP extensions separately to avoid confusion.

Those information indicates that GUI (at least Asterisk's own version) is really not the best choice at this moment.  Elastix, FreePBX, Trixbox and PiaF outperform in this respect.

TOP

返回列表