Mobicents記錄1:如何搭建和運行mobicents3.0環境(基於jboss7.2)

網上能查到的mobicents的資料都是基於比較老的版本,而官網如今已經更新到3.0的版本,不少資料都已經無效,因此把本身的摸索過程記錄下來,以便後來者能少走點彎路,快速上手。
閒言少敘,開始正文。。。java

安裝文件

一、基於jboss7.2的sip-servletsgit

mss-3.0.564-jboss-as-7.2.0.Final.zip
下載地址:https://github.com/Mobicents/sip-servlets/releasesgithub

二、media serverweb

mms-server-3.0.2.Final.zip瀏覽器

配置與測試jboss7.2

配置jboss7.2

一、解壓安裝文件

二、配置環境變量JAVA_HOME

三、使用standalone的sip配置文件

一、打開目錄mss-3.0.564-jboss-as-7.2.0.Final\standalone\configuration 二、備份standalone.xml爲standalone.xml.bak
三、將standalone-sip.xml修改成standalone.xmldom

四、修改綁定的ip地址

默認服務綁定的是127.0.0.1,致使其餘機器沒法訪問該服務,因此須要作下面的修改:
文件:standalone.xml
修改內容:
1)找到interfaces節點
2)將下面的內容測試

<interface name="public">
    <inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>

修改成日誌

<interface name="public">
    <inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>

運行jboss7.2

進入目錄mss-3.0.564-jboss-as-7.2.0.Final\bin
運行文件: standalone.batcode

進入click2call後臺

在瀏覽器中輸入網址:http://127.0.0.1:8080/click2call便可server

注:若是直接使用localhost:8080/click2call的話,會顯示失敗

錯誤與解決

一、啓動jboss後沒法進入click2call後臺

問題描述:
1)在jboss啓動成功後,訪問http://127.0.0.1:8080/click2call時提示404
2)在jboss的後臺,能夠看到以下的日誌

12:09:41,153 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS0
18559: Deployed "click2call.war" (runtime-name : "click2call.war")
12:09:41,155 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774
: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.security.security-domain.sip-servlets (missing) dependents:
[service jboss.web.deployment.default-host./click2call.realm]

解決辦法:
一、打開目錄mss-3.0.564-jboss-as-7.2.0.Final\standalone\configuration 二、備份standalone.xml爲standalone.xml.bak
三、將standalone-sip.xml修改成standalone.xml

二、sip客戶端登陸後,沒法在click2call後臺看到註冊信息

該問題暫缺,待解決。

相關文章
相關標籤/搜索