網上能查到的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瀏覽器
一、打開目錄mss-3.0.564-jboss-as-7.2.0.Final\standalone\configuration 二、備份standalone.xml爲standalone.xml.bak
三、將standalone-sip.xml修改成standalone.xmldom
默認服務綁定的是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>
進入目錄mss-3.0.564-jboss-as-7.2.0.Final\bin
運行文件: standalone.batcode
在瀏覽器中輸入網址:http://127.0.0.1:8080/click2call便可server
注:若是直接使用localhost:8080/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
該問題暫缺,待解決。