<p>Can be merged, but I would like to change the name of the new function -- it can be done in a follow up commit, after merging.</p>

<p>Although there few functions that uses 2 as replacement for 'to' in the name of functions, this is not the common. Then scriptvar is rather long, better use just the 'var', being the name of that variables, there is already a prefix 'pv' that points it is about pseudo-variables. For example, the new name:</p>

<pre><code>pv_var_to_xavp(...)
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/309#issuecomment-136396376">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWlifF-gJpBXlSZ7rqPPr0VSZb4Sks5otGGhgaJpZM4F06Hu.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/kamailio/kamailio/pull/309#issuecomment-136396376"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>