<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,<br>
</p>
<br>
<div class="moz-cite-prefix">On 19/06/16 19:41, Alexandru Covalschi
wrote:<br>
</div>
<blockquote
cite="mid:CAD_iGr-JjnuMEURvb2ynPP9x9a5nF1FUurY2OUGTAk-vb5dFYw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello list,<br>
<br>
I need to send to an external API events when user is
registrated and de-registrated.<br>
As far as I understand standart behaviour is as follows:<br>
<br>
If user is not registered, he sends REGISTER and he is
registrated (I can catch that because I make the auth).<br>
If user is registered and sends REGISTER he is de-register. <br>
</div>
</blockquote>
<br>
This is not always a de-registration. If the expires value in the
new REGISTER is >0, then it is an update of the registration (or
re-registration). Only if expires==0, then it is a de-registration.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CAD_iGr-JjnuMEURvb2ynPP9x9a5nF1FUurY2OUGTAk-vb5dFYw@mail.gmail.com"
type="cite">
<div dir="ltr">(Please correct me if I'm wrong.)<br>
How can I catch that? <br>
Can I use event_route[usrloc:contact-expired]?<br>
<br>
Thanks in advance!<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Alexandru Covalschi<br>
ABRISS-Solutions
<div>VoIP engineer and system administrator<br>
tel: +37367398493<br>
web: <a moz-do-not-send="true"
href="http://abs-telecom.com/" target="_blank">http://abriss.solutions/</a></div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>