Asterisk - The Open Source Telephony Project GIT-master-5782b03
|
Built in bridging interval features. More...
#include "asterisk.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/bridge.h"
#include "asterisk/file.h"
#include "asterisk/app.h"
#include "asterisk/astobj2.h"
#include "asterisk/test.h"
#include "asterisk/say.h"
#include "asterisk/stringfields.h"
#include "asterisk/musiconhold.h"
#include "asterisk/causes.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | bridge_builtin_set_limits (struct ast_bridge_features *features, struct ast_bridge_features_limits *limits, enum ast_bridge_hook_remove_flags remove_flags) |
static int | bridge_features_connect_callback (struct ast_bridge_channel *bridge_channel, void *hook_pvt) |
static int | bridge_features_duration_callback (struct ast_bridge_channel *bridge_channel, void *hook_pvt) |
static void | bridge_features_limits_copy (struct ast_bridge_features_limits *dst, struct ast_bridge_features_limits *src) |
static void | bridge_features_limits_dtor (void *vdoomed) |
static int | bridge_features_warning_callback (struct ast_bridge_channel *bridge_channel, void *hook_pvt) |
static void | limits_interval_playback (struct ast_bridge_channel *bridge_channel, struct ast_bridge_features_limits *limits, const char *file) |
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 = "Built in bridging interval features" , .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 = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
Built in bridging interval features.
Definition in file bridge_builtin_interval_features.c.
|
static |
Definition at line 215 of file bridge_builtin_interval_features.c.
|
static |
Definition at line 215 of file bridge_builtin_interval_features.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 215 of file bridge_builtin_interval_features.c.
|
static |
Definition at line 148 of file bridge_builtin_interval_features.c.
References __ao2_cleanup(), AO2_ALLOC_OPT_LOCK_NOLOCK, ao2_alloc_options, ao2_cleanup, ao2_ref, ast_bridge_features_limits_construct(), AST_BRIDGE_HOOK_TIMER_OPTION_MEDIA, ast_bridge_interval_hook(), ast_log, ast_module_ref, ast_module_unref, ast_samp2tv(), ast_strlen_zero(), ast_tvadd(), ast_tvnow(), bridge_features_connect_callback(), bridge_features_duration_callback(), bridge_features_limits_copy(), bridge_features_limits_dtor(), bridge_features_warning_callback(), LOG_ERROR, LOG_WARNING, NULL, RAII_VAR, and ast_module_info::self.
Referenced by load_module().
|
static |
Definition at line 115 of file bridge_builtin_interval_features.c.
References limits_interval_playback().
Referenced by bridge_builtin_set_limits().
|
static |
Definition at line 51 of file bridge_builtin_interval_features.c.
References ast_bridge_channel_leave_bridge(), AST_CAUSE_NORMAL_CLEARING, ast_channel_name(), AST_DIGIT_NONE, ast_stream_and_wait(), ast_strlen_zero(), ast_test_suite_event_notify, BRIDGE_CHANNEL_STATE_END, and ast_bridge_channel::chan.
Referenced by bridge_builtin_set_limits().
|
static |
Definition at line 131 of file bridge_builtin_interval_features.c.
References ast_string_fields_copy, ast_bridge_features_limits::duration, ast_bridge_features_limits::frequency, ast_bridge_features_limits::quitting_time, and ast_bridge_features_limits::warning.
Referenced by bridge_builtin_set_limits().
|
static |
Definition at line 140 of file bridge_builtin_interval_features.c.
References ast_bridge_features_limits_destroy(), ast_module_unref, and ast_module_info::self.
Referenced by bridge_builtin_set_limits().
|
static |
Definition at line 123 of file bridge_builtin_interval_features.c.
References limits_interval_playback().
Referenced by bridge_builtin_set_limits().
|
static |
Definition at line 67 of file bridge_builtin_interval_features.c.
References ast_channel_flags(), ast_channel_language(), ast_channel_latest_musicclass(), ast_channel_lock, ast_channel_unlock, AST_DIGIT_NONE, AST_FLAG_MOH, ast_moh_start(), ast_say_number(), ast_strdupa, ast_stream_and_wait(), ast_test_flag, ast_tvdiff_ms(), ast_tvnow(), ast_bridge_channel::chan, make_ari_stubs::file, min, and NULL.
Referenced by bridge_features_connect_callback(), and bridge_features_warning_callback().
|
static |
Definition at line 209 of file bridge_builtin_interval_features.c.
References AST_BRIDGE_BUILTIN_INTERVAL_LIMITS, ast_bridge_interval_register(), and bridge_builtin_set_limits().
|
static |
Definition at line 203 of file bridge_builtin_interval_features.c.
References AST_BRIDGE_BUILTIN_INTERVAL_LIMITS, and ast_bridge_interval_unregister().
|
static |
Definition at line 215 of file bridge_builtin_interval_features.c.
|
static |
Definition at line 215 of file bridge_builtin_interval_features.c.