Saturday, 2 October 2010

Setting up a heterogeneous wireless environment using Openimscore, 802.21 and Asterisk on Ubuntu 10.04: Part - 1

Through this post i'll try to explain how to setup a heterogeneous wireless voice/video calling facility in a closed environment using - OpenIMScore, Asterisk, 802.21, IMS Communicator / UCT IMS Client.

Part - 1: Setting up OpenIMSCore

Step-1
First lets setup OpenIMSCore which act as the backbone for our call session. For you need to install few dependency packages.

$sudo apt-get install ant bind9 mysql-server bison libxml2

Step-2
Now you need to download OpenIMSCore from berlios site. Try getting the latest one using 'SVN'. If you are behind a proxy make sure that you add proxy details in /etc/subversion/servers. Then create a folder named 'OpenIMSCore' in /opt. Change the ownership of the folder to your current user name using chown command and then move to the newly created folder. Once you are in the folder run the following commands to download the files from belios.

$mkdir FHoSS
$svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunk FHoSS
$mkdir ser_ims
$svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunk ser_ims


Step-3
By default the access rights set for OpenIMSCore is for local access. Now if you are planning to run clients on separate systems then replace 127.0.0.1 with your system IP address using the following script provided by openims team. I recommend you this step b'coz in future you may need to do this for calling across various clients.

$./ser_ims/cfg/configurator.sh

You can keep the home domain as open-ims.test itself as most of the client devices will be pre-configured using this url. But don't forget to change IP to the one configured on NIC.

Step-4
A sample DNS Zone file is provided by OpenIMS team:- ser_ims/cfg/open-ims.dnszone. So you only need to use it for setting up DNS Zone. Copy the file to /etc/bind and and include the following in /etc/bind/named.conf.local

zone "open-ims.test" IN {
type master;
file "/etc/bind/open-ims.dnszone";
notify no;
};


You also update the /etc/resolv.conf so as to point to the new DNS server. If you havin't played around with your ubuntu distribution much, then i feel its better to update this using GUI rather than command line.

Go to System -> Preferences -> Network Connections. Then select wired -> Auto eth0. Click on the 'edit' button and go to 'IPv4 Settings'. In the 'DNS Servers' column add your IP and in 'Search domains' add open-ims.test

Now restart bind using

$sudo /etc/init.d/bind9 restart

You can check out whether the new configuration works using dig command. Try

$dig open-ims.test

If everything work fine then this will return server as your IP address with a lot of junk info. Dont worry about its output now :) Lets move further !

Step-5
Now come back to your /opt/OpenIMSCore/ser_ims folder. Compile it using

$make install-libs all

Go to your /opt/OpenIMSCore/FHoSS folder. Compile it using
$ant compile
$ant deploy
If all your dependent softwares are installed then i hope you wont have any issues in the above step.

Step-6
Now before running your compiled code, lets setup mysql database for our OpenIMSCore. I hope you might have given proper database password. Now try the following command from your /opt/OpenIMSCore folder.

$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


Step-7
Using the following commands you need to copy certain files to /opt/OpenIMSCore
$cp ser_ims/cfg/*.cfg .
$cp ser_ims/cfg/*.xml .
$cp ser_ims/cfg/*.sh .
Now your OpenIMSCore setup is ready to run !

Step-8
Try running your pcscf, icscf and scscf components on separate terminals. For this you do

$./pcscf.sh
$./icscf.sh
$./scscf.sh


Make sure you do this on separate terminals.

Now you go to FHoSS/deploy folder and start startup.sh. If you are getting any errors while starting this file, it maybe because your JAVA_HOME environment variable is not set. Try setting it and rerun the same.

Now if every thing is working fine you can see on terminal that the peers are connected across each other !

Troubleshooting:

  • Setkey Command not found
Try, #sudo apt-get install ipsec-tools
  • WARNING:peer_connect(): Error opening connection to to xxx.xxx.xxx.xxx 3868 >Connection refused
Just run, #/opt/OpenIMSCore/FHoss/deploy/startup.sh

Wednesday, 28 July 2010

Into the Future.....


"At every cross road on the path that leads to the future, tradition has placed 10,000 men to guard the past."
- Maurice Maeterlinck

Tuesday, 20 July 2010

Attitude......


“The longer I live, the more I realize the impact of attitude on life. Attitude, to me, is more important than facts. It is more important than the past, the education, the money, than circumstances, than failure, than successes, than what other people think or say or do. It is more important than appearance, giftedness or skill. It will make or break a company... a church... a home. The remarkable thing is we have a choice everyday regarding the attitude we will embrace for that day. We cannot change our past... we cannot change the fact that people will act in a certain way. We cannot change the inevitable. The only thing we can do is play on the one string we have, and that is our attitude. I am convinced that life is 10% what happens to me and 90% of how I react to it. And so it is with you... we are in charge of our Attitudes.”

~ Charles R. Swindoll


Monday, 18 January 2010

Starting ZoneMinder: Can't open config file '/usr/local/etc/zm.conf': No such file or directory at /usr/local/share/perl/5.10.0/ZoneMinder/Config.pm


This error had wasted half a day of mine............. But ultimately i came to know that its a silly installation issue, which is related to previous installations of zoneminder !

Just go to "/usr/local/share/perl/5.10.0/" and remove Zoneminder folder manually from there... Thatz it !

Now you can reinstall the debian package & hope it works !

Sunday, 10 January 2010

Interesting Web Collections !


Royalty free geographical photographs:

http://windowsonourworld.com/

Dan Pollock's Site of the day:

http://someonewhocares.org/siteoftheday/

Reference Site of the day :

http://www.refdesk.com/

Online Icon Maker:

http://www.rw-designer.com/online_icon_maker.php

Free online GPL podcast receiver:

http://juicereceiver.sourceforge.net/

S/W to organizes your frequently used text phrases & paste them into any application:

http://www.phraseexpress.com/

Create you own website for free:

http://www.weebly.com/


Free online file converter:

http://www.zamzar.com/

Textorizer:

http://textorizer.whatfettle.com/

Online image resizer:

http://mypictr.com/

External website monitoring service:

http://www.mon.itor.us/


Check all your email-box from one central place:

http://www.jump2mail.com

Create a free unique photo collage:

http://bighugelabs.com/hockney.php

Free receive only email (For times when you have to receive an email but you really don't want to give one that you actually use. ):

http://www.dodgeit.com/

Free Auto Bibliography Generator:

http://www.ottobib.com/

Really simple ways to share files:

http://www.zapr.com/

561 newspaper front pages from 57 countries:

http://www.newseum.org/


Great place to discover some of the up coming websites:

http://movers20.esnips.com/

Web designers search engine:

http://sparkl.us/

Online Photo Editors:

http://www.phixr.com/

http://www.flauntr.com/


Daytipper: daily tips, tricks and techniques:

http://www.daytipper.com


Picupine : Share photos for a week :

http://www.picupine.com/

Online rich media presentation tool:

http://www.empressr.com/

Google SketchUp to create, modify and share 3D models:

http://sketchup.google.com/

Online foreign language-learning site:

http://www.mangolanguages.com/

File search to search files in various file sharing and uploading sites:

http://www.filestube.com/

One Good Tech Blog:

http://www.labnol.org/

A free, complete, up-to-date, and reliable worldwide travel guide

http://wikitravel.org/

Free email tracking system that lets you know when the email you sent has been read by recipient:

http://www.spypig.com/

How to do just about everything:

http://www.ehow.com/


Free ebooks:

http://www.gutenberg.org/wiki/Main_Page

To find copies of your content on the Web:

http://www.copyscape.com/

Free uncompress service online:

http://www.wobzip.org/

Write in your own language online:

http://www.quillpad.com/

Encyclopedia:

http://www.eol.org/