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的代码,但它们在下述安装过程中没有用到;

注意:

Ø        使用TortoiseSVNWindows上下载的代码编译会失败,原因是TortoiseSVN不支持SVN的文件“link”特性——OpenIMSCore某些代码文档使用类似“link ../scscf/ims_pm.c”实现对其他文件的引用;

 

三、  编译

Ø        进入ser_ims目录,make install-libs all

Ø        进入FHoSS目录,执行antcompileant 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.shscscf.sh

Ø        执行FHoSS/deploy/startup.sh,如果失败则检查JAVA_HOME是否指向了jdk,或进入目录FHoSS/deploy执行startup.sh;检查http://localhost:8080/是否可以正常访问——必须是localhost,目前不能远程访问;web的登录为hssAdmin/hss

 

七、  测试

下载了一个IMS client进行测试,MONSTERhttp://imscommunicator.berlios.de/)是一个与OpenIMSCore配套的客户端,使用起来很方便;Alice成功呼叫Bob

尝试使用Kapanga Softphone,未成功!

 

八、  参考文献

[1] OpenIMSCoreInstallation Guide, http://www.openimscore.org/installation_guide

[2] http://www.openimscore.org

 

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 驾驶证违章罚单丢了怎么办 身份证被别人办了信用卡怎么办 被别人办了信用卡怎么办 考驾照体检忘带身份证怎么办 c证扣12分怎么办新规 c照12分不够扣怎么办 扣了18分怎么办一次性 c照累计扣12分怎么办 车辆超速扣12分怎么办 一次超速扣12分怎么办 分扣了罚款未交怎么办 c照一次扣12分怎么办 人在外地身份证到期了怎么办 手机进水了屏幕不亮怎么办 北京一证通过期怎么办 小米6音量键进水怎么办 考驾照怕过不了怎么办 学车对车没感觉怎么办 居住证到期2个月怎么办 生育险差一个月怎么办 驾照扣了38分怎么办 新疆转入山东上学怎么办手续 驾照过日期换证怎么办 机动车被扣24分怎么办 车辆被扣24分怎么办 现在深圳牌十年老车怎么办? 护士证过期4年了怎么办 护士资格证延续注册过期了怎么办 护士资格证过期没注册怎么办 护士资格证注册时间过期怎么办 辅警体检视力不行怎么办 护士延续注册体检怀孕怎么办 护士资格证没有延续注册怎么办 申请信用卡没有座机号码怎么办 网上申请信用卡没有座机号码怎么办 我叫上门服务被骗了怎么办 上门服务被骗了3000多怎么办 微信被骗9000元怎么办 奥迪a8气囊灯亮怎么办 驾考站岗迟到了怎么办 老板欠员工工资不给怎么办