|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
static int | add_extension (struct ast_context *context, const char *exten, int priority, const char *application) |
|
static int | add_hints (const char *context, const char *exten, const char *application, const char *id) |
|
struct ast_module * | AST_MODULE_SELF_SYM (void) |
|
static | AST_VECTOR_RW (object_type_wizards, struct object_type_wizard *) |
|
static void * | create_object (const struct ast_sorcery *sorcery, const char *id, const char *type, struct ast_variable *vars) |
| Creates a sorcery object and applies a variable list.
|
|
static int | delete_existing_cb (void *obj, void *arg, int flags) |
|
static int | delete_extens (const char *context, const char *exten) |
|
static struct object_type_wizard * | find_wizard (const char *object_type) |
| Finds the otw for the object type.
|
|
static struct ast_variable * | get_object_variables (struct ast_variable *vars, char *prefix) |
| We need to strip off the prefix from the name of each variable so they're suitable for objectset_apply. I.E. will transform outbound_auth/username to username.
|
|
static int | handle_aor (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz, struct string_vector *remote_hosts_vector) |
|
static int | handle_auth (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz, char *direction) |
|
static int | handle_auths (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz) |
|
static int | handle_endpoint (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz) |
|
static char * | handle_export_primitives (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
|
static int | handle_identify (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz, struct string_vector *remote_hosts_vector) |
|
static int | handle_phoneprov (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz) |
|
static int | handle_registrations (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz, struct string_vector *remote_hosts_vector) |
|
static void | instance_created_observer (const char *name, struct ast_sorcery *sorcery) |
| When the res_pjsip instance is created, add an observer to it and initialize the wizard vector. Also, bump the module's ref count so it can't be unloaded before the sorcery instance is destroyed.
|
|
static void | instance_destroying_observer (const char *name, struct ast_sorcery *sorcery) |
| When the res_pjsip instance is destroyed, remove the observer and unref the module. This should then allow this module to unload cleanly.
|
|
static int | is_one_of (const char *needle, const char *haystack[]) |
|
static int | is_variable_true (struct ast_variable *vars, const char *name) |
| Finds the last variable in a list and tests it.
|
|
static int | load_module (void) |
|
static void | object_type_loaded_observer (const char *name, const struct ast_sorcery *sorcery, const char *object_type, int reloaded) |
| Called after an object type is loaded/reloaded.
|
|
static void | object_type_registered_observer (const char *name, struct ast_sorcery *sorcery, const char *object_type) |
| When each object type is registered, map a memory wizard to it.
|
|
static int | unload_module (void) |
|
static int | variable_list_append (struct ast_variable **existing, const char *name, const char *value) |
| Appends a variable to the end of an existing list.
|
|
static int | wizard_apply_handler (const struct ast_sorcery *sorcery, struct object_type_wizard *otw, struct ast_category *wiz) |
|
static void | wizard_mapped_observer (const char *name, struct ast_sorcery *sorcery, const char *object_type, struct ast_sorcery_wizard *wizard, const char *wizard_args, void *wizard_data) |
| When each wizard is mapped, save it off to the vector.
|
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER , .description = "PJSIP Config Wizard" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "da6642af068ee5e6490c5b1d2cc1d238" , .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_REALTIME_DRIVER, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_cli_entry | config_wizard_cli [] |
|
static const struct ast_sorcery_global_observer | global_observer |
|
struct ast_sorcery_instance_observer | observer |
|