<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The function calls that populate the rtpstat pvar are not properly
    set up at the moment.  I will work on getting a pull request
    together with a fix.<br>
    -Eric<br>
    <br>
    <div class="moz-cite-prefix">On 03/18/2015 11:05 AM, Rob Gagnon
      wrote:<br>
    </div>
    <blockquote cite="mid:OpenSIPS%2Fopensips%2Fissues%2F434@github.com"
      type="cite">
      <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;">—<br>
        Reply to this email directly or <a moz-do-not-send="true"
          href="https://github.com/OpenSIPS/opensips/issues/434">view it
          on GitHub</a>.<img moz-do-not-send="true" alt=""
src="https://github.com/notifications/beacon/AFOciQ7doah3APFVrnOQIOldPVByJDLfks5n2af2gaJpZM4DwyTH.gif"
          height="1" 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">
          <meta itemprop="name" content="View Issue">
        </div>
        <meta itemprop="description" content="View this Issue on GitHub">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>