<p>The function <code>parse_flags()</code> within rtpengine.c is effectively consuming the value of the $var sent into it.</p>
<p>The reason that it only appears to be SOMETIMES is because it depends which child process of opensips handles the message. If the 200 OK happens to land on a process that has already had an rtpengine function called, then it will not be able to process the parameters.</p>
<p>I am developing a patch now that should fix this, and maybe the above issue as well (where <code>char *</code> is set in the prototype instead of <code>gparam_p</code>)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/433#issuecomment-83223585">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQYKzT_UZvjsvJHYP1H6YZEKc04gks5n2gHBgaJpZM4Dwxdd.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/433#issuecomment-83223585"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>