<p>Spoke with Vlad-Paiu about this. Currently avp_db_query() requires that the db_id (3rd param) be a constant. By allowing for avp_db_query() to use a $var and $avp, it would allow simplified iteration across an arbitrary number of avpops db urls as defined by the user, and keep from unnecessarily duplicating code.</p>
<p>If it wouldn't be too much trouble, could this functionality please be added? Much thanks in advance.</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/694">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcidSUxttMbCujk7zfIvZujppypz-Iks5pESg9gaJpZM4GfCei.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/694"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>