<p>I have some updates regarding this issue:</p>

<p>After several attempts to make my script work I think it is ok now:</p>

<pre><code>route[TO_PSTN] {
    xlog("L_INFO", "##### Converting to multipart...");
    set_body_multipart();
    if(msg_apply_changes()) {
        xlog("L_INFO", "##### Adding ISUP part...");
        append_body_part("7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c",
                         "application/ISUP;base=itu-t88;version=itu-t92+","signal;handling=required");

        xlog("L_INFO", "##### Getting ready to send ISUP.");
        if(msg_apply_changes()) {
            xlog("L_INFO", "##### Ready to send ISUP.");
        }
    }
}
</code></pre>

<p>A can see a valid multipart message now.  I think the <code>textops</code> documentation can be a little more clear on how to modify messages and calling <code>msg_apply_changes</code> after each modification from <code>textopsx</code> (not the same module).</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/661#issuecomment-225559006">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZU8Ptwn6x5LkyehfL9tW_gzFFc92ks5qLUNkgaJpZM4IvvnJ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTuMTwGV_vb18vHIAGG2FEuwCN32ks5qLUNkgaJpZM4IvvnJ.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/661#issuecomment-225559006"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>