Usage of the SAForum AIS (Application Interface Specification) More...
#include "asterisk.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <pthread.h>
#include "ais/ais.h"
#include "asterisk/module.h"
#include "asterisk/options.h"
#include "asterisk/logger.h"
#include "asterisk/channel.h"
#include "asterisk/utils.h"
#include "asterisk/cli.h"
Go to the source code of this file.
Data Structures | |
struct | ais_error |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
const char * | ais_err2str (SaAisErrorT error) |
int | ast_ais_cmd (enum ast_ais_cmd cmd) |
ASTERISK_FILE_VERSION (__FILE__,"$Revision: 359053 $") | |
static void * | dispatch_thread_handler (void *data) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "SAForum AIS" , .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 = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } |
static struct ais_error | ais_errors [] |
SaVersionT | ais_version = { 'B', 1, 1 } |
static struct ast_module_info * | ast_module_info = &__mod_info |
struct { | |
int alert_pipe [2] | |
pthread_t id | |
unsigned int stop:1 | |
} | dispatch_thread |
Usage of the SAForum AIS (Application Interface Specification)
This file contains the common code between the uses of the different AIS services.
Definition in file res_ais.c.
const char* ais_err2str | ( | SaAisErrorT | error | ) |
Definition at line 105 of file res_ais.c.
References ais_errors, ARRAY_LEN, and ais_error::desc.
Referenced by add_subscribe_event(), ast_ais_clm_load_module(), ast_ais_clm_unload_module(), ast_ais_evt_load_module(), ast_ais_evt_unload_module(), ast_event_cb(), build_event_channel(), event_channel_destroy(), evt_event_deliver_cb(), and subscribe_event_destroy().
int ast_ais_cmd | ( | enum ast_ais_cmd | cmd | ) |
Definition at line 182 of file res_ais.c.
References ast_debug, and dispatch_thread.
ASTERISK_FILE_VERSION | ( | __FILE__ | , |
"$Revision: 359053 $" | |||
) |
|
static |
Definition at line 117 of file res_ais.c.
References ARRAY_LEN, AST_AIS_CMD_EXIT, AST_AIS_CMD_MEMBERSHIP_CHANGED, ast_ais_evt_membership_changed(), ast_debug, ast_log(), ast_poll, clm_handle, dispatch_thread, errno, evt_handle, and LOG_ERROR.
Referenced by load_module().
|
static |
Definition at line 193 of file res_ais.c.
References ast_ais_clm_load_module(), ast_ais_clm_unload_module(), ast_ais_evt_load_module(), ast_ais_evt_unload_module(), ast_log(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_pthread_create_background, dispatch_thread, dispatch_thread_handler(), errno, and LOG_ERROR.
|
static |
Definition at line 226 of file res_ais.c.
References ast_ais_clm_unload_module(), AST_AIS_CMD_EXIT, ast_ais_evt_unload_module(), ast_log(), AST_PTHREADT_NULL, dispatch_thread, errno, and LOG_ERROR.
|
static |
|
static |
Referenced by ais_err2str().
SaVersionT ais_version = { 'B', 1, 1 } |
Definition at line 70 of file res_ais.c.
Referenced by ast_ais_clm_load_module(), and ast_ais_evt_load_module().
|
static |
struct { ... } dispatch_thread |
Referenced by ast_ais_cmd(), dispatch_thread_handler(), load_module(), and unload_module().