Asterisk - The Open Source Telephony Project
18.5.0
|
Core PBX builtin routines. More...
#include "asterisk.h"
#include "asterisk/_private.h"
#include "asterisk/pbx.h"
#include "asterisk/causes.h"
#include "asterisk/indications.h"
#include "asterisk/stasis_channels.h"
#include "asterisk/say.h"
#include "asterisk/app.h"
#include "asterisk/module.h"
#include "pbx_private.h"
Go to the source code of this file.
Data Structures | |
struct | pbx_builtin |
Declaration of builtin applications. More... | |
Macros | |
#define | BACKGROUND_MATCHEXTEN (1 << 2) |
#define | BACKGROUND_NOANSWER (1 << 1) |
#define | BACKGROUND_PLAYBACK (1 << 3) |
#define | BACKGROUND_SKIP (1 << 0) |
#define | WAITEXTEN_DIALTONE (1 << 1) |
#define | WAITEXTEN_MOH (1 << 0) |
Functions | |
int | indicate_busy (struct ast_channel *chan, const char *data) |
int | indicate_congestion (struct ast_channel *chan, const char *data) |
int | load_pbx_builtins (void) |
static int | pbx_builtin_answer (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_background (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_execiftime (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_goto (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_gotoif (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_gotoiftime (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_hangup (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_importvar (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_incomplete (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_noop (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_proceeding (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_progress (struct ast_channel *chan, const char *data) |
int | pbx_builtin_raise_exception (struct ast_channel *chan, const char *reason) |
static int | pbx_builtin_ringing (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_saycharacters (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_saycharacters_case (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_saydigits (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_saymoney (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_saynumber (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_sayphonetic (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_setamaflags (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_wait (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_waitdigit (struct ast_channel *chan, const char *data) |
static int | pbx_builtin_waitexten (struct ast_channel *chan, const char *data) |
static void | unload_pbx_builtins (void) |
Variables | |
static const struct ast_app_option | background_opts [128] = { [ 's' ] = { .flag = (1 << 0) }, [ 'n' ] = { .flag = (1 << 1) }, [ 'm' ] = { .flag = (1 << 2) }, [ 'p' ] = { .flag = (1 << 3) }, } |
struct pbx_builtin | builtins [] |
static const struct ast_app_option | waitexten_opts [128] = { [ 'm' ] = { .flag = (1 << 0) , .arg_index = 0 + 1 }, [ 'd' ] = { .flag = (1 << 1) , .arg_index = 0 + 1 }, } |
Core PBX builtin routines.
Definition in file pbx_builtins.c.
#define BACKGROUND_MATCHEXTEN (1 << 2) |
Definition at line 685 of file pbx_builtins.c.
Referenced by pbx_builtin_background().
#define BACKGROUND_NOANSWER (1 << 1) |
Definition at line 684 of file pbx_builtins.c.
Referenced by pbx_builtin_background().
#define BACKGROUND_PLAYBACK (1 << 3) |
Definition at line 686 of file pbx_builtins.c.
Referenced by pbx_builtin_background().
#define BACKGROUND_SKIP (1 << 0) |
Definition at line 683 of file pbx_builtins.c.
Referenced by pbx_builtin_background().
#define WAITEXTEN_DIALTONE (1 << 1) |
Definition at line 696 of file pbx_builtins.c.
Referenced by pbx_builtin_waitexten().
#define WAITEXTEN_MOH (1 << 0) |
Definition at line 695 of file pbx_builtins.c.
Referenced by pbx_builtin_waitexten().
int load_pbx_builtins | ( | void | ) |
Provided by pbx_builtins.c
Definition at line 1556 of file pbx_builtins.c.
References ARRAY_LEN, ast_log, ast_register_application2(), ast_register_cleanup(), builtins, pbx_builtin::execute, LOG_ERROR, pbx_builtin::name, NULL, unload_pbx_builtins(), and ast_channel::x.
Referenced by asterisk_daemon().
|
static |
Definition at line 1269 of file pbx_builtins.c.
References ast_debug, ast_log, ast_strdupa, ast_strlen_zero, LOG_WARNING, pbx_builtin_goto(), pbx_checkcondition(), and strsep().
|
static |
Definition at line 1474 of file pbx_builtins.c.
References ast_alloca, ast_channel_get_by_name(), ast_channel_unref, ast_log, ast_strdupa, ast_strlen_zero, LOG_WARNING, name, pbx_builtin_setvar_helper(), pbx_substitute_variables_helper(), strsep(), tmp(), value, and VAR_BUF_SIZE.
|
static |
Definition at line 806 of file pbx_builtins.c.
References __ast_answer(), answer(), ast_check_hangup(), AST_CONTROL_INCOMPLETE, ast_indicate(), AST_PBX_INCOMPLETE, AST_STATE_UP, ast_strlen_zero, and options.
|
static |
Definition at line 1264 of file pbx_builtins.c.
int pbx_builtin_raise_exception | ( | struct ast_channel * | chan, |
const char * | reason | ||
) |
Definition at line 703 of file pbx_builtins.c.
References raise_exception().
|
static |
Definition at line 1436 of file pbx_builtins.c.
References ast_channel_language(), ast_channel_lock, ast_channel_unlock, AST_DIGIT_ANY, AST_SAY_CASE_NONE, ast_say_character_str(), ast_true(), and pbx_builtin_getvar_helper().
|
static |
Definition at line 1380 of file pbx_builtins.c.
References args, AST_APP_ARG, ast_channel_language(), ast_channel_lock, ast_channel_unlock, AST_DECLARE_APP_ARGS, AST_DIGIT_ANY, ast_log, AST_SAY_CASE_ALL, AST_SAY_CASE_LOWER, AST_SAY_CASE_NONE, AST_SAY_CASE_UPPER, ast_say_character_str(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero, ast_true(), LOG_WARNING, options, parse(), and pbx_builtin_getvar_helper().
|
static |
Definition at line 1340 of file pbx_builtins.c.
References ast_channel_language(), ast_channel_lock, ast_channel_unlock, AST_DIGIT_ANY, ast_say_digit_str(), ast_true(), and pbx_builtin_getvar_helper().
|
static |
Definition at line 1360 of file pbx_builtins.c.
References ast_channel_language(), ast_channel_lock, ast_channel_unlock, AST_DIGIT_ANY, ast_say_money_str(), ast_true(), and pbx_builtin_getvar_helper().
|
static |
Definition at line 1293 of file pbx_builtins.c.
References ast_channel_language(), ast_channel_lock, ast_channel_unlock, ast_check_hangup_locked(), ast_copy_string(), AST_DIGIT_ANY, ast_log, ast_say_number(), ast_strlen_zero, ast_true(), LOG_WARNING, options, pbx_builtin_getvar_helper(), strsep(), and tmp().
|
static |
Definition at line 1456 of file pbx_builtins.c.
References ast_channel_language(), ast_channel_lock, ast_channel_unlock, AST_DIGIT_ANY, ast_say_phonetic_str(), ast_true(), and pbx_builtin_getvar_helper().
|
static |
Definition at line 1546 of file pbx_builtins.c.
References ARRAY_LEN, ast_unregister_application(), builtins, pbx_builtin::name, and ast_channel::x.
Referenced by load_pbx_builtins().
|
static |
Definition at line 693 of file pbx_builtins.c.
Referenced by pbx_builtin_background().
struct pbx_builtin builtins[] |
Referenced by load_pbx_builtins(), and unload_pbx_builtins().
|
static |
Definition at line 701 of file pbx_builtins.c.
Referenced by pbx_builtin_waitexten().