[SR-Users] get_profile_size question

David Escartín descartin at sonoc.io
Tue Jun 15 09:43:37 CEST 2021


hello Daniel

the counter is updated on dialog failed/end event routes. I have checked
retransmissions and i see they are only triggered once. In double bye cases
the dialog:end event route should only be called once?

thanks a lot
david

El lun, 7 jun 2021 a las 21:37, Daniel-Constantin Mierla (<miconda at gmail.com>)
escribió:

> 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/>
> [image: LinkedIn] <https://www.linkedin.com/company/sonoc>
> [image: Twitter] <https://twitter.com/sonoc_>
> [image: 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*
> <dataprotection at sonoc.io>*.* <dataprotection at sonoc.io>
> El jue, 3 jun 2021 a las 21:08, Daniel-Constantin Mierla (<
> 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/>
>> [image: LinkedIn] <https://www.linkedin.com/company/sonoc>
>> [image: Twitter] <https://twitter.com/sonoc_>
>> [image: 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*
>> <dataprotection at sonoc.io>*.* <dataprotection at sonoc.io>
>>
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * 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
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.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/
>>
>>
>
> --
> [image: Logo]
>
> David Escartín Almudévar
> VoIP/Switch Engineer
> descartin at sonoc.io
>
> *SONOC*
> C/ Josefa Amar y Borbón, 10, 4ª · 50001 Zaragoza, España
> Tlf: +34 917019888 · www.sonoc.io
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.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/
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * 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
>
>

-- 
[image: Logo]

David Escartín Almudévar
VoIP/Switch Engineer
descartin at sonoc.io

*SONOC*
C/ Josefa Amar y Borbón, 10, 4ª · 50001 Zaragoza, España
Tlf: +34 917019888 · www.sonoc.io

David Escartín
NOC engineer
www.sonoc.io
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210615/d72e0c22/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/20210615/d72e0c22/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/20210615/d72e0c22/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/20210615/d72e0c22/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image310498.png
Type: image/png
Size: 791 bytes
Desc: image310498.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210615/d72e0c22/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image931730.png
Type: image/png
Size: 830 bytes
Desc: image931730.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210615/d72e0c22/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image128675.png
Type: image/png
Size: 810 bytes
Desc: image128675.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210615/d72e0c22/attachment-0005.png>


More information about the sr-users mailing list