操作系统
Ubuntu 11.10
下载源码
mkdir /opt/OpenIMSCore
cd /opt/OpenIMSCore
mkdir ser_ims
svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunk ser_ims
mkdir FHoSS
svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunk FHoSS
安装必要的软件包
sudo apt-get install bison flex libxml2 libxml2-dev bind9
sudo apt-get install mysql-server libmysqlclient15-dev
sudo apt-get install ant libcurl4-nss-dev
sun-java5-jdk的安装请参考相关文档
编译
编译JavaDiameterPeer生成jdp.jar, svn下载的jdp.jar有问题
cd JavaDiameterPeer/trunk
ant compile
ant jar //在class目录下生成jdp.jar
将编译完的jdp.jar覆盖OpenIMSCore/FHoSS/lib里面的jdp.jar
编译OpenIMSCore
cd /opt/OpenIMSCore
cd FHoSS
ant compile deploy
cd ..
cd ser_ims
make install-libs all
cd ..
配置 DNS
sudo cp /opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone /etc/bind/
vi /etc/bind/named.conf.local
zone “open-ims.test” {
type master;
file “/etc/bind/open-ims.dnszone”;
};
sudo /etc/init.d/bind9 restart
配置 OpenIMSCore
cd /opt/OpenIMSCore
mysql -u root -p < FHoSS/scripts/hss_db.sql
mysql -u root -p < FHoSS/scripts/userdata.sql
mysql -u root -p < ser_ims/cfg/icscf.sql
cp ser_ims/cfg/*.cfg .
cp ser_ims/cfg/*.xml .
cp ser_ims/cfg/*.sh .
运行 OpenIMS Core
修改域名及IP, 否则默认的服务侦听IP地址为127.0.0.1
root@ www open-ims:/opt/OpenIMSCore#locate configurator.sh
root@ www open-ims:/opt/OpenIMSCore# ./configurator.sh
Domain Name:open-ims.test
IP Adress: 192.168.1.202
File to change[“all” for everything, “exit” to quit]: all
root@ www open-ims:/opt/OpenIMSCore#cd FHoSS/
root@ www open-ims:/opt/OpenIMSCore/FHoSS#../configurator.sh
Domain Name:open-ims.test
IP Adress: 192.168.1.202
File to change[“all” for everything, “exit” to quit]: all
运行脚本
/opt/OpenIMSCore/pcscf.sh
/opt/OpenIMSCore/icscf.sh
/opt/OpenIMSCore/scscf.sh
/opt/OpenIMSCore/FHoSS/deploy/startup.sh
打开浏览器输入 http://192.168.1.202:8080,用户名/密码是:hss/hss。