2012年3月5日 星期一

Libjingle 編譯教學

1.  apt-get install build-essential 建置環境
2.  安裝python-2.4 以上版本(禁止使用3.X以上版本)
3.  下載Scons解壓縮, 並設定環境參數  
export SCONS_DIR=/home/pinliang/Downloads/libjingle-0.6.14/scons-local-2.0.1/scons-local-2.0.1/
4.  下載swtoolkit解壓縮,
    export PATH_TO_SWTOOLKIT=/home/pinliang/swtoolkit       
        export PATH=$PATH:$PATH_TO_SWTOOLKIT
5.   下載gtest-1.5.0 並改名為gtest放入talk/third_party中(若使用gtest-1.6.0會失敗) 
6.   下載srtp, expat-2.0.1 至talk/third_party中
7.   複製指令    cp talk/third_party/srtp/config.hw talk/third_party/srtp/crypto/include/config.h
8.   安裝install libssl-dev, libasound2-dev and gtk+2.0
9.   下載openssl 放入talk/third_party, 修改libjingle.scons檔 add the
       "HAS_OPENSSL_1_0" to the cppdefine under the "talk.Library(env, name = jingle..."
10.  swtoolkit 權限開777
11.   
11.   apt-get install libgtk2.0-dev   

Asterisk 安裝教學


Asterisk 1.8(Server), X-Lite 4(Client), Zoiper(Client), Linphone(Client), Ekiga(Client)

橘色:Linux
藍色:Windows
紅色:Linux(失敗)

Asterisk 基本安裝

1.    apt-get install asterisk                                            //安裝Asterisk
2.    vim /etc/asterisk/sip.conf                                     //新增帳號、密碼

videosupport=yes

[201] ;sip 的帳號                                     //新增帳號格式
username=201 ;sip 的電話號碼
type=friend
secret=201  ;sip的密碼
qualify=yes
nat=yes ;設定是否在 NAT
host=dynamic
dtmfmode=rfc2833
context=internal
canreinvite=no
callerid=<201>
allow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g722
allow=g726
allow=h263
allow=h263p
allow=h264

3.    vim /etc/asterisk/extensions.conf

[internal]
exten => _X.,1,Dial(SIP/${EXTEN},30)
exten => _X.,n,Hangup()

4.    vim /etc/asterisk/manager.conf

[admin]
secret=admin
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
      (重開機)

5.      /usr/sbin/asterisk –rvvvvvvv         //查看目前的連線狀況
6.      telnet localhost 5038
action: login <enter>
username: admin <enter>
secret: admin <enter>
<enter>
Asterisk-gui

1.       svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
2.       進入資料夾 ./configure make make install
3.       設定網頁環境
  /etc/asterisk/http.conf
  [general]
  enabled=yes
  bindaddr=0.0.0.0
  bindport=8088
  prefix=asterisk
  enablestatic=yes
4.       設定登入帳號/etc/asterisk/manager.conf
  [general]
  enabled=yes
  webenabled=yes
  port=5038
  bindaddr=0.0.0.0

  [admin]
  secret=admin123
  deny=0.0.0.0/0.0.0.0
  permit=127.0.0.1/255.255.255.0
  read=system,call,log,verbose,command,agent,user,config,originate,read,write
  write= system,call,log,verbose,command,agent,user,config,originate,read,write
5.       make checkconfig 看看有沒有錯誤
6.       Checked in Asterisk CLI
   System*CLI>http show status
   HTTP Server Status:
   Prefix: /asterisk
   Server Enabled and Bound to 0.0.0.0:8080

   Enabled URI’s:
   /asterisk/httpstatus => Asterisk HTTP General Status
   /asterisk/manager => HTML Manager Event Interface
   /asterisk/rawman => Raw HTTP Manager Event Interface
   /asterisk/static/… => Asterisk HTTP Static Delivery
   /asterisk/mxml => XML Manager Event Interface
   看看是否有錯
   cp –Rfv /var/lib/asterisk/* /usr/share/asterisk/
   mv /var/lib/asterisk /var/libasterisk_original 備份
   ln –s /usr/share/asterisk /var/lib/asterisk 連結網頁
7.       出現“check write permission for gui folder
   chmod 777 /var/lib/asterisk/static-http/config
8.       service asterisk restart

Asterisk-addons

1.       libxl2-dev, ncurses-dev
2.       ALTER TABLE cdr ADD INDEX ( calldate );
  ALTER TABLE cdr ADD INDEX ( dst );
  ALTER TABLE cdr ADD INDEX ( uniqueid );
3.       從連結下載svn co http://svn.digium.com/svn/asterisk-addons/branches/1.6.0
4.       ./configure make menuselect 看看有無安裝好
5.       mysql-server, mysql-client, libmysqlclient15-dev

好用 OpenSource 工具

問卷系統 LimeSurvey

架設網站 Joomla

Linux 架站懶人包 XAMPP

線上學習平台 Moddle

線上編輯文件 DoKuwiki

網頁系統開發 LNMP(Nginx) LLMP(Lighttpd)

2012年2月3日 星期五

好用工具 from google

1.SI v3.50.0063

   SI3US-230590-09757
   SI3US-840598-11493
   SI3US-404808-04697
   SI3US-510811-93484
   SI3US-343066-11287


2.Fiddler2(監控流量 給加密的https)  for Windwos


3.KScope(LINUX版的Source Insight) for Linux