SiptoSis 最新版安裝

    版本為 02:53, 13 Jan 2025

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    官方連結

    系統環境

    • PIAF 2.0.6.2 (Asterisk 1.8.8.0 + CentOS 6.2)
    • Guest OS on VMware ESX
    • Java: jre-7u17-linux-i586.rpm
    • Skype: skype-4.1.0.20-1.el6.i586.rpm

    步驟開始

    新增帳戶 stsuser

    useradd stsuser
    cd /usr/src
    mkdir install_sip2sis 
    
    安裝 Skype
    cd /usr/src/install_sip2sis
    wget -O skype-4.1.0.20-1.el6.i586.rpm "https://dl.dropbox.com/s/409livlxb7p33hy/skype-4.1.0.20-1.el6.i586.rpm?token_hash=AAGnThJzNok_EhTOYWR9BdAoEOIzpIG0_QGWq75Ugl-j6w&dl=1"
    yum groupinstall "X Window System"
    yum install libXv libXScrnSaver alsa-lib xterm xorg-x11-twm
    rpm -ivh skype-4.1.0.20-1.el6.i586.rpm 
    

    修改 /etc/X11/twm/system.twmrc

    ...
    RandomPlacement <== 加上這一行
    NoGrabServer
    RestartPreviousState
    ... 
    

    複製 system.twmrc

    cp /etc/X11/twm/system.twmrc /home/stsuser/.twmrc
    chown stsuser:stsuser /home/stsuser/.twmrc
    

    設定 snd-dummy

    modprobe snd-dummy
    vi /etc/rc.local 
    

    rc.local:

    # Required for Sip2Sis
    /sbin/modprobe snd-dummy
    

    測試 Skype

    su - stsuser
    vncserver 
    

    以 VNC Viewer 登入主機,執行 skype &

    為了要配合 SipToSis 必須修改 Skype 設定

    • 登入時,勾選 Sign me in when skype starts
    • Advanced
      • Enable Skype WiFi: 關閉
      • Check for update on startup: 關閉
    安裝 Sun/Oracle Java (不要使用 openjdk)

    檔案下載: http://java.com/zh_TW/download/manual.jsp

    cd /usr/src/install_sip2sis
    wget -O jre-7u17-linux-i586.rpm http://javadl.sun.com/webapps/download/AutoDL?BundleId=75249
    
    yum remove java-1.6.0-openjdk
    rpm -ivh jre-7u17-linux-i586.rpm

    Note:

    如果系統已經安裝 openjdk 的版本,必須先移除

    確認 java 版本

    $ java -version
    java version "1.7.0_17"
    Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
    Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
    
    安裝  Xvfb
    yum install Xvfb
    
    增加 stsuser 為群組 audio
    usermod -a -G audio stsuser
    
    安裝 SipToSis

    下載連結: http://www.mhspot.com/sts/siptosis_download.php

    • SipToSis_20111012.zip
    • stsTrunkBuilderLinux_20110808.zip
    cd /usr/src/install_sip2sis
    mkdir /opt/siptosis
    unzip SipToSis_20111012.zip -d /opt/siptosis/
    cd /opt/siptosis/
    chmod a+x SipToSis_linux
    chown -R stsuser:stsuser log/
    
    第一次測試: SipToSis_linux

    使用 VNC Viewer 登入主機,在帳戶 stsuser 下開啟 Skype 並完成登入。

    在 VNC Viewer 的 xterm,執行

    /opt/sip2sis/SipToSis_linux &
    

    Notes:

    VNC 畫面的 Skype 必須顯示 "允許外部 API 存取" 的提示

    執行 netstat -lun 應該有開啟 port 5070

    如果 SipToSis_linux 正常啟動,輸出訊息為

    [stsuser@pbx siptosis]$ Launching SipToSis
    2013-03-26 13:17:06,170 Starting SipToSis v20111012
    2013-03-26 13:17:06,175 Skype4Java Version 1.3.0.1
    2013-03-26 13:17:06,175 os=Linux ver=2.6.32-220.2.1.el6.i686 arch=i386 (1 core)
    2013-03-26 13:17:06,175 javaVer=1.7.0_17 - Oracle Corporation (32 bit)
    2013-03-26 13:17:06,198 Available Codecs: PCMU(0),PCMA(8),iLBC(98),L16/16k(102)
    2013-03-26 13:17:06,198 DTMF rfc2833(101)
    2013-03-26 13:17:06,199 initSkype - If stuck, check Skype online & API auth
    2013-03-26 13:17:06,454 STUN: Error - Unknown Host: stun.xten.net
    2013-03-26 13:17:06,697 PublicIP=211.72.203.62
    2013-03-26 13:17:06,741 SkypeVer:172
    2013-03-26 13:17:06,816 Attached SkypeUserId:skype.share
    2013-03-26 13:17:06,825 Config - skypeClientSupportsMultiCalls:false  concurrentCallLimit:2
    2013-03-26 13:17:06,825 SipToSis contact_url=sip:skypests@192.168.7.62:5070
    2013-03-26 13:17:06,825 via_addr=192.168.7.62  realm=
    2013-03-26 13:17:06,825 RTP Ports: 63200-63202  Local Skype Ports: 64432-64435
    2013-03-26 13:17:06,825 jitterLevel=-1
    2013-03-26 13:17:06,866 Registrar Server Domains=
    2013-03-26 13:17:06,868 MaxCallTime: not limited MaxPSTNCallTime: not limited
    2013-03-26 13:17:06,868 MaxDailyPSTNUniqueNumberCount: 48 MaxDailyPSTNMinutes: 350
    2013-03-26 13:17:06,876 Loading Skype PSTN Call History
    2013-03-26 13:17:06,881 WAITING FOR INCOMING CALL
    2013-03-26 13:17:06,891 6 possible calls to import.
    2013-03-26 13:17:06,893 WAITING FOR INCOMING CALL
    2013-03-26 13:17:07,793 0 PSTN calls imported
    2013-03-26 13:17:07,799 PSTN counters reset at: 08:00:00 CST
    2013-03-26 13:17:07,807 Qualified PSTN calls today: 0 Time: 0 minutes
    2013-03-26 13:17:07,944 AcctBalance: 1.00 FREECALL

    使用 Zoiper 來測試 SipToSis_linux 是否可用

    Powered by MindTouch Core