Asterisk - The Open Source Telephony Project
21.4.1
|
PJSIP Phoneprov Configuration Provider. More...
#include "asterisk.h"
#include <pjsip.h>
#include "asterisk/res_pjsip.h"
#include "asterisk/module.h"
#include "asterisk/sorcery.h"
#include "asterisk/phoneprov.h"
#include "res_pjsip/include/res_pjsip_private.h"
Go to the source code of this file.
Data Structures | |
struct | phoneprov |
Structure for a phoneprov object. More... | |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | aco_handler (const struct aco_option *opt, struct ast_variable *var, void *obj) |
Adds a config name/value pair to the phoneprov object. | |
static int | assign_and_insert (const char *name, const char *value, struct varshead *vars) |
Helper that creates an ast_var_t and inserts it into the list. | |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | fields_handler (const void *obj, struct ast_variable **fields) |
Converts the phoneprov varlist to an ast_variable list. | |
static int | load_endpoint (const char *id, const char *endpoint_name, struct varshead *vars, char *port_string) |
static int | load_module (void) |
static int | load_users (void) |
Callback that loads the users from phoneprov sections. | |
static void * | phoneprov_alloc (const char *name) |
Allocator for phoneprov. | |
static void | phoneprov_destroy (void *obj) |
Destructor function for phoneprov. | |
static int | reload_module (void) |
static int | unload_module (void) |
static void | users_apply_handler (struct phoneprov *pp) |
Callback that validates the phoneprov object. | |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "PJSIP Phoneprov Provider" , .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_EXTENDED, .load = load_module, .reload = reload_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND, .requires = "res_pjsip,res_phoneprov", } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_sorcery * | sorcery |
PJSIP Phoneprov Configuration Provider.
Definition in file res_pjsip_phoneprov_provider.c.