close

Red5Phone

How to run Red5Phone within BigBlueButton server如何運行Red5Phone內BigBlueButton服務器

Introduction 導言

This page provides steps to run Red5Phone , the workarounds, as well as observations/findings.此網頁提供的步驟,運行Red5Phone ,替代,以及意見/調查結果。

Install Red5 安裝Red5

  1. Download Red5 from http://osflash.org/red5/070final , in this instruction we use the Java 6 windows release下載Red5從http://osflash.org/red5/070final ,在這個指示,我們使用Java 6的Windows版本
  2. Extract the downloaded file (eg c:\red5-0.7.0 -- let's call this RED5_HOME)解壓縮下載的文件(例如C : \ red5 - 0.7.0 -讓我們的呼籲,這RED5_HOME )
  3. Download the hotfix ( http://osflash.org/red5/070hotfix ) and put the jetty jars into RED5_HOME/lib .下載此修復程序( http://osflash.org/red5/070hotfix ) ,並把碼頭放於RED5_HOME/lib Otherwise, you'll see this否則,你會看到這
           Exception in thread "main" java.lang.ClassNotFoundException: org.mortbay.jetty.Server例外線程“主要” java.lang.ClassNotFoundException  org.mortbay.jetty.Server 
    You can get the jetty libs from http://red5.googlecode.com/svn/repository/jetty/ Remove the old jetty jar versions.你可以從碼頭庫http://red5.googlecode.com/svn/repository/jetty/取出舊碼頭罐版本。 Ignore the update jar files from hotfix link as we are only interested in the jetty jars.忽視更新jar文件從修補程序鏈接,因為我們只關心碼頭罐子。 If you have SVN installed you can do this by:如果您有SVN安裝你可以做到這一點:
    "svn co http://red5.googlecode.com/svn/repository/jetty/ " “ svn共同http://red5.googlecode.com/svn/repository/jetty/
  4. Download the red5.jar from the red5phone site ( http://red5.4ng.net/red5.jar ).下載red5.jar從red5phone網站( http://red5.4ng.net/red5.jar ) 。 Put it in RED5_HOME and name it red5-sip-0.7.jar so as not to overwrite the original red5.jar把它放在RED5_HOME ,並將它命名為red5 - SIP的0.7.jar ,以免覆蓋原始red5.jar
  5. Download the sip app ( http://red5.4ng.net/sip.zip ) and extract it into RED5_HOME/webapps下載的SIP應用程序( http://red5.4ng.net/sip.zip ) ,並提取到RED5_HOME/webapps
  6. Check if there is a RED5_HOME/wrapper folder.檢查是否有RED5_HOME/wrapper文件夾。 If not, create it.如果沒有,請創建它。 Delete everything inside the wrapper folder.刪除文件夾內的包裝。
  7. Copy RED5_HOME/red5.bat to RED5_HOME/wrapper .複製RED5_HOME/red5.batRED5_HOME/wrapper 1. 1 。 Edit the RED5_HOME/wrapper/red5.bat and change編輯RED5_HOME/wrapper/red5.bat和變化
         "%JAVA_HOME%/bin/java" -Djava.security.manager -Djava.security.policy=conf/red5.policy -cp red5.jar;conf;bin org.red5.server.Standalone   JAVA_HOME  /斌/ Java的” Djava.security.manager - Djava.security.policy = conf/red5.policy蛋白red5.jar ;配置;斌org.red5.server.Standalone 
    to
         "%JAVA_HOME%/bin/java" -Djava.security.manager -Djava.security.policy=../conf/red5.policy -cp ../red5-sip-0.7.jar;../conf;../bin org.red5.server.Standalone “ % JAVA_HOME % /斌/ Java的” Djava.security.manager - Djava.security.policy =.. / conf/red5.policy蛋白../red5-sip-0.7.jar ; .. /設置; .. /本org.red5.server.Standalone 
The reason for this is that SIPUser.java assumes red5 was started under a "wrapper" directory.這樣做的理由是, SIPUser.java假設red5下開始了“包裝”目錄。
        SIPUser.java SIPUser.java 

         
public SIPUser(String sessionID, IConnection service, int sipPort, int rtpPort) throws IOException {公共SIPUser (字符串sessionID IConnection服務,詮釋sipPort ,國際rtpPort )全IOException
                 
p("SIPUser Constructor: sip port " + sipPort + " rtp port:" + rtpPort); p SIPUser構造: SIP協議端口” + sipPort + RTP協議端口: + rtpPort ;

                 
try {嘗試(

                         
String appPath = System.getProperty("user.dir");字符串appPath = System.getProperty user.dir ;
                         
appPath = appPath.substring(0, (appPath.length() - 8));   // removing /wrapper sub folder from path appPath = appPath.substring ( 0 , ( appPath.length ( ) - 8 ) ) ; / /刪除/包裝子文件夾的路徑

                         
configFile = appPath + "/webapps/sip/sip.cfg"; configFile = appPath + / webapps /高級督察/ sip.cfg ;

                         
this.sessionID = sessionID; this.sessionID = sessionID ;
                         
this.service = service; this.service =服務;
                         
this.sipPort = sipPort; this.sipPort = sipPort ;
                         
this.rtpPort = rtpPort; this.rtpPort = rtpPort ;

                         
sipInputStream = new PipedInputStream(); sipInputStream =新PipedInputStream ;
                         
rtmpOutputStream = new PipedOutputStream(sipInputStream); rtmpOutputStream =新PipedOutputStream sipInputStream ;

                 
}  catch (Exception e) { )趕上(例外五)
                         
p("SIPUser constructor: Exception:>\n" + e); p SIPUser構造:異常: \ N “的+ e )段;

                 
}
         
}

 

  1. Edit webapps/sip/WEB-INF/classes/logback.xml with this change編輯webapps /高級督察/網絡干擾素/班/ logback.xml這一變化

     

          <File>log/sip.log</File> <File>日誌/ sip.log “ /文件” > 
  2. Create RED5_HOME/wrapper/log folder.創建RED5_HOME/wrapper/log文件夾中。
  3. Run wrapper/red5.bat運行wrapper/red5.bat
  4. Connect to http://localhost:5080/sip and click on the Flex Phone Template link連接到http://localhost:5080/sip並單擊模板的Flex電話聯繫
  5. Enter relevant information and click Login.輸入有關信息,並點擊登錄。 Make sure that your SIP user (in Asterisk) does not have a "secret" (password) entry.請確保您的SIP用戶(在星號)沒有“秘密” (密碼)進入。 Otherwise, registration will fail ( http://code.google.com/p/red5phone/issues/detail?id=4 ).否則,將不能登記( http://code.google.com/p/red5phone/issues/detail?id=4 ) 。 If it does not work, take a look at logs/sip.log for clues.如果它不工作,考慮一下日誌/ sip.log的線索。 You can also use WireShark ( http://www.wireshark.org/ ) to capture packets and determine why your client won't register.您也可以使用WireShark ( http://www.wireshark.org/ )捕獲的數據包,並確定為什麼您的客戶不會被記錄。
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 安德森 的頭像
    安德森

    安德森技術備忘板

    安德森 發表在 痞客邦 留言(0) 人氣()