<p>This affects 2.1.2 hash <a href="https://github.com/OpenSIPS/opensips/commit/c846598345062e0d3bfc04bb0624e9fce1a0ae92" class="commit-link"><tt>c846598</tt></a> running on Centos 6.</p>

<p>If I have the following in my opensips.cfg file:</p>

<p>$var(newTo) = "sip:$rU@$var(someVar)";<br>
uac_replace_to("$var(newTo)");</p>

<p>What I end up with in the actual SIP is a To header that looks like this:</p>

<p>To:  "Foo" sip:$rU@$var(someVar)</p>

<p>I spoke with Bogdan briefly about this on IRC, and he confirms that the uac_replace_XXX functions should be feeding the input through pv_printf_s() and it should replace the $rU and the $var(someVar) with their respective values.  He said this might be a bug, so here I am.  :-)</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/811">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciT64liRYtF3hm8Sq1CxXMJWCuqudks5poJ4dgaJpZM4HkFnU.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/811"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>