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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
--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

Reply via email to