<div dir="ltr"><div>Thanks for the info guys, I've fixed my config to suit the correct logic.<br></div>Thanks again!<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-23 8:40 GMT+03:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello,<br>
    </p><span class="">
    <br>
    <div>On 19/06/16 19:41, Alexandru Covalschi
      wrote:<br>
    </div>
    <blockquote 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></span>
    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 type="cite"><span class="">
      <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 data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">Alexandru Covalschi<br>
                ABRISS-Solutions
                <div>VoIP engineer and system administrator<br>
                  tel: <a href="tel:%2B37367398493" value="+37367398493" target="_blank">+37367398493</a><br>
                  web: <a href="http://abs-telecom.com/" target="_blank">http://abriss.solutions/</a></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </span><span class=""><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </span></blockquote><span class="">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <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 href="http://abs-telecom.com/" target="_blank">http://abriss.solutions/</a></div></div></div></div></div>
</div>