You are on page 1of 5

Hng dn chi tit ci t IMSCore trn Ubuntu

ng ngy: 21:20 23-12-2008 Th mc: Tng hp Bc 1: t a ch tnh cho my nh sau: IP: 19.168.1.2 SubnetMask: 255.255.255.0 Default Gateway: 192.168.1.1 Bc 2: Vo System/Administration/Synapic Package Manager/ Trn tab Setting/Repositories/ Tch chn tt c cc (nn chn Download for United States cho qu trnh download din ra nhanh hn) Close li v ra ngoi nhn vo biu tng Reload. Bc 3: mkdir /opt/OpenIMSCore cd /opt/OpenIMSCore mkdir ser_ims mkdir FHoSS
svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunk ser_ims svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunk FHoSS (ci thm gi subversion trc khi chy lnh trn)

Bc 4: /etc/apt/sources.list file and add/uncomment the following lines: deb http://archive.canonical.com/ubuntu lucid partner deb-src http://archive.canonical.com/ubuntu lucid partner

Then do apt-get update

apt-get install sun-java6-jdk mysql-server libmysqlclient15-dev libxml2 libxml2-dev bind9 ant flex bison mysql root password hoang (bn c th t pass y ty ) Nu bn chy DNS trn my ca bn th bn phi edit file: /etc/dhcp3/dhclient.conf v b comment ti dng : prepend domain_name_servers 127.0.0.1; cp /opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone /etc/bind/ Add cc dng sau vo file: /etc/bind/named.conf.local zone ims.hut.vn"{ type master; File /etc/bind/open-ims.dnszone"; }; Cu hnh file open-ims.dnszone thay th a ch IP Thay tt c cc a ch IP: 127.0.0.1 thnh a ch 192.168.1.2, thay th tn min open-ims.test thnh ims.hut.vn (ch du "." cui) v sau restart li dch v bng lnh: /etc/init.d/bind9 restart Bc 5: Cd /opt/OpenIMSCore/ser_ims apt-get install libcurl4-gnutls-dev make install-libs all java version export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.03/ cd /opt/OpenIMSCore/FHoSS ant compile deploy Bc 6:

Cp /opt/OpenIMSCore/ser_ims/cfg/* /opt/OpenIMSCore/ Cd /opt/OpenIMSCore Thay tn min ca IMSCore (thnh ims.hut.vn)


./configurator.sh pcscf.cfg icscf.cfg icscf.xml scscf.cfg scscf.xml ser_ims/cfg/icscf.sql FHoSS/deploy/DiameterPeerHSS.xml FHoSS/deploy/hss.properties FHoSS/scripts/hss_db.sql FHoSS/scripts/userdata.sql

mysql -uroot -p < ser_ims/cfg/icscf.sql mysql -uroot -p < FHoSS/scripts/hss_db.sql mysql -uroot -p < FHoSS/scripts/userdata.sql Cu hnh file: /etc/resolv.conf Thm dng sau: nameserver 192.168.1.2 Bc 7: Chy cc CSCF trn tng terminal bng cch nhn t hp: CTRL+SHIFT+T: ./pcscf.sh ./icscf.sh ./scscf.sh Chy FHoSS trn mt tab khc bng lnh cd FHoSS/deploy ./startup.sh Nu c vn khi chy FHoSS th cc bn c th thit lp li bin mi trng JAVA_HOME bng cch g li lnh: (xem trong root@ubuntu:/opt/OpenIMSCore# java -version)
export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26/"

Bc 8: Sau khi chy thnh cng cc CSCF v FhoSS. Ta c cc thng s v cng ca chng P-CSCF 4060 I-CSCF 5060 S-CSCF 6060 Diameter 3868,3869,3870 Bn c th truy cp vo trang web qun l ca FhoSS bng cch vo trang web v g ng dn sau: http://192.168.1.2:8080

Username: hssAdmin Password: hss Bc 8: Sau khi dng c tng i IMSCore ta c th bt u thc hin cuc gi gia 2 IMSClient nh sau: Trn my client (v d nh my winXP) ta t a ch IP tnh nh sau: IP: 192.168.1.10 SubnetMask: 255.255.255.0 DefaultGate: 192.168.1.1 Vi phn mm: OpenICLite ta cn cu hnh cc phn sau: Public Identity: sip:bob@ims.hut.vn Private Identity bob@ims.hut.vn Secret key: bob Display name: Bob Realm: ims.hut.vn Proxy Server: 192.168.1.2 Port: 4060 Cn vi phn mm: Mercuro IMS ta cn cu hnh nh sau: Public Identity: sip:bob@ims.hut.vn Private Identity bob@ims.hut.vn Secret key: bob Display name: Bob Realm: ims.hut.vn Server: 192.168.1.2 Port: 4060 n y cc bn c th gi 2 my cho nhau, chat video, voicemail,.... Cheer! P/S: Mt ch quan trng na l cc bn nn g li lnh ch khng nn copy/paste do c th sai cc du v ch ci.

You might also like