<p>Hi,</p>

<p>I am using Kamailio version: kamailio 4.3.0 (x86_64/linux) c6aa95 on CentOS 6</p>

<p>I am trying to encapsulate ISUP in the INVITE:</p>

<pre><code>...
if(has_body("application/sdp"))
{
      set_body_multipart();
        if(msg_apply_changes())
        {
              $var(isup) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
                append_body_part("$var(isup)","application/isup; version=itu-t92+","signal; handling=optional");
        xlog("L_INFO", "ISUP Changes Applied Succesfully");
        }
}

ds_select_dst("2","8");
...
</code></pre>

<p>And getting the following error:</p>

<pre><code> kamailio: DEBUG: <core> [msg_translator.c:1691]: get_boundary(): boundary is <--unique-boundary-1>
...
 kamailio: DEBUG: <core> [msg_translator.c:1808]: check_boundaries(): last bondary without -- at the end
 kamailio: DEBUG: <core> [msg_translator.c:1612]: replace_body(): old size body[365] actual[534]
 kamailio: CRITICAL: <core> [data_lump.c:463]: free_lump(): non free-able lump: 0x7f7a33d5ae40 flags=1
</code></pre>

<p>and then Kamailio crashes.</p>

<p>DEBUG:</p>

<pre><code>Jul  9 15:21:56 kamailiohost kamailio: DEBUG: <core> [msg_translator.c:1808]: check_boundaries(): last bondary without -- at the end
Jul  9 15:21:56 kamailiohost kamailio: DEBUG: <core> [msg_translator.c:1612]: replace_body(): old size body[365] actual[513]
Jul  9 15:21:56 kamailiohost kamailio: CRITICAL: <core> [data_lump.c:463]: free_lump(): non free-able lump: 0x7fc340edc270 flags=1
</code></pre>

<p>Can you please recommend?</p>

<p>p.s. as per: <a href="http://lists.sip-router.org/pipermail/sr-users/2015-July/089018.html">http://lists.sip-router.org/pipermail/sr-users/2015-July/089018.html</a></p>

<p>Thanks,<br>
Andrei</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/issues/240">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZaozVMhxAWLmFVJNzmfsIKLvrlTpks5oboHhgaJpZM4FVVkh.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/issues/240"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>