<p>I haven't really went that deep in the related code, but there are reference counters behind those values, so they might be released when all processes get to use the new value, which can be later in time (or never, depending on the type of sip traffic). Overall, I am not sure if the framework was designed to deal with very often changes, could be more for adjusting some global/custom/module parameters from time to time to avoid restarting kamailio.</p>
<p>With the first example in this report, changing very often the ac_extra_hdrs for tm is not likely, imo.</p>
<p>If you need to use in config a string variable that has to be changed very often via rpc, use better $shv(x) or $sht(t=>x) .</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=ABO7UZLM7LJKYOB6BSLMHPLQNWS6RA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAXKVSY#issuecomment-539929291">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPCDO7ACSWVXVDTYSTQNWS6RANCNFSM4I5QAI6A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZOJIRGS57GUBSP5DNLQNWS6RA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAXKVSY.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=ABO7UZLM7LJKYOB6BSLMHPLQNWS6RA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAXKVSY#issuecomment-539929291",
"url": "https://github.com/kamailio/kamailio/issues/2094?email_source=notifications\u0026email_token=ABO7UZLM7LJKYOB6BSLMHPLQNWS6RA5CNFSM4I5QAI6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAXKVSY#issuecomment-539929291",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>