<p></p>
<p dir="auto">Hi, thank you for the feedback!</p>
<p dir="auto">Yes, I was also thinking about that double lock_get()/release(). Actually in my tests I updated the code to be under a single lock_get()/release(), kept shm alloc outside the locks and shm released it when/if necessary inside lock_get()/release().</p>
<p dir="auto">Since this new addmodes might have valid use cases in some scenarios, I will update the PR soon. In the short time frame, got no intention to update the code to using hash table, but maybe in the longer time frame will do it.</p>
<p dir="auto">Thank you,<br>
Stefan</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3053#issuecomment-1077749584">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOVXUICY35TXFGHOUTVBSCEJANCNFSM5QUW7QNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZL3XWK3LNADO5WIZ7LVBSCEJA5CNFSM5QUW7QN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIA6SOUA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3053/c1077749584</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3053#issuecomment-1077749584",
"url": "https://github.com/kamailio/kamailio/pull/3053#issuecomment-1077749584",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>