Asterisk - The Open Source Telephony Project GIT-master-5782b03
|
page() - Paging application More...
#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/file.h"
#include "asterisk/app.h"
#include "asterisk/chanvars.h"
#include "asterisk/utils.h"
#include "asterisk/devicestate.h"
#include "asterisk/dial.h"
Go to the source code of this file.
Data Structures | |
struct | page_options |
Macros | |
#define | PAGE_BEEP "beep" |
Enumerations | |
enum | { OPT_ARG_ANNOUNCE = 0 , OPT_ARG_PREDIAL_CALLEE = 1 , OPT_ARG_PREDIAL_CALLER = 2 , OPT_ARG_ARRAY_SIZE = 3 } |
enum | page_opt_flags { PAGE_DUPLEX = (1 << 0) , PAGE_QUIET = (1 << 1) , PAGE_RECORD = (1 << 2) , PAGE_SKIP = (1 << 3) , PAGE_IGNORE_FORWARDS = (1 << 4) , PAGE_ANNOUNCE = (1 << 5) , PAGE_NOCALLERANNOUNCE = (1 << 6) , PAGE_PREDIAL_CALLEE = (1 << 7) , PAGE_PREDIAL_CALLER = (1 << 8) } |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | load_module (void) |
static int | page_exec (struct ast_channel *chan, const char *data) |
static void | page_state_callback (struct ast_dial *dial) |
static void | setup_profile_bridge (struct ast_channel *chan, struct page_options *options) |
static void | setup_profile_caller (struct ast_channel *chan, struct page_options *options) |
static void | setup_profile_paged (struct ast_channel *chan, struct page_options *options) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Page Multiple Phones" , .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, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .requires = "app_confbridge", } |
static const char *const | app_page = "Page" |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static const struct ast_app_option | page_opts [128] = { [ 'b' ] = { .flag = PAGE_PREDIAL_CALLEE , .arg_index = OPT_ARG_PREDIAL_CALLEE + 1 }, [ 'B' ] = { .flag = PAGE_PREDIAL_CALLER , .arg_index = OPT_ARG_PREDIAL_CALLER + 1 }, [ 'd' ] = { .flag = PAGE_DUPLEX }, [ 'q' ] = { .flag = PAGE_QUIET }, [ 'r' ] = { .flag = PAGE_RECORD }, [ 's' ] = { .flag = PAGE_SKIP }, [ 'i' ] = { .flag = PAGE_IGNORE_FORWARDS }, [ 'A' ] = { .flag = PAGE_ANNOUNCE , .arg_index = OPT_ARG_ANNOUNCE + 1 }, [ 'n' ] = { .flag = PAGE_NOCALLERANNOUNCE }, } |
page() - Paging application
Definition in file app_page.c.
#define PAGE_BEEP "beep" |
Definition at line 163 of file app_page.c.
anonymous enum |
Enumerator | |
---|---|
OPT_ARG_ANNOUNCE | |
OPT_ARG_PREDIAL_CALLEE | |
OPT_ARG_PREDIAL_CALLER | |
OPT_ARG_ARRAY_SIZE |
Definition at line 144 of file app_page.c.
enum page_opt_flags |
Enumerator | |
---|---|
PAGE_DUPLEX | |
PAGE_QUIET | |
PAGE_RECORD | |
PAGE_SKIP | |
PAGE_IGNORE_FORWARDS | |
PAGE_ANNOUNCE | |
PAGE_NOCALLERANNOUNCE | |
PAGE_PREDIAL_CALLEE | |
PAGE_PREDIAL_CALLER |
Definition at line 132 of file app_page.c.
|
static |
Definition at line 453 of file app_page.c.
|
static |
Definition at line 453 of file app_page.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 453 of file app_page.c.
|
static |
Definition at line 443 of file app_page.c.
References app_page, ast_register_application_xml, and page_exec().
|
static |
Definition at line 244 of file app_page.c.
References app, args, AST_APP_ARG, ast_app_exec_sub(), ast_app_expand_sub_args(), ast_app_parse_options(), ast_calloc, ast_channel_language(), AST_CHANNEL_NAME, ast_channel_name(), ast_copy_string(), AST_DECLARE_APP_ARGS, AST_DEVICE_NOT_INUSE, AST_DEVICE_UNKNOWN, ast_devstate2str(), ast_dial_append(), ast_dial_create(), ast_dial_destroy(), ast_dial_hangup(), ast_dial_join(), AST_DIAL_OPTION_ANSWER_EXEC, AST_DIAL_OPTION_DISABLE_CALL_FORWARDING, ast_dial_option_global_enable(), AST_DIAL_OPTION_PREDIAL, ast_dial_run(), ast_dial_set_global_timeout(), ast_dial_set_state_callback(), ast_dial_set_user_data(), ast_fileexists(), ast_free, ast_log, ast_random(), ast_replace_subargument_delimiter(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_streamfile(), ast_strip(), ast_strlen_zero(), ast_test_flag, ast_verb, ast_waitstream(), LOG_ERROR, LOG_WARNING, NULL, OPT_ARG_PREDIAL_CALLEE, OPT_ARG_PREDIAL_CALLER, options, PAGE_BEEP, PAGE_IGNORE_FORWARDS, page_opts, PAGE_PREDIAL_CALLEE, PAGE_PREDIAL_CALLER, PAGE_QUIET, PAGE_SKIP, page_state_callback(), pbx_exec(), pbx_findapp(), setup_profile_bridge(), setup_profile_caller(), strsep(), ast_dial::timeout, and tmp().
Referenced by load_module().
|
static |
Definition at line 229 of file app_page.c.
References ast_dial_answered(), ast_dial_get_user_data(), AST_DIAL_RESULT_ANSWERED, ast_dial_state(), options, setup_profile_bridge(), and setup_profile_paged().
Referenced by page_exec().
|
static |
Definition at line 178 of file app_page.c.
References ast_func_write(), ast_test_flag, options, and PAGE_RECORD.
Referenced by page_exec(), and page_state_callback().
|
static |
Definition at line 216 of file app_page.c.
References ast_func_write(), ast_strlen_zero(), ast_test_flag, OPT_ARG_ANNOUNCE, options, PAGE_ANNOUNCE, and PAGE_NOCALLERANNOUNCE.
Referenced by page_exec().
|
static |
Definition at line 194 of file app_page.c.
References ast_func_write(), ast_strlen_zero(), ast_test_flag, OPT_ARG_ANNOUNCE, options, PAGE_ANNOUNCE, and PAGE_DUPLEX.
Referenced by page_state_callback().
|
static |
Definition at line 438 of file app_page.c.
References app_page, and ast_unregister_application().
|
static |
Definition at line 453 of file app_page.c.
|
static |
Definition at line 130 of file app_page.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 453 of file app_page.c.
|
static |
Definition at line 161 of file app_page.c.
Referenced by page_exec().