OpenIMSCore安装
来源:互联网 发布:servlet响应json 编辑:程序博客网 时间:2024/05/22 23:48
<!-- /* Font Definitions */ @font-face{font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;mso-font-charset:2;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:0 268435456 0 0 -2147483648 0;}@font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;}h1{mso-style-next:正文;margin-top:17.0pt;margin-right:0cm;margin-bottom:16.5pt;margin-left:0cm;text-align:justify;text-justify:inter-ideograph;line-height:240%;mso-pagination:lines-together;page-break-after:avoid;mso-outline-level:1;font-size:22.0pt;font-family:"Times New Roman";mso-font-kerning:22.0pt;}h2{mso-margin-top-alt:auto;margin-right:0cm;mso-margin-bottom-alt:auto;margin-left:0cm;mso-pagination:widow-orphan;mso-outline-level:2;font-size:18.0pt;font-family:宋体;mso-bidi-font-family:宋体;}a:link, span.MsoHyperlink{color:blue;text-decoration:underline;text-underline:single;}a:visited, span.MsoHyperlinkFollowed{color:purple;text-decoration:underline;text-underline:single;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:595.3pt 841.9pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:42.55pt;mso-footer-margin:49.6pt;mso-paper-source:0;layout-grid:15.6pt;}div.Section1{page:Section1;} /* List Definitions */ @list l0{mso-list-id:510604404;mso-list-type:hybrid;mso-list-template-ids:-1096244404 1517825742 67698689 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l0:level1{mso-level-number-format:japanese-counting;mso-level-text:%1、;mso-level-tab-stop:36.0pt;mso-level-number-position:left;text-indent:-36.0pt;}@list l0:level2{mso-level-number-format:bullet;mso-level-text:;mso-level-tab-stop:42.0pt;mso-level-number-position:left;margin-left:42.0pt;text-indent:-21.0pt;font-family:Wingdings;}@list l1{mso-list-id:1736321566;mso-list-type:hybrid;mso-list-template-ids:-6421562 67698699 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}@list l1:level1{mso-level-number-format:bullet;mso-level-text:;mso-level-tab-stop:21.0pt;mso-level-number-position:left;margin-left:21.0pt;text-indent:-21.0pt;font-family:Wingdings;}@list l2{mso-list-id:1739588991;mso-list-type:hybrid;mso-list-template-ids:-66017338 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}@list l2:level1{mso-level-number-format:bullet;mso-level-text:;mso-level-tab-stop:21.0pt;mso-level-number-position:left;margin-left:21.0pt;text-indent:-21.0pt;font-family:Wingdings;}ol{margin-bottom:0cm;}ul{margin-bottom:0cm;}-->
OpenIMSCore安装
Version 1.0
2009-12-21
本文基于OpenIMSCore文档及在CentOS5.2上的实际尝试过程编写。
一、 前置条件
需要的软件:
l GCC3/4, make, JDK1.5, ant
l MySQL installed and started (orother DBMS if you can deal with it)
l bison, flex
l libxml2 (> 2.6), libmysql -both with development
l Linux kernel 2.6 andipsec-tools (setkey) if you want to use IPSec security
l Optional: openssl if you would liketo enable the TLS security
l bind installed and running (orother name server if you can deal with it)
l Java sdk 1.5 or later.
二、 获得源码
Ø 创建并进入目录:/opt/OpenIMSCore
Ø svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunkser_ims
Ø svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunkFHoSS
Ø 其他可获得CDiameterPeer/JavaDiameterPeer/website的代码,但它们在下述安装过程中没有用到;
注意:
Ø 使用TortoiseSVN在Windows上下载的代码编译会失败,原因是TortoiseSVN不支持SVN的文件“link”特性——OpenIMSCore某些代码文档使用类似“link ../scscf/ims_pm.c”实现对其他文件的引用;
三、 编译
Ø 进入ser_ims目录,make install-libs all;
Ø 进入FHoSS目录,执行antcompile和ant deploy;
注意:
Ø 执行ant compile报错:Unable to locate tools.jar,发现JAVA_HOME指向jre而非jdk,更改后成功:JAVA_HOME=/usr/jre1.5.0_12
四、 配置Bind
在CentOS5.2上碰到Bind的问题,yum install bind安装后没有文件/ect/named.conf,手工建了一个后问题解决,文件内容如下:
[root@centos ~]# cat/etc/named.conf
options {
#directory "/var/lib/named";
dump-file"/var/log/named_dump.db";
statistics-file"/var/log/named.stats";
# Theforwarders record contains a list of servers to which queries
# shouldbe forwarded. Up to three servers may belisted.
forwarders { 10.130.1.1 ; 10.130.1.9; };
# Enablethe next entry to prefer usage of the name server declared in
# theforwarders section.
forwardfirst;
listen-on-v6 { any; };
# Ifnotify is set to yes (default), notify messages are sent to other
# nameservers when the zone data is changed. Instead of setting
# aglobal 'notify' statement in the 'options' section, a separate
#'notify' can be added to each zone definition.
notifyno;
};
# This is where you put in the link to the zone you
# want to serve
zone "open-ims.test" in {
typemaster;
file"/var/bind/pri/open-ims.dnszone";
};
# Include the meta include file generated bycreateNamedConfInclude. This
# includes all files as configured inNAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named
#include "/etc/named.conf.include";
之后执行下述操作:
Ø 复制/opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone到/var/bind/pri/open-ims.dnszone;
Ø chown -R named:named /var/bind/pri/open-ims.dnszone
Ø 将/var/bind/pri/open-ims.dnszone中的127.0.0.1全部改成本机地址10.130.16.141
Ø 重启bind服务:servicenamed restart
Ø 尝试执行命令,dig @127.0.0.1 pcscf.open-ims.test,检查是否成功
Ø 更改/etc/resolv.conf,内容如下:
[root@centos OpenIMSCore]# cat /etc/resolv.conf
nameserver 127.0.0.1
search open-ims.test
domain open-ims.test
nameserver 10.130.1.1
nameserver 10.130.1.9
Bind配置成功后,设置客户机DNS指向服务器所在的地址,如10.130.16.141,则在客户机上应能ping通地址open-ims.test;
五、 设置Mysql
执行下述命令:
Ø mysql -u root -p -h localhost< ser_ims/cfg/icscf.sql
Ø mysql -u root -p -h localhost< FHoSS/scripts/hss_db.sql
Ø mysql -u root -p -h localhost< FHoSS/scripts/userdata.sql
六、 设置及运行
将所有配置copy到/opt/OpenIMSCore:
Ø cp ser_ims/cfg/*.cfg
Ø cp ser_ims/cfg/*.xml
Ø cp ser_ims/cfg/*.sh
目前OpenIMSCore的配置只监听了loopback device,执行脚本configurator.sh进行更改;
更改完成后启动服务:
Ø 执行pcscf.sh, icscf.sh及scscf.sh;
Ø 执行FHoSS/deploy/startup.sh,如果失败则检查JAVA_HOME是否指向了jdk,或进入目录FHoSS/deploy执行startup.sh;检查http://localhost:8080/是否可以正常访问——必须是localhost,目前不能远程访问;web的登录为hssAdmin/hss。
七、 测试
下载了一个IMS client进行测试,MONSTER(http://imscommunicator.berlios.de/)是一个与OpenIMSCore配套的客户端,使用起来很方便;Alice成功呼叫Bob。
尝试使用Kapanga Softphone,未成功!
八、 参考文献
[1] OpenIMSCoreInstallation Guide, http://www.openimscore.org/installation_guide
[2] http://www.openimscore.org
- OpenIMSCore安装
- openIMSCore学习
- Asterisk OpenIMSCore EricssonSDS
- OpenIMSCore的搭建过程
- openIMSCore 构建 IMS核心网
- 让OpenIMSCore支持tel uri
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 安装
- 回老家去
- Win2003 防木马、权限设置、IIS服务器安全配置整理
- Linux top 命令详解
- 16.7 Apache服务器配置的常见问题
- 量子算法与量子计算实验
- OpenIMSCore安装
- 16.7.1 防止网站图片盗链
- 16.7.2 忽略某些访问日志的记录
- dynamic_cast详解
- 16.7.3 Apache无法启动
- Mcafee(麦咖啡)8.5i 使用设置图解 --服务器
- onDOMReady方法
- 第28章 Oracle服务器配置和管理
- JavaScript 图片预览效果