Asterisk - The Open Source Telephony Project
18.5.0
|
#include "asterisk.h"
#include <pjsip.h>
#include <pjlib.h>
#include "asterisk/res_pjsip.h"
#include "include/res_pjsip_private.h"
#include "asterisk/logger.h"
#include "asterisk/sorcery.h"
Go to the source code of this file.
Functions | |
int | ast_sip_initialize_sorcery_domain_alias (void) |
Initialize sorcery with domain alias support. More... | |
static void * | domain_alias_alloc (const char *name) |
static int | domain_alias_apply (const struct ast_sorcery *sorcery, void *obj) |
Apply handler for domain_alias type. More... | |
static void | domain_alias_destroy (void *obj) |
int ast_sip_initialize_sorcery_domain_alias | ( | void | ) |
Initialize sorcery with domain alias support.
Definition at line 71 of file config_domain_aliases.c.
References ast_sip_get_sorcery(), ast_sorcery_apply_default, ast_sorcery_object_field_register, ast_sorcery_object_register, domain_alias_alloc(), domain_alias_apply(), NULL, OPT_NOOP_T, OPT_STRINGFIELD_T, SIP_SORCERY_DOMAIN_ALIAS_TYPE, sorcery, and STRFLDSET.
Referenced by ast_res_pjsip_initialize_configuration().
|
static |
Definition at line 36 of file config_domain_aliases.c.
References ao2_cleanup, ast_sorcery_generic_alloc(), ast_string_field_init, domain_alias_destroy(), and NULL.
Referenced by ast_sip_initialize_sorcery_domain_alias().
|
static |
Apply handler for domain_alias type.
Definition at line 54 of file config_domain_aliases.c.
References ast_log, ast_sorcery_object_get_id(), ast_strlen_zero, ast_sip_domain_alias::domain, LOG_ERROR, and SIP_SORCERY_DOMAIN_ALIAS_TYPE.
Referenced by ast_sip_initialize_sorcery_domain_alias().
|
static |
Definition at line 29 of file config_domain_aliases.c.
References ast_string_field_free_memory.
Referenced by domain_alias_alloc().