[SR-Users] get_profile_size question

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 7 21:32:53 CEST 2021


Hello,

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).

Cheers,
Daniel

On 05.06.21 08:11, David Escartín wrote:
> hello Daniel
>
> 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
> In parallel, we do get the profile size of the same profile label we
> use for the redis hash key.
>
> best regards
> david
>
> <http://www.sonoc.io/> 	
> David Escartín​
>
> NOC engineer
>
> *www.sonoc.io* <http://www.sonoc.io/>
>
> LinkedIn <https://www.linkedin.com/company/sonoc>
>
> 	
> Twitter <https://twitter.com/sonoc_>
>
> 	
> Facebook <https://www.facebook.com/SONOCio/>
>
> 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.
>> 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: *dataprotection at sonoc.io*
> <mailto:dataprotection at sonoc.io>*.* <mailto:dataprotection at sonoc.io>
>
> El jue, 3 jun 2021 a las 21:08, Daniel-Constantin Mierla
> (<miconda at gmail.com <mailto:miconda at gmail.com>>) escribió:
>
>     Hello,
>
>     what kind of counter do you manually update? How is it defined and
>     when is it updated?
>
>     Cheers,
>     Daniel
>
>     On 03.06.21 12:56, David Escartín wrote:
>>     hello all
>>
>>     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.
>>     We have reviewed the congi and seems everything is done as it
>>     should 🤔
>>     We tried to duplicate the issue, but at least with ~3000
>>     simultaneous dialogs, both measures match.
>>     Would it be possible that at some load kamailio could delay the
>>     dialog expirations for the profile?
>>
>>     best regards
>>     david
>>
>>
>>     -- 
>>     <http://www.sonoc.io/> 	
>>     David Escartín
>>
>>     NOC engineer
>>
>>     *www.sonoc.io* <http://www.sonoc.io/>
>>
>>     LinkedIn <https://www.linkedin.com/company/sonoc>
>>
>>     	
>>     Twitter <https://twitter.com/sonoc_>
>>
>>     	
>>     Facebook <https://www.facebook.com/SONOCio/>
>>
>>     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.
>>
>>     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: *dataprotection at sonoc.io* <mailto:dataprotection at sonoc.io>*.*
>>     <mailto:dataprotection at sonoc.io>
>>
>>
>>     __________________________________________________________
>>     Kamailio - Users Mailing List - Non Commercial Discussions
>>       * sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>>     Important: keep the mailing list in the recipients, do not reply only to the sender!
>>     Edit mailing list options or unsubscribe:
>>       * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>     -- 
>     Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
>       * https://www.asipto.com/sw/kamailio-advanced-training-online/ <https://www.asipto.com/sw/kamailio-advanced-training-online/>
>
>
>
> -- 
> Logo 	
>
> David Escartín Almudévar
> VoIP/Switch Engineer
> descartin at sonoc.io <mailto:descartin at sonoc.io>
>
> *SONOC*
> C/ Josefa Amar y Borbón, 10, 4ª · 50001 Zaragoza, España
> Tlf: +34 917019888 · www.sonoc.io <http://www.sonoc.io>
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210607/08e5a149/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image983066.png
Type: image/png
Size: 791 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210607/08e5a149/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image300431.png
Type: image/png
Size: 830 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210607/08e5a149/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image265948.png
Type: image/png
Size: 810 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210607/08e5a149/attachment-0002.png>


More information about the sr-users mailing list