<p>If avp_db_query is used exclusively in async mode, during init, the avp_db_query function is not found in script and opensips is failing to start with the following error being reported:</p>

<pre><code>ERROR:avpops:__fixup_db_query_avp: no db url defined to be used by this function
</code></pre>

<p>Workaround: define a dummy route where avp_db_query is used in sync mode<br>
The debug logs will show:</p>

<pre><code>DBG:core:is_mod_func_used: function avp_db_query found to be used in script
DBG:core:find_mod_export: found &lt;db_bind_api&gt; in module db_mysql [/usr/local/lib64/opensips/modules/]
</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/757">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQVzbgrURD6tSmQ5gqiQjeEg4Pmoks5paER5gaJpZM4HFZvh.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/757"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>