<p>More info as I am looking for the solution in case anyone else wants to be a detective....</p>

<p>In configuration, this is set during route[]<br>
<code>$var(rtp_params) = "replace-origin ICE=remove replace-session-connection";</code><br>
then, during INVITE with SDP:<br>
<code>if (rtpengine_offer("$var(rtp_params)")) {</code><br>
and finally during onreply_route[] with SDP:</p>

<pre lang='rtpengine_answer("$var(rtp_params)");```'><code>
What is happening is SOMETIMES, $var(rtp_params) is NULL before it gets sent into rtpengine_answer().

If I change all instances of the variable to just be the hard-coded string of flags, then everything works fine.  In fact, the $var is NEVER null in the onreply_route[] when I do that.

My belief now is that rtpengine_offer() is somehow NULLifying the value of the $var as if it were passed by reference, but only SOMETIMES.
</code></pre>

<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/433#issuecomment-83204079">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciRTO2CtFb-h3XbtDe5gezAxoWStdks5n2e8KgaJpZM4Dwxdd.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-83204079"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>