<p>version: opensips 2.1.1 (x86_64/linux)<br>
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
main.c compiled on 00:00:43 Aug 29 2015 with gcc 4.4.7</p>

<p>When i trying to insert new body to some message in local_route by using add_body("$var(newbody)", "application/dialog-info+xml"), it inserts body itself, but doesn't insert content-type header</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/698">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcierwzKK7f1yceZDapUprHxvR33Xcks5pFdYLgaJpZM4Ghzws.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/OpenSIPS/opensips/issues/698"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>