<html><head></head><body><div dir="ltr">hello Daniel<div><br></div><div>It's a redis hash which is increased before doing the relay of the INVITE; and decreased when the dialog ends/fails. We do this in order to apply some extra logic there</div><div>In parallel, we do get the profile size of the same profile label we use for the redis hash key.</div><div><br></div><div>best regards</div><div>david</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><div dir="ltr" style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;direction:ltr;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:15px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 10px 0 0;border-top:none;border-right:dotted 3px #009BDF;border-bottom:none;border-left:none;vertical-align:middle;"><a href="http://www.sonoc.io/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="https://www.sonoc.io/wp-content/uploads/2020/07/Logo_SONOC_emails.png" height="90" border="0" alt="" style="height:90px;min-height:90px;max-height:90px;font-size:0;" /></a></td><td align="left" style="padding:0 0 0 10px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:0 0 0 5px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:nowrap;color:#102F4A;font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px;"><tr style="font-size:16px;"><td style="font-family:Calibri;">David Escartín<span style="font-family:remialcxesans;font-size:1px;color:#FFFFFF;line-height:1px;">​</span></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:nowrap;color:#102F4A;font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px;"><tr style="font-size:15px;"><td style="font-family:Calibri;">NOC engineer</td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:nowrap;color:#009BDF;font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px;"><tr style="font-size:15px;"><td style="font-family:Calibri;"><a href="http://www.sonoc.io/" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#009BDF;"><strong style="font-weight:400;">www.sonoc.io</strong></a></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:20px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="width:200px;font-size:0;"><tr style="font-size:0;"><td align="left"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 3px 3px 0;vertical-align:top;"><a href="https://www.linkedin.com/company/sonoc" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image484950.png@1EBBC809.33CAABFE" width="20" border="0" title="LinkedIn" alt="LinkedIn" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></td></tr></table></td><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 3px 3px 0;vertical-align:top;"><a href="https://twitter.com/sonoc_" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image167116.png@7D4BA9A7.0400DF35" width="20" border="0" title="Twitter" alt="Twitter" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></td></tr></table></td><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr style="font-size:0;"><td align="left" style="padding:0 3px 3px 0;vertical-align:top;"><a href="https://www.facebook.com/SONOCio/" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image205809.png@6B98EEB4.CBB9ECE8" width="20" border="0" title="Facebook" alt="Facebook" style="width:20px;min-width:20px;max-width:20px;font-size:12px;" /></a></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="font-size:0;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr style="font-size:0;"><td align="left" style="padding:10px 0 0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:#636363;font-size:14.67px;font-family:Calibri,Arial,sans-serif;font-weight:400;font-style:normal;text-align:justify;width:550px;"><tr style="font-size:11px;"><td style="font-family:Calibri;">This e-mail is for the exclusive use of its recipients and may contain business secrets or other confidential or privileged information. Any unauthorised use, copying, publication or distribution of this e-mail is strictly prohibited. If you are not the intended recipient, please inform us immediately by replying to this e-mail and delete it, including any attachments or copies on your system.<br />​<br />In accordance with the GDPR (EU) 2016/679 and the LOPDGDD 3/2018, we inform you that this e-mail address and/or any other personal data you have provided us with will be treated by SONOC with absolute confidentiality and with the only purpose of providing you with the requested services, due to your condition as a client, supplier or because you have requested information from us at any time. These data will only be kept for as long as required to comply with legal obligations. You can exercise your rights at any time by sending an e-mail to: <span style="color:#009BDF;"><a href="mailto:dataprotection@sonoc.io" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#009BDF;"><strong style="font-weight:400;">dataprotection@sonoc.io</strong></a></span><a href="mailto:dataprotection@sonoc.io" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#000001;"><strong style="font-weight:400;">.</strong></a><br /></td></tr></table></td></tr></table></td></tr></table></div>El jue, 3 jun 2021 a las 21:08, Daniel-Constantin Mierla (<<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hello,</p>
    <p>what kind of counter do you manually update? How is it defined
      and when is it updated?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div>On 03.06.21 12:56, David Escartín
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">hello all
        <div><br>
        </div>
        <div>Using kamailio 5.4.4, we have observed that comparing the
          result of get_profile_size (using profiles_with_value) against
          a counter we update each time a dialog is
          created-ended/failed, we do see that the number of profiles is
          higher than the number of the counter we manually update.</div>
        <div>We have reviewed the congi and seems everything is done as
          it should 🤔</div>
        <div>We tried to duplicate the issue, but at least with ~3000
          simultaneous dialogs, both measures match.</div>
        <div>Would it be possible that at some load kamailio could delay
          the dialog expirations for the profile?</div>
        <div><br>
        </div>
        <div>best regards</div>
        <div>david</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>--
          <div dir="ltr">
            <div dir="ltr" style="direction:ltr">
              <table style="width:100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                  <tr style="font-size:0px">
                    <td style="vertical-align:top" align="left">
                      <table style="font-size:0px" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr style="font-size:0px">
                            <td style="padding:15px 0px 0px;vertical-align:top" align="left">
                              <table style="font-size:0px;line-height:normal" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                  <tr style="font-size:0px">
                                    <td style="padding:0px 10px 0px 0px;border-top:none;border-right:3px dotted rgb(0,155,223);border-bottom:none;border-left:none;vertical-align:middle" align="left"><a href="http://www.sonoc.io/" style="text-decoration:none" target="_blank"><img src="https://www.sonoc.io/wp-content/uploads/2020/07/Logo_SONOC_emails.png" alt="" style="height: 90px; min-height: 90px; max-height: 90px; font-size: 0px;" height="90" border="0"></a></td>
                                    <td style="padding:0px 0px 0px 10px;vertical-align:top" align="left">
                                      <table style="width:100%;font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                        <tbody>
                                          <tr style="font-size:0px">
                                            <td style="vertical-align:top" align="left">
                                              <table style="width:100%;font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                                <tbody>
                                                  <tr style="font-size:0px">
                                                    <td style="padding:0px 0px 0px 5px;vertical-align:top" align="left">
                                                      <table style="width:100%;font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                                        <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="white-space:nowrap;color:rgb(16,47,74);font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:16px">
                                                          <td style="font-family:Calibri">David Escartín<span style="font-family:remialcxesans;font-size:1px;color:rgb(255,255,255);line-height:1px"></span></td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          <tr style="font-size:0px">
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="white-space:nowrap;color:rgb(16,47,74);font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:15px">
                                                          <td style="font-family:Calibri">NOC engineer</td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          <tr style="font-size:0px">
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="white-space:nowrap;color:rgb(0,155,223);font-size:22.67px;font-family:Calibri;font-weight:400;font-style:normal;text-align:left;width:200px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:15px">
                                                          <td style="font-family:Calibri"><a href="http://www.sonoc.io/" style="text-decoration:none;color:rgb(0,155,223)" target="_blank"><strong style="font-weight:400">www.sonoc.io</strong></a></td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          <tr style="font-size:0px">
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="padding:20px 0px 0px;vertical-align:top" align="left">
                                                          <table style="width:200px;font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td align="left">
                                                          <table style="font-size:0px" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="font-size:0px;line-height:normal" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="padding:0px 3px 3px 0px;vertical-align:top" align="left"><a href="https://www.linkedin.com/company/sonoc" style="text-decoration:none" target="_blank"><img src="https://drive.google.com/uc?id=1E8BjnzEth1bTE8cAulKVNZf27jIeu9hw&export=download" title="LinkedIn" alt="LinkedIn" style="width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; font-size: 12px;" width="20" height="20" border="0"></a></td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="font-size:0px;line-height:normal" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="padding:0px 3px 3px 0px;vertical-align:top" align="left"><a href="https://twitter.com/sonoc_" style="text-decoration:none" target="_blank"><img src="https://drive.google.com/uc?id=1CJysV-sccsLgUs1D7erDvDZE2687dzIx&export=download" title="Twitter" alt="Twitter" style="width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; font-size: 12px;" width="20" height="20" border="0"></a></td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          <td style="vertical-align:top" align="left">
                                                          <table style="font-size:0px;line-height:normal" cellspacing="0" cellpadding="0" border="0">
                                                          <tbody>
                                                          <tr style="font-size:0px">
                                                          <td style="padding:0px 3px 3px 0px;vertical-align:top" align="left"><a href="https://www.facebook.com/SONOCio/" style="text-decoration:none" target="_blank"><img src="https://drive.google.com/uc?id=1PtNWDc75pvIIi2qq7Tsm4rhm52D30hSb&export=download" title="Facebook" alt="Facebook" style="width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; font-size: 12px;" width="20" height="20" border="0"></a></td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                          </tbody>
                                                          </table>
                                                          </td>
                                                          </tr>
                                                        </tbody>
                                                      </table>
                                                    </td>
                                                  </tr>
                                                </tbody>
                                              </table>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                  <tr style="font-size:0px">
                    <td style="vertical-align:top" align="left">
                      <table style="font-size:0px" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                          <tr style="font-size:0px">
                            <td style="padding:10px 0px 0px;vertical-align:top" align="left">
                              <table style="white-space:normal;color:rgb(99,99,99);font-size:14.67px;font-family:Calibri,Arial,sans-serif;font-weight:400;font-style:normal;text-align:justify;width:550px" cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                  <tr style="font-size:11px">
                                    <td style="font-family:Calibri">This
                                      e-mail is for the exclusive use of
                                      its recipients and may contain
                                      business secrets or other
                                      confidential or privileged
                                      information. Any unauthorised use,
                                      copying, publication or
                                      distribution of this e-mail is
                                      strictly prohibited. If you are
                                      not the intended recipient, please
                                      inform us immediately by replying
                                      to this e-mail and delete it,
                                      including any attachments or
                                      copies on your system.<br>
                                      <br>
                                      In accordance with the GDPR (EU)
                                      2016/679 and the LOPDGDD 3/2018,
                                      we inform you that this e-mail
                                      address and/or any other personal
                                      data you have provided us with
                                      will be treated by SONOC with
                                      absolute confidentiality and with
                                      the only purpose of providing you
                                      with the requested services, due
                                      to your condition as a client,
                                      supplier or because you have
                                      requested information from us at
                                      any time. These data will only be
                                      kept for as long as required to
                                      comply with legal obligations. You
                                      can exercise your rights at any
                                      time by sending an e-mail to: <span style="color:rgb(0,155,223)"><a href="mailto:dataprotection@sonoc.io" style="text-decoration:none;color:rgb(0,155,223)" target="_blank"><strong style="font-weight:400">dataprotection@sonoc.io</strong></a></span><a href="mailto:dataprotection@sonoc.io" style="text-decoration:none;color:rgb(0,0,1)" target="_blank"><strong style="font-weight:400">.</strong></a><br>
                                    </td>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
  * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><table border="0" cellpadding="0" cellspacing="10" width="100%" style="font-family:"Times New Roman""><tbody><tr><td align="center" border="0" cellpadding="0" cellspacing="0" valign="center" width="150" style="border-right:3px dotted rgb(0,155,223)"><img alt="Logo" height="100" hspace="5" src="https://www.sonoc.io/wp-content/uploads/2020/07/Logo_SONOC_emails.png"></td><td align="left" valign="center" style="padding:0px"><p><span style="color:rgb(16,47,74)"><font face="Open Sans" style="font-size:14px">David Escartín Almudévar</font></span><br><span style="color:rgb(16,47,74)"><font face="Open Sans" style="font-size:14px"><font face="Open Sans" style="font-size:12px">VoIP/Switch Engineer</font></font></span><font face="Open Sans" style="font-size:14px"><font face="Open Sans" style="font-size:12px"></font></font><br><font face="Open Sans" style="font-size:14px"><font face="Open Sans" style="font-size:12px"><a href="mailto:descartin@sonoc.io" style="color:rgb(0,153,204)" target="_blank"><span style="color:rgb(0,155,223)">descartin@sonoc.io</span></a><span style="color:rgb(0,155,223)"></span></font></font></p><p><span style="color:rgb(16,47,74)"><font face="Open Sans" style="font-size:14px"><strong><font face="Open Sans">SONOC</font></strong></font></span><br><span style="color:rgb(16,47,74)"><font face="Open Sans" style="font-size:14px"><font face="Open Sans" style="font-size:12px">C/ Josefa Amar y Borbón, 10, 4ª · 50001 Zaragoza, España</font><br><font face="Open Sans" size="-1">Tlf: +34 917019888 ·</font></font></span><font color="#102f4a" face="Open Sans" style="font-size:14px"><font color="#102f4a" face="Open Sans" size="-1"> </font></font><font face="Open Sans" style="font-size:14px"><font face="Open Sans" size="-1"><font face="Open Sans" size="-1"><a href="http://www.sonoc.io" style="color:rgb(0,153,204)" target="_blank"><span style="color:rgb(0,155,223)">www.sonoc.io</span></a></font></font></font></p></td></tr></tbody></table></div></div>
</body></html>