--- chan_ss7_1.2.c 2006-07-03 11:08:09.000000000 -0300
+++ chan_ss7.c 2007-05-30 19:30:06.000000000 -0300
@@ -674,23 +674,13 @@
}
}
-int reload(void) {
+static int reload(void) {
ast_log(LOG_NOTICE, "SS7 reload not implemented.\n");
return 0;
}
-char *description() {
- return (char *) desc;
-}
-
-char *key() {
- return ASTERISK_GPL_KEY;
-}
-
-int load_module(void)
+static int load_module(void)
{
- int i;
-
if(load_config(0)) {
return -1;
}
@@ -729,7 +719,7 @@
return 0;
}
-int unload_module(void)
+static int unload_module(void)
{
ast_cli_unregister_multiple(my_clis, sizeof(my_clis)/ sizeof(my_clis[0]));
@@ -765,3 +755,15 @@
return 0;
}
+
+/* This is a workaround so that menuselect displays a proper description
+ * AST_MODULE_INFO(, , "chan_ss7"
+ */
+
+#define AST_MODULE "chan_ss7"
+
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "chan_ss7",
+ .load = load_module,
+ .unload = unload_module,
+ .reload = reload,
+ );
               (
geocities.com/br/bruno_agostinho)                   (
geocities.com/br)