<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Can you try with the following commit:<br>
    <br>
    -
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/85029d414384912879b45a34bdeb8f1372cc3780">https://github.com/kamailio/kamailio/commit/85029d414384912879b45a34bdeb8f1372cc3780</a><br>
    <br>
    If you installed from git, you can do a:<br>
    <br>
     git pull origin<br>
     git cherry-pick -x 85029d414384912879b45a34bdeb8f1372cc3780<br>
    <br>
    Then re-compile, re-install and restart kamailio.<br>
    <br>
    Let me know the results in order to decide whether to backport the
    patch or not.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 03/01/15 10:48, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote cite="mid:54A7BAE7.6090207@gmail.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Hello,<br>
      <br>
      the code seems to be similar to the one for searching a
      subscription. I am considering to make the matching criteria
      configurable to see the results.<br>
      <br>
      Are you using presence for dialog notifications (e.g., blinking
      lamps, call pickup) or user presence states?<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      <div class="moz-cite-prefix">On 02/12/14 14:15, Daniel-Constantin
        Mierla wrote:<br>
      </div>
      <blockquote cite="mid:547DBB85.9070303@gmail.com" type="cite">
        <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type">
        Hello,<br>
        <br>
        I will try to look asap to the code and at least add more
        debugging info to be easier to understand what happens in case
        all works fine at the end.<br>
        <br>
        Cheers,<br>
        Daniel<br>
        <br>
        <div class="moz-cite-prefix">On 02/12/14 11:34, Jan Gaida wrote:<br>
        </div>
        <blockquote
