Ben, emails are welcome, as they provide valuable feedback for us ;)

Do you say that avpops + db_virtual combination was working in 1.11 ? I remember there were some fixes couple of months ago in regards to how the capabilities do propagate via the virtual module.


Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
OpenSIPS Summit 2018

On 02/15/2018 02:36 AM, Ben Newlin wrote:


Sorry for all of the emails! I have found one more issue while trying to upgrade from OpenSIPS 1.11 to 2.x. We use the db_virtual module in front of our redundant Postgres DB instances to facilitate failover between the DBs. We also use the avpops module to perform raw queries against the DB. In both 2.2.6 and 2.3.3 I get the following error when trying to load this configuration:

CRITICAL:avpops:avpops_db_bind: database modules (virtual://set1) does not provide all functions needed by avpops module

ERROR:core:init_mod: failed to initialize module avpops

My configuration is as follows:

#// PostgreSQL Database module

loadmodule ""

modparam("db_postgres", "exec_query_threshold", 500000)

#// Virtual DB module

loadmodule ""

modparam("db_virtual", "db_urls", "define set1 ROUND")

modparam("db_virtual", "db_urls", "postgres://postgres:postgres@")

#//  AVP OPerationS module

loadmodule ""

modparam("avpops", "db_url", "virtual://set1")

Is db_virtual simply not compatible with the new OpenSIPS versions or has something changed in the configuration that I am missing?


Ben Newlin

Users mailing list

Users mailing list

Reply via email to