<p>pkg_malloc() for name and value is not needed. It is more traumatic to allocate in pkg, then copy there and then free after adding as Kamailio AVP (there is no benefit, only a lot of operations here for nothing good). When adding as a K AVP, the name and value are cloned in shared memory. Copying the values directly from the RADIUS AVP is ok (like it was so far) and faster.</p>

<p>The new patches are on top of the old one, this is not what we want to commit, because there must be a patch per module, starting from the existing code. Now it is hard to review the contribution, because we have to analyse patches to patches, not being easy to spot eventual bugs. These patches in the pull request must be discarded and create new ones against Kamailio master.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/14#issuecomment-68605236">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWsId87OPfXT7XknBQbBy8yEEqleks5neDKjgaJpZM4DL89j.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/14#issuecomment-68605236"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>