<p>That could actually be part of this case -- the values are cloned by each process to avoid sync'ing with mutexes at runtime. Each process gets the new value when it executes cfg_update(), which is typically done when a process has something new to do (e.g., process a new sip message). In your test case, as the old value is still referenced by other processes, might not be destroyed.</p>
<p>This part of code is inherited from SER project, I am not very familiar with, that's why I am saying it might be designed for a different purpose than is expected here (i.e., not for use with very often changes of values). My comments here are based on a brief look at the code.</p>
<p>And, as I said, for needs related to values that need to be changed very often via rpc, better use shared variable or shared hash table variables.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2094?email_source=notifications&email_token=ABO7UZMBKP7CDUZWEXHOKRDQNXKI7A5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX2WZA#issuecomment-539994980">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIORFI4N7TPSPQEMFDQNXKI7ANCNFSM4I5QAI6A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKYXPWGUPWGKRZMZPLQNXKI7A5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX2WZA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2094?email_source=notifications\u0026email_token=ABO7UZMBKP7CDUZWEXHOKRDQNXKI7A5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX2WZA#issuecomment-539994980",
"url": "https://github.com/kamailio/kamailio/issues/2094?email_source=notifications\u0026email_token=ABO7UZMBKP7CDUZWEXHOKRDQNXKI7A5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAX2WZA#issuecomment-539994980",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>