<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>if the value you keep in redis is an integer, be sure you do not
do operations many times for same call/request, like
retransmissions or double bye (ie., both caller and callee send
BYE pretty much at the same time).</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 05.06.21 08:11, David Escartín
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADvHuE8SxsM4ODURP5=6Q4PO=cH6OWvRTxADtNN-Ob5L=fA7Gg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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 style="width:100%;" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr style="font-size:0;">
<td style="vertical-align:top;" align="left">
<table style="font-size:0;" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr style="font-size:0;">
<td style="padding:15px 0
0;vertical-align:top;" align="left">
<table
style="font-size:0;line-height:normal;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr style="font-size:0;">
<td style="padding:0 10px 0
0;border-top:none;border-right:dotted
3px
#009BDF;border-bottom:none;border-left:none;vertical-align:middle;"
align="left"><a
href="http://www.sonoc.io/"
target="_blank" id="LPlnk689713"
style="text-decoration:none;"
moz-do-not-send="true"><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:0;"
moz-do-not-send="true"
height="90" border="0"></a></td>
<td style="padding:0 0 0
10px;vertical-align:top;"
align="left">
<table
style="width:100%;font-size:0;"
cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr style="font-size:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="width:100%;font-size:0;"
cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr style="font-size:0;">
<td style="padding:0 0
0
5px;vertical-align:top;"
align="left">
<table
style="width:100%;font-size:0;"
cellspacing="0"
cellpadding="0"
border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="white-space:nowrap;color:#102F4A;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:#FFFFFF;line-height:1px;"></span></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr
style="font-size:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="white-space:nowrap;color:#102F4A;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:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="white-space:nowrap;color:#009BDF;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/" target="_blank" id="LPlnk689713"
style="text-decoration:none;color:#009BDF;"
moz-do-not-send="true"><strong style="font-weight:400;">www.sonoc.io</strong></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr
style="font-size:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="font-size:0;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="padding:20px
0
0;vertical-align:top;"
align="left">
<table
style="width:200px;font-size:0;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
align="left">
<table
style="font-size:0;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="vertical-align:top;"
align="left">
<table
style="font-size:0;line-height:normal;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="padding:0
3px 3px
0;vertical-align:top;"
align="left"><a
href="https://www.linkedin.com/company/sonoc" target="_blank"
id="LPlnk689713"
style="text-decoration:none;" moz-do-not-send="true"><img
src="cid:part4.D74F8F0A.FF8245EB@gmail.com"
title="LinkedIn" alt="LinkedIn"
style="width:20px;min-width:20px;max-width:20px;font-size:12px;"
class=""
width="20"
border="0"></a></td>
</tr>
</tbody>
</table>
</td>
<td
style="vertical-align:top;"
align="left">
<table
style="font-size:0;line-height:normal;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="padding:0
3px 3px
0;vertical-align:top;"
align="left"><a
href="https://twitter.com/sonoc_" target="_blank" id="LPlnk689713"
style="text-decoration:none;"
moz-do-not-send="true"><img src="cid:part6.5EE9F981.E3A9473A@gmail.com"
title="Twitter" alt="Twitter"
style="width:20px;min-width:20px;max-width:20px;font-size:12px;"
class=""
width="20"
border="0"></a></td>
</tr>
</tbody>
</table>
</td>
<td
style="vertical-align:top;"
align="left">
<table
style="font-size:0;line-height:normal;"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr
style="font-size:0;">
<td
style="padding:0
3px 3px
0;vertical-align:top;"
align="left"><a
href="https://www.facebook.com/SONOCio/" target="_blank"
id="LPlnk689713"
style="text-decoration:none;" moz-do-not-send="true"><img
src="cid:part8.0D19A743.48C5A953@gmail.com"
title="Facebook" alt="Facebook"
style="width:20px;min-width:20px;max-width:20px;font-size:12px;"
class=""
width="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:0;">
<td style="vertical-align:top;" align="left">
<table style="font-size:0;" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr style="font-size:0;">
<td style="padding:10px 0
0;vertical-align:top;" align="left">
<table
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;"
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:#009BDF;"><a
href="mailto:dataprotection@sonoc.io"
target="_blank" id="LPlnk689713"
style="text-decoration:none;color:#009BDF;" moz-do-not-send="true"><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;"
moz-do-not-send="true"><strong
style="font-weight:400;">.</strong></a><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
El jue, 3 jun 2021 a las 21:08, Daniel-Constantin Mierla (<<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">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" moz-do-not-send="true"><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;"
moz-do-not-send="true"
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" moz-do-not-send="true"><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" moz-do-not-send="true"><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;"
moz-do-not-send="true"
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"
moz-do-not-send="true"><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;"
moz-do-not-send="true"
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"
moz-do-not-send="true"><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;"
moz-do-not-send="true"
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"
moz-do-not-send="true"><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"
moz-do-not-send="true"><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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">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 style="font-family:"Times New Roman""
width="100%" cellspacing="10" cellpadding="0" border="0">
<tbody>
<tr>
<td border="0" cellpadding="0" cellspacing="0"
style="border-right:3px dotted rgb(0,155,223)"
width="150" valign="center" align="center"><img
alt="Logo"
src="https://www.sonoc.io/wp-content/uploads/2020/07/Logo_SONOC_emails.png"
moz-do-not-send="true" hspace="5" height="100"></td>
<td style="padding:0px" valign="center" align="left">
<p><span style="color:rgb(16,47,74)"><font
style="font-size:14px" face="Open Sans">David
Escartín Almudévar</font></span><br>
<span style="color:rgb(16,47,74)"><font
style="font-size:14px" face="Open Sans"><font
style="font-size:12px" face="Open Sans">VoIP/Switch
Engineer</font></font></span><br>
<font style="font-size:14px" face="Open Sans"><font
style="font-size:12px" face="Open Sans"><a
href="mailto:descartin@sonoc.io"
style="color:rgb(0,153,204)" target="_blank"
moz-do-not-send="true"><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
style="font-size:14px" face="Open Sans"><strong><font
face="Open Sans">SONOC</font></strong></font></span><br>
<span style="color:rgb(16,47,74)"><font
style="font-size:14px" face="Open Sans"><font
style="font-size:12px" face="Open Sans">C/
Josefa Amar y Borbón, 10, 4ª · 50001 Zaragoza,
España</font><br>
<font size="-1" face="Open Sans">Tlf: +34
917019888 ·</font></font></span><font
style="font-size:14px" face="Open Sans"
color="#102f4a"><font size="-1" face="Open Sans"
color="#102f4a"> </font></font><font
style="font-size:14px" face="Open Sans"><font
size="-1" face="Open Sans"><font size="-1"
face="Open Sans"><a href="http://www.sonoc.io"
style="color:rgb(0,153,204)" target="_blank"
moz-do-not-send="true"><span
style="color:rgb(0,155,223)">www.sonoc.io</span></a></font></font></font></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>