<p>I did as you specified, but it works ok for me. The message looks like this</p>

<pre><code>U 2015/11/13 18:28:35.341090 192.168.2.6:5060 -&gt; 192.168.2.6:5080
INVITE sip:192.168.2.6:5080 SIP/2.0.
Via: SIP/2.0/UDP 192.168.2.6:5060;branch=z9hG4bK3e49.df36162.0.
To: sipp &lt;sip:192.168.2.6&gt;.
From: opensips &lt;sip:192.168.2.6:5060&gt;;tag=f27851d028408c385ef0691f4f0a49c1-b62b.
CSeq: 10 INVITE.
Call-ID: 7a5bf9fd-7912@192.168.2.6.
Max-Forwards: 70.
Content-Length: 12.
User-Agent: OpenSIPS (2.1.1 (i386/linux)).
Content-Type: application/dialog-info+xml.
.
Hello World!
</code></pre>

<p>and i generate a t_new_request() on each INVITE received. Are you processing the message with any other function before or after you call add_body()? </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#issuecomment-156481090">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcidlKiM7h1FihpWoUAU9EgejAk0SZks5pFghVgaJpZM4Ghzws.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#issuecomment-156481090"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>