Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
#include "asterisk/module.h"
#include "asterisk/config.h"
#include "asterisk/sorcery.h"
#include "asterisk/lock.h"
#include "asterisk/res_geolocation.h"
Go to the source code of this file.
Macros | |
#define | CONFIG_ENUM(_object, _stem) |
#define | CONFIG_ENUM_HANDLER(_object, _stem) |
#define | CONFIG_ENUM_TO_STR(_object, _stem) |
#define | CONFIG_STR_TO_ENUM(_stem) |
#define | CONFIG_VAR_LIST(_object, _stem) |
#define | CONFIG_VAR_LIST_DUP(_object, _stem) |
#define | CONFIG_VAR_LIST_HANDLER(_object, _stem) |
#define | CONFIG_VAR_LIST_TO_STR(_object, _stem) |
#define | GEOLOC_ENUM_TO_NAME(_stem) |
#define CONFIG_ENUM | ( | _object, | |
_stem | |||
) |
Definition at line 75 of file geoloc_private.h.
#define CONFIG_ENUM_HANDLER | ( | _object, | |
_stem | |||
) |
Definition at line 40 of file geoloc_private.h.
#define CONFIG_ENUM_TO_STR | ( | _object, | |
_stem | |||
) |
Definition at line 63 of file geoloc_private.h.
#define CONFIG_STR_TO_ENUM | ( | _stem | ) |
Definition at line 28 of file geoloc_private.h.
#define CONFIG_VAR_LIST | ( | _object, | |
_stem | |||
) |
Definition at line 123 of file geoloc_private.h.
#define CONFIG_VAR_LIST_DUP | ( | _object, | |
_stem | |||
) |
Definition at line 103 of file geoloc_private.h.
#define CONFIG_VAR_LIST_HANDLER | ( | _object, | |
_stem | |||
) |
Definition at line 81 of file geoloc_private.h.
#define CONFIG_VAR_LIST_TO_STR | ( | _object, | |
_stem | |||
) |
Definition at line 113 of file geoloc_private.h.
#define GEOLOC_ENUM_TO_NAME | ( | _stem | ) |
Definition at line 53 of file geoloc_private.h.
int geoloc_channel_load | ( | void | ) |
Definition at line 316 of file geoloc_datastore.c.
References AST_MODULE_LOAD_SUCCESS, geoloc_get_sorcery(), and geoloc_sorcery.
Referenced by load_module().
int geoloc_channel_reload | ( | void | ) |
Definition at line 322 of file geoloc_datastore.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
int geoloc_channel_unload | ( | void | ) |
Definition at line 308 of file geoloc_datastore.c.
References AST_MODULE_LOAD_SUCCESS, ast_sorcery_unref, and geoloc_sorcery.
Referenced by unload_module().
struct ast_xml_node * geoloc_civicaddr_list_to_xml | ( | const struct ast_variable * | resolved_location, |
const char * | ref_string | ||
) |
Definition at line 89 of file geoloc_civicaddr.c.
References ast_defaultlanguage, ast_strdupa, ast_strings_equal(), ast_strlen_zero(), ast_variable_find_in_list(), ast_xml_free_node(), ast_xml_new_child(), ast_xml_new_node(), ast_xml_set_attribute(), ast_xml_set_text(), LOG_ERROR, NULL, SCOPE_ENTER, SCOPE_EXIT_LOG_RTN_VALUE, SCOPE_EXIT_RTN_VALUE, and var.
Referenced by geoloc_eprofile_to_intermediate().
int geoloc_civicaddr_load | ( | void | ) |
Definition at line 140 of file geoloc_civicaddr.c.
References addr_code_name_entries, ARRAY_LEN, AST_MODULE_LOAD_SUCCESS, and compare_civicaddr_codes().
Referenced by load_module().
int geoloc_civicaddr_reload | ( | void | ) |
Definition at line 148 of file geoloc_civicaddr.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
int geoloc_civicaddr_unload | ( | void | ) |
Definition at line 135 of file geoloc_civicaddr.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by unload_module().
int geoloc_config_load | ( | void | ) |
Definition at line 659 of file geoloc_config.c.
References ast_geoloc_profile::allow_routing_use, ARRAY_LEN, ast_cli_register_multiple, AST_GEOLOC_FORMAT_NONE, ast_log, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, AST_PIDF_ELEMENT_DEVICE, ast_sorcery_apply_config, ast_sorcery_apply_default, AST_SORCERY_APPLY_FAIL, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_apply_wizard_mapping, ast_sorcery_load(), ast_sorcery_object_field_register, ast_sorcery_object_field_register_custom, ast_sorcery_object_register, ast_sorcery_open, FLDSET, geoloc_load_default_profiles(), geoloc_location_alloc(), geoloc_location_apply_handler(), geoloc_location_cli_commands, geoloc_profile_alloc(), geoloc_profile_apply_handler(), geoloc_sorcery, ast_geoloc_profile::location_reference, ast_geoloc_profile::location_source, LOG_ERROR, method, notes, NULL, OPT_BOOL_T, OPT_NOOP_T, OPT_STRINGFIELD_T, pidf_element_names, result, STRFLDSET, and ast_geoloc_profile::suppress_empty_ca_elements.
Referenced by load_module().
int geoloc_config_reload | ( | void | ) |
Definition at line 598 of file geoloc_config.c.
References AST_MODULE_LOAD_SUCCESS, ast_sorcery_reload(), and geoloc_sorcery.
Referenced by geoloc_config_cli_reload(), and reload_module().
int geoloc_config_unload | ( | void | ) |
Definition at line 606 of file geoloc_config.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), ast_sorcery_object_unregister(), ast_sorcery_unref, geoloc_location_cli_commands, geoloc_sorcery, and NULL.
Referenced by unload_module().
int geoloc_dialplan_load | ( | void | ) |
Definition at line 363 of file geoloc_dialplan.c.
References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and geoloc_function.
Referenced by load_module().
int geoloc_dialplan_reload | ( | void | ) |
Definition at line 372 of file geoloc_dialplan.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
int geoloc_dialplan_unload | ( | void | ) |
Definition at line 356 of file geoloc_dialplan.c.
References ast_custom_function_unregister(), AST_MODULE_LOAD_SUCCESS, and geoloc_function.
Referenced by unload_module().
int geoloc_eprofile_load | ( | void | ) |
Definition at line 1178 of file geoloc_eprofile.c.
References _binary_res_geolocation_eprofile_to_pidf_xslt_end, _binary_res_geolocation_eprofile_to_pidf_xslt_start, _binary_res_geolocation_pidf_lo_test_xml_end, _binary_res_geolocation_pidf_lo_test_xml_start, _binary_res_geolocation_pidf_to_eprofile_xslt_end, _binary_res_geolocation_pidf_to_eprofile_xslt_start, ast_log, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, eprofile_to_pidf_xslt, eprofile_to_pidf_xslt_size, geoloc_get_sorcery(), geoloc_sorcery, load_tests(), LOG_ERROR, pidf_lo_test_xml_size, pidf_to_eprofile_xslt, and pidf_to_eprofile_xslt_size.
Referenced by load_module().
int geoloc_eprofile_reload | ( | void | ) |
Definition at line 1211 of file geoloc_eprofile.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
struct ast_variable * geoloc_eprofile_resolve_varlist | ( | struct ast_variable * | source, |
struct ast_variable * | variables, | ||
struct ast_channel * | chan | ||
) |
Definition at line 351 of file geoloc_eprofile.c.
References ast_str_alloca, ast_str_buffer(), ast_str_reset(), ast_str_substitute_variables_full2(), ast_var_assign, ast_var_list_create(), ast_var_list_destroy(), AST_VAR_LIST_INSERT_TAIL(), ast_variable_list_append, ast_variable_new, ast_variables_destroy(), buf, NULL, and var.
Referenced by ast_geoloc_eprofile_to_uri(), and geoloc_eprofile_to_intermediate().
int geoloc_eprofile_unload | ( | void | ) |
Definition at line 1160 of file geoloc_eprofile.c.
References AST_MODULE_LOAD_SUCCESS, ast_sorcery_unref, eprofile_to_pidf_xslt, geoloc_sorcery, pidf_to_eprofile_xslt, and unload_tests().
Referenced by unload_module().
struct ast_sorcery * geoloc_get_sorcery | ( | void | ) |
Definition at line 244 of file geoloc_config.c.
References ast_sorcery_ref(), and geoloc_sorcery.
Referenced by geoloc_channel_load(), and geoloc_eprofile_load().
struct ast_xml_node * geoloc_gml_list_to_xml | ( | const struct ast_variable * | resolved_location, |
const char * | ref_string | ||
) |
Definition at line 238 of file geoloc_gml.c.
References a, ast_begins_with(), ast_free, ast_strdup, ast_strings_equal(), ast_strlen_zero(), ast_variable_find_in_list(), ast_xml_free_node(), ast_xml_new_child(), ast_xml_new_node(), ast_xml_set_attribute(), ast_xml_set_text(), LOG_ERROR, NULL, RAII_VAR, SCOPE_ENTER, SCOPE_EXIT_LOG_RTN_VALUE, SCOPE_EXIT_RTN_VALUE, strsep(), value, and var.
Referenced by geoloc_eprofile_to_intermediate().
int geoloc_gml_load | ( | void | ) |
Definition at line 357 of file geoloc_gml.c.
References ARRAY_LEN, ast_cli_register_multiple, AST_MODULE_LOAD_SUCCESS, and geoloc_gml_cli.
Referenced by load_module().
int geoloc_gml_reload | ( | void | ) |
Definition at line 364 of file geoloc_gml.c.
References AST_MODULE_LOAD_SUCCESS.
Referenced by reload_module().
int geoloc_gml_unload | ( | void | ) |
Definition at line 350 of file geoloc_gml.c.
References ARRAY_LEN, ast_cli_unregister_multiple(), AST_MODULE_LOAD_SUCCESS, and geoloc_gml_cli.
Referenced by unload_module().