cite="mid:CAC-ydFqGQVgLD1o=QPi=2mwv3YFtEoAPaUrYghkgPR4eRfrt3g@mail.gmail.com"
          type="cite">
          <div dir="ltr">Has nobody ever seen something similar?</div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div class="gmail_signature">
                <div dir="ltr">
                  <table border="0" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <td colspan="2" bgcolor="#004054" height="8px"
                          width="570"> <img moz-do-not-send="true"
                            alt="" src="http://icons/ecblank.gif"
                            border="0" height="8" width="1"></td>
                      </tr>
                      <tr valign="top">
                        <td bgcolor="#FFFFFF" width="380"> <font
                            color="#004054" face="Arial"><b>Jan </b></font><b><font
                              color="#004054" face="Arial">Gaida</font></b><br>
                          <font color="#99cc33" face="Arial" size="1">Ingeniero


                            Desarrollo Software</font></td>
                        <td> <img moz-do-not-send="true"
                            src="http://www.amper.es/image/logoamperH.jpg"
                            style="float:right"></td>
                      </tr>
                      <tr>
                        <td colspan="2"> <img moz-do-not-send="true"
                            alt="" src="http://icons/ecblank.gif"
                            border="0" height="5" width="1"></td>
                      </tr>
                      <tr valign="top">
                        <td valign="bottom" width="380"><span
                            style="color:rgb(0,0,0);font-family:Arial;font-size:x-small">C/


                            Marconi 3 (PTM)</span><br>
                          <font color="#000000" face="Arial" size="1">28760


                            Tres Cantos<br>
                            Spain</font><br>
                          <font color="#8f8f8f" face="Arial" size="1"><a
                              moz-do-not-send="true"
                              href="mailto:jan.gaida@grupoamper.com"
                              target="_blank">jan.gaida@grupoamper.com</a>
                            | </font><a moz-do-not-send="true"
                            href="http://www.grupoamper.com"
                            target="_blank"><font color="#8f8f8f"
                              face="Arial" size="1">www.grupoamper.com</font></a></td>
                        <td valign="bottom"> <img
                            moz-do-not-send="true"
                            src="http://www.amper.es/image/lineasamper.jpg"
                            style="float:right"></td>
                      </tr>
                    </tbody>
                  </table>
                  <br>
                </div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">On 24 November 2014 at 11:52, Jan
              Gaida <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:jan.gaida@grupoamper.com" target="_blank">jan.gaida@grupoamper.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div dir="ltr">Hello,
                  <div><br>
                  </div>
                  <div>We are upgrading our servers to Kamailio 4.2 and
                    we see a lot of error messages "Failed to delete
                    subscription from memory". </div>
                  <div><br>
                  </div>
                  <div>Scenario:</div>
                  <div>This happens every time there is a Notify Timeout
                    (408) and Kamailio tries to delete the subscription.</div>
                  <div><br>
                  </div>
                  <div>Consequences:</div>
                  <div>I don't know whether the delete fails because the
                    entry did never exist, was already deleted or
                    because the comparison (to_tag, callid or from_tag)
                    is incorrect. It would be nice to at least have some
                    details in the log message.</div>
                  <div>I have not noticed any consequences to general
                    functionality.</div>
                  <div><br>
                  </div>
                  <div>I suspect the commit (<span
                      style="font-size:13px;font-family:arial,sans-serif">74d73953327ad7702922b27ba37c71</span><span
style="font-size:13px;font-family:arial,sans-serif">e3283659c3) to be
                      responsible for this error because it introduced
                      some extra checks on deletion.</span><br>
                  </div>
                  <div><span
                      style="font-size:13px;font-family:arial,sans-serif"><br>
                    </span></div>
                  <div><span
                      style="font-size:13px;font-family:arial,sans-serif">Does


                      this happen to anybody else?  What may be
                      configured incorrectly on our system?</span></div>
                  <div><span
                      style="font-size:13px;font-family:arial,sans-serif"><br>
                    </span></div>
                  <div><span
                      style="font-size:13px;font-family:arial,sans-serif">Kind


                      regards</span></div>
                  <div><br>
                  </div>
                  <div>
                    <div>
                      <div>
                        <div dir="ltr">
                          <table border="0" cellpadding="0"
                            cellspacing="0">
                            <tbody>
                              <tr>
                                <td colspan="2" bgcolor="#004054"
                                  height="8px" width="570"> <img
                                    moz-do-not-send="true" alt=""
                                    src="http://icons/ecblank.gif"
                                    border="0" height="8" width="1"></td>
                              </tr>
                              <tr valign="top">
                                <td bgcolor="#FFFFFF" width="380"> <font
                                    color="#004054" face="Arial"><b>Jan </b></font><b><font
                                      color="#004054" face="Arial">Gaida</font></b><br>
                                  <font color="#99cc33" face="Arial"
                                    size="1">Ingeniero Desarrollo
                                    Software</font></td>
                                <td> <img moz-do-not-send="true"
                                    src="http://www.amper.es/image/logoamperH.jpg"
                                    style="float:right"></td>
                              </tr>
                              <tr>
                                <td colspan="2"> <img
                                    moz-do-not-send="true" alt=""
                                    src="http://icons/ecblank.gif"
                                    border="0" height="5" width="1"></td>
                              </tr>
                              <tr valign="top">
                                <td valign="bottom" width="380"><span
                                    style="color:rgb(0,0,0);font-family:Arial;font-size:x-small">C/


                                    Marconi 3 (PTM)</span><br>
                                  <font color="#000000" face="Arial"
                                    size="1">28760 Tres Cantos<br>
                                    Spain</font><br>
                                  <font color="#8f8f8f" face="Arial"
                                    size="1"><a moz-do-not-send="true"
                                      href="mailto:jan.gaida@grupoamper.com"
                                      target="_blank">jan.gaida@grupoamper.com</a>
                                    | </font><a moz-do-not-send="true"
                                    href="http://www.grupoamper.com"
                                    target="_blank"><font
                                      color="#8f8f8f" face="Arial"
                                      size="1">www.grupoamper.com</font></a></td>
                                <td valign="bottom"> <img
                                    moz-do-not-send="true"
                                    src="http://www.amper.es/image/lineasamper.jpg"
                                    style="float:right"></td>
                              </tr>
                            </tbody>
                          </table>
                          <br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
          <br>
          <div><br>
          </div>
          <div>
            <p><font color="#5f497a" face="Times New Roman" size="1">This

                message and any attachments are intended only for the
                use of the individual to whom they are addressed and it
                may contain information that is privileged or
                confidential. If you have received this communication by
                mistake, please notify us immediately by e-mail or
                telephone.The storage, recording, use or disclosure of
                this e-mail and its attachments by anyone other than the
                intended recipient is strictly prohibited. This message
                has been verified using antivirus software; however, the
                sender is not responsible for any damage to hardware or
                software resulting from the presence of any virus.</font></p>
            <p><font color="#5f497a" face="Times New Roman" size="1"><br>
              </font></p>
            <p><font color="#5f497a" face="Times New Roman" size="1">Este

                mensaje y cualquier anexo son exclusivamente para la
                persona a quien van dirigidos y pueden contener
                información privilegiada o confidencial. Si usted ha
                recibido esta comunicación por error, le agradecemos
                notificarlo de inmediato por esta misma vía o por
                teléfono. Está prohibida su retención, grabación,
                utilización o divulgación con cualquier propósito. Este
                mensaje ha sido verificado con software antivirus; sin
                embargo, el remitente no se hace responsable en caso de
                que en éste o en los archivos adjuntos haya presencia de
                algún virus que pueda generar daños en los equipos o
                programas del destinatario.</font></p>
          </div>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>