<p>After successful call with rtpengine proxying the RTP, an attempt to log, or insert the value of $rtpstat into a header does not work.  The content is blank.</p>

<pre><code>...
if (has_totag()) {
   if (loose_route() || topology_hiding_match()) {
      if (is_method("INVITE")) {
         record_route();
      }
      if (is_method("CANCEL|BYE")) {
         append_hf("x-rtp-statistics: $rtpstat\r\n");
         rtpengine_delete();
      }
   }
   route(relay);
} else {
   ...
}
...
</code></pre>

<p>The header appears in the BYE, but there is nothing following the colon.  </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/434">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQ7doah3APFVrnOQIOldPVByJDLfks5n2af2gaJpZM4DwyTH.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/434"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>