Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
App to transmit a text message. More...
#include "asterisk.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
#include "asterisk/message.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 | load_module (void) |
static int | recvtext_exec (struct ast_channel *chan, const char *data) |
static int | sendtext_exec (struct ast_channel *chan, const char *data) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Send and Receive Text Applications" , .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 char *const | app = "SendText" |
static const char *const | app2 = "ReceiveText" |
static const struct ast_module_info * | ast_module_info = &__mod_info |
App to transmit a text message.
Definition in file app_sendtext.c.
|
static |
Definition at line 331 of file app_sendtext.c.
|
static |
Definition at line 331 of file app_sendtext.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 331 of file app_sendtext.c.
|
static |
Definition at line 321 of file app_sendtext.c.
References app, app2, ast_register_application_xml, recvtext_exec(), and sendtext_exec().
|
static |
Definition at line 280 of file app_sendtext.c.
References args, AST_APP_ARG, AST_DECLARE_APP_ARGS, ast_free, ast_log, ast_recvtext(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, LOG_WARNING, and pbx_builtin_setvar_helper().
Referenced by load_module().
|
static |
Definition at line 189 of file app_sendtext.c.
References ARRAY_LEN, ast_begins_with(), ast_channel_lock, ast_channel_tech(), ast_channel_unlock, ast_free, ast_msg_data_alloc(), AST_MSG_DATA_ATTR_BODY, AST_MSG_DATA_ATTR_CONTENT_TYPE, AST_MSG_DATA_ATTR_FROM, AST_MSG_DATA_ATTR_TO, AST_MSG_DATA_SOURCE_TYPE_IN_DIALOG, ast_sendtext(), ast_sendtext_data(), ast_str_alloca, ast_str_buffer(), ast_str_get_encoded_str(), ast_strlen_zero(), cleanup(), NULL, pbx_builtin_getvar_helper(), pbx_builtin_setvar_helper(), S_OR, send_text(), status, str, and ast_msg_data_attribute::type.
Referenced by load_module().
|
static |
Definition at line 311 of file app_sendtext.c.
References app, app2, and ast_unregister_application().
|
static |
Definition at line 331 of file app_sendtext.c.
|
static |
Definition at line 186 of file app_sendtext.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 187 of file app_sendtext.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 331 of file app_sendtext.c.