Missunderstanding about func_odbc


I need to log some events to a database, and from what I read I need to modify func_odbc.config to add some functions.
But I don’t have func_odbc.conf in my config files?
Do I need to modify something? Install something?


You can create your own config based on the example: asterisk/func_odbc.conf.sample at master · asterisk/asterisk · GitHub


But will it be loaded and used just by creating it?

ls /usr/lib64/asterisk/modules/func_odbc.so (on Distro)

if it’s there, and it’s not listed in /etc/asterisk/modules.conf as “noload”, then yes.

You are likely to need to force a reload of the configuration. Most modules that fail to find configuration files will refuse to load.

I thought that a module reload (or general restart) was assumed and understood, but yes, thanks for clarifying.

Wonderfull. Thanks a lot, it is working.
At first it wouldn’t, and “core show function” wouldn’t show my functions.
But after trying a few things (setting ownershit to asterisk, and doing a core restart) it works perfectly.

Thanks again both of your.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.