Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avp_ops: failure to start if db ops used only in async mode #757

Closed
ovidiusas opened this issue Jan 15, 2016 · 2 comments
Closed

avp_ops: failure to start if db ops used only in async mode #757

ovidiusas opened this issue Jan 15, 2016 · 2 comments

Comments

@ovidiusas
Copy link
Member

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/]
@razvancrainea
Copy link
Member

Hi, Ovidiu!

Are you using the async query in a switch statement? If so, this bug was already fixed in the master branch and I have just backported it to 2.1. A bit too late though :(.

Best regards,
Răzvan

@ovidiusas
Copy link
Member Author

All good now. Thanks for the backport.

-ovidiu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants