[asterisk-dev] Module 'app_gbox.so' could not be loaded.
ast guy
astguy at gmail.com
Thu Jun 21 04:02:52 CDT 2007
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "GboX Application");
Added that line but it's giving following error
app_gbox.c: At top level:
app_gbox.c:977: error: 'AST_MODULE' undeclared here (not in a function)
make: *** [app_gbox.o] Error 1
-ag
On 6/18/07, Jeffrey C. Ollie <jeff at ocjtech.us> wrote:
> On Mon, 2007-06-18 at 14:48 +0500, ast guy wrote:
> >
> > ------------------------------------ ---- ------- - - - - - - - -
> >
> > static int unload_module(void)
> > {
> > ast_log(LOG_VERBOSE, "unLoading GboX application \n");
> > ast_unregister_application(app);
> > ast_module_user_hangup_all();
> > return 0;
> > }
> >
> > static int load_module(void)
> > {
> > int res = 0;
> > res = ast_register_application(app, gbox_exec, synopsis, descrip);
> > if (res) {
> > ast_log(LOG_ERROR, "Unable to register GboX application \n");
> > }
> >
> > return res;
> > }
> >
> > When I compile it outputs following errors
> >
> > app_gbox.c:944: warning: 'unload_module' defined but not used
> > app_gbox.c:954: warning: 'load_module' defined but not used
> >
> > Any comments what am I missing for proper application registration.
>
> You need something like this at the end of your file:
>
> AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "GboX Application");
>
> This will make the load_module and unload_module functions available to
> Asterisk so that the module can be loaded/unloaded.
>
> Jeff
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
More information about the asterisk-dev
mailing list