<p></p>
<p dir="auto">Using msg.call_function() should be avoided because is a hack to executed kamailio native config functions and can lead to crashes and memory leaks. It cannot be made completely safe due to custom optimisations done by kamailio native config interpreter, unless one goes one by one for each functions and analyses all kind of parameters and combinations. If you want to go that way, pull requests are welcome!</p>
<p dir="auto">Otherwise, you should use the KEMI framework exported functions:</p>
<ul dir="auto">
<li><a href="https://www.kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#corex" rel="nofollow">https://www.kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#corex</a></li>
</ul>
<p dir="auto">If you want to discuss more, then email to <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a> .</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/issues/3113#issuecomment-1128712077">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLGLWRYUSWU2R22VULVKNZ43ANCNFSM5WEBD24Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZPM2S4KGDCDNO244TTVKNZ43A5CNFSM5WEBD242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOINDMPDI.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/issues/3113/1128712077</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/issues/3113#issuecomment-1128712077",
"url": "https://github.com/kamailio/kamailio/issues/3113#issuecomment-1128712077",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>