[OpenSIPS-Devel] [opensips] avp_ops: failure to start if db ops used only in async mode (#757)

Ovidiu Sas notifications at github.com
Fri Jan 15 02:35:53 CET 2016


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:
```
ERROR:avpops:__fixup_db_query_avp: no db url defined to be used by this function
```

Workaround: define a dummy route where avp_db_query is used in sync mode
The debug logs will show:
```
DBG:core:is_mod_func_used: function avp_db_query found to be used in script
DBG:core:find_mod_export: found <db_bind_api> in module db_mysql [/usr/local/lib64/opensips/modules/]
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/757
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160114/4951d4f1/attachment.htm>


More information about the Devel mailing list