27 #define AST_API_MODULE
28 #include "asterisk/res_geolocation.h"
29 #include "res_geolocation/geoloc_private.h"
31 static int reload_module(
void)
35 res = geoloc_civicaddr_reload();
39 res = geoloc_gml_reload();
43 res = geoloc_config_reload();
47 res = geoloc_eprofile_reload();
51 res = geoloc_dialplan_reload();
55 res = geoloc_channel_reload();
63 static int unload_module(
void)
67 res += geoloc_channel_unload();
68 res += geoloc_dialplan_unload();
69 res += geoloc_eprofile_unload();
70 res += geoloc_config_unload();
71 res += geoloc_gml_unload();
72 res += geoloc_civicaddr_unload();
77 static int load_module(
void)
81 res = geoloc_civicaddr_load();
87 res = geoloc_gml_load();
92 res = geoloc_config_load();
98 res = geoloc_eprofile_load();
104 res = geoloc_dialplan_load();
110 res = geoloc_channel_load();
119 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER,
"res_geolocation Module for Asterisk",
120 .support_level = AST_MODULE_SUPPORT_CORE,
122 .unload = unload_module,
123 .reload = reload_module,
Asterisk main include file. File version handling, generic pbx functions.
Module has failed to load, may be in an inconsistent state.
#define ASTERISK_GPL_KEY
The text the key() function should return.