<p>It still changes the expected behaviour and somehow adds unnecessary complexity as I expect one wants a variant, not the both at the same time.</p>

<p>Perhaps the best is to have another index notation for this case, like:</p>

<pre><code>$(avp(x)[+])
</code></pre>

<p>or</p>

<pre><code>$(avp(x)[**])
</code></pre>

<p>The parser function of the index needs to be extended, but that should be easy. Then there are not many pvs using '*' index, thus would not be hard to propagate.</p>

<p>To decide: what to return in case of using the new index in print function (e.g., xlog) -- I would say the first value. CSV is available with '*'.</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/kamailio/kamailio/pull/18#issuecomment-74041098">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUMFeBBXlBXzN4N76xhIwKPn7fffks5nrGmPgaJpZM4DOX5A.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/18#issuecomment-74041098"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>