<div dir="ltr">Hi,<div>I  am integrating Kamailio into my application. I want to hook to the successful REGISTER and unregister event into Kamailio into my application. For now, I am able to hook into INVITE event and can hit my server to send a email to the callee user that user X is calling you. The way I am doing is by this</div><div>        if (is_method("INVITE")) {<br>                xlog("LOG_LOCAL3","L_INFO","invite came ($fU) ($tU)");<br>                $var(res) = http_connect("sipnodejsserver", "/","text/plain","src_user:$fU,dst_user:$tU" ,"$avp(route)");<br>                xlog("LOG_LOCAL3","L_INFO","request sent $avp(route)  $var(res)");<br>                setflag(FLT_ACC); # do accounting<br>        }<br></div><div><br></div><div>I need to show into my application that their SIP phone is online or not. How can I hook into this?</div></div>