[asterisk-users] web-meetme cbmysql not registered

Dan Austin Dan_Austin at Phoenix.com
Tue Jan 30 11:16:41 MST 2007


Ma wrote:
> WARNING[20225] pbx.c: No application 'CBMysql'
> for extension (default, 1995, 3)

> I check the application, it didn't registered

>	CLI> core show application CBMySQL
>	Your application(s) is (are) not registered

> But I can see it  use "show module"

I made a small mess of supporting the new module
loading process.  The code attempts to determine 
if the config file was successfully loaded, and
only then load the module and register the 
application.

That is all fine and well, except I failed to
properly flag a successful config load.  How it
ever worked for me, I don't know, but here is a
quick fix:

Find this section of the code-
ast_log(LOG_NOTICE,"Successfully connected to MySQL database.\n");
connected = 1;
records = 0;
connect_time = time(NULL);
}

And add this:
        if (connected)
                return 1;
        else
                return 0;

I'll get an update into svn if this works for you and
release 3.0.1

Dan




More information about the asterisk-users mailing list