Tuesday, April 21, 2009

Integrate Sailfin and OpenIMS Core in IPv4

This entry assume that you installed Sailfin and Open IMS Core successfully, you can consult to install Open IMS Core here. In order to install Sailfin, go to Sailfin project homepage and you'll have complete tutorials about this task.
In my machine, I installed both in Ubuntu 8.10 with Bind9:
  • Open IMS Core, IP address: 192.168.11.19
  • Sailfin, IP address: 192.168.11.18
  1. Configure DNS in Sailfin machine
- Modify /etc/resolv.conf, add this lines:

nameserver 192.168.11.18
search ims.fet.hut
domain ims.fet.hut

Replace "ims.fet.hut" with your IMS domain name respectively.

- In /etc/bind/ folder, create new zone file named openims-sailfin.dnszone with contents:

$ORIGIN ims.fet.hut
$TTL 1W
@ 1D IN SOA ns.ims.fet.hut. root.ims.fet.hut. (
2009041201 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS ns.ims.fet.hut.
ns 1D IN A 192.168.11.18

ims.fet.hut. 1D IN A 192.168.11.19
pcscf 1D IN A 192.168.11.19
icscf 1D IN A 192.168.11.19
scscf 1D IN A 192.168.11.19
hss 1D IN A 192.168.11.19

sailfin1.ims.fet.hut. 1D IN A 192.168.11.18

_sip 1D SRV 0 0 6060 scscf
_sip._udp 1D SRV 0 0 6060 scscf
_sip._tcp 1D SRV 0 0 6060 scscf

_sip._udp.ims.fet.hut. 1D IN SRV 1 0 5060 sailfin1.ims.fet.hut.
_sip._tcp.ims.fet.hut. 1D IN SRV 1 0 5060 sailfin1.ims.fet.hut.
_sips._tcp.ims.fet.hut. 1D IN SRV 1 0 5060 sailfin1.ims.fet.hut.
_sips._udp.ims.fet.hut. 1D IN SRV 1 0 5060 sailfin1.ims.fet.hut.

ims.fet.hut. 1D IN NAPTR 10 50 "s" "SIP+D2U" "" _sip._udp.ims.fet.hut.
ims.fet.hut. 1D IN NAPTR 20 50 "s" "SIP+D2T" "" _sip._tcp.ims.fet.hut.

- In /etc/bind/named.conf.local, add the following lines:

zone "ims.fet.hut" IN {
type master;
file "openims-sailfin.dnszone";
notify no;
allow-update {none;};
};

- Restart bind9:
#/etc/init.d/bind9 restart

- Add following contents in SAILFIN_HOME/domains/domain1/config/domain.xml:
- Run Sailfin:

#cd SAILFIN_HOME/bin
#./asadmin start-domain domain1
#./asadmin start-dataabase
#./asadmin
asadmin> set --host sailfin1.ims.fet.hut server-config.sip-container.external-address=sailfin1.ims.fet.hut
Please enter the admin user name> admin
Please enter the admin password>adminadmin

- That's all with Sailfin machine. After that, sailfin machine has domain name and Contact header is "sailfin1.ims.fet.hut".
Eg: REGISTER message from User equipment via P-CSCF, S-CSCF to Sailfin has Contact:"scscf.ims.fet.hut". Sailfin accept this Register and response with 200 OK has Contact:"sailfin1.ims.fet.hut" via S-CSCF, P-CSCF to User.

2. Configure DNS in Open IMS machine

- Add to /etc/bind/open-ims.dnszone file in IMS machine the following:

sailfin 1D IN A 192.168.11.18
c2d 1D IN A 192.168.11.18

- Restart DNS server in this machine
# /etc/init.d/bind9 restart

- Configure FHoSS to add new application server, point to sailfin. You can use CallSetup application in SAILFIN_HOME/samples/sipservlet/ as an application for IMS.


- You must modify CallSetup a little to work with IMS. Then you can use callsetup service with IMS client like UCT IMS client, OpenIC lite or Mercuro... normally. That's so cool!

NgocSon,

11 comments:

  1. Hello DingNgocSon,

    I'm really interested in this tutorial of integrating OpenIMSCore and Sailfin.
    However, you mentioned that you need to modify something inside the CallSetup code.
    Would you mind sharing that modification so that the CallSetup sample will work?
    Thank you.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Useful post,
    I really like this. With It Support services becoming competitive, there are a large number of firms that will do what it takes to get your business, including agreeing to various questionable terms in the contract.

    ReplyDelete
  4. I have little bit knowledge of Sailfin but your post helps me to gain more knowledge of Sailfin. Can you explain in detail, i am really interested to know about this topic from your side. Networking

    ReplyDelete
  5. Yes you are right it really help full in Network Support Thanks for sharing

    ReplyDelete
  6. I just couldnt leave your website before telling you which i really enjoyed the quality information you offer for your visitors Will be back often to check on on new posts

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Hi, nice description in Integrating Sailfin and OpenIMS Core in IPv4 .Thanks for your help..

    -Aparna
    Theosoft

    ReplyDelete
  9. Interesting story you have shared it is useful and getting a lot of new thing its really nice and making best thing.

    ______________________
    Handcrafted Women's Clothing

    ReplyDelete
  10. Hi there to every body, it’s my first go to see of this web site; this weblog consists of awesome and in fact good stuff for visitors.
    Mac Photo Editor

    ReplyDelete
  11. Hi there I am so thrilled I found your website, I really found you by mistake, while I was browsing on Yahoo for something else, Anyhow I am here now and would just like to say thanks a lot for a tremendous post and a all round exciting blog (I also love the theme/design), I don’t have time to go through it all at the minute but I have saved it and also added in your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome job.
    Cheap Home Gadgets

    ReplyDelete