Sathees, you do know that a lot of us are members and contributors to both
Kam and SIPS projects? Both distributions have working base script. Some
simple googling will yield the following:

Kam + Asterisk: http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
OpenSIPS + Asterisk: http://www.opensips.org/Documentation/Tutorials-OpenSIPSAsteriskIntegration

The idea has always been to attempt a little effort and consult when you hit a
brick wall. I even told u to take a few weeks and go through the free online book:

http://www.voip-sip.org/wp-content/uploads/2011/08/Building-Telephony-Systems-with-OpenSIPS-1.6.pdf

Kind Regards,

Nick.