App to set callerid presentation.
More...
Go to the source code of this file.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Set CallerID Presentation Application" , .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 char * | app2 = "SetCallerPres" |
|
static struct ast_module_info * | ast_module_info = &__mod_info |
|
App to set callerid presentation.
- Author
- Mark Spencer marks.nosp@m.ter@.nosp@m.digiu.nosp@m.m.co.nosp@m.m
Definition in file app_setcallerid.c.
static void __reg_module |
( |
void |
| ) |
|
|
static |
static void __unreg_module |
( |
void |
| ) |
|
|
static |
static int load_module |
( |
void |
| ) |
|
|
static |
static int setcallerid_pres_exec |
( |
struct ast_channel * |
chan, |
|
|
const char * |
data |
|
) |
| |
|
static |
Definition at line 92 of file app_setcallerid.c.
References ast_log(), ast_parse_caller_presentation(), ast_channel::caller, ast_party_caller::id, LOG_WARNING, ast_party_id::name, ast_party_id::number, ast_party_name::presentation, and ast_party_number::presentation.
Referenced by load_module().
95 static int deprecated = 0;
99 ast_log(
LOG_WARNING,
"SetCallerPres is deprecated. Please use Set(CALLERPRES()=%s) instead.\n", (
char *)data);
103 if (sscanf(data,
"%30d", &pres) != 1 || pres < 0 || pres > 255 || (pres & 0x9c)) {
108 ast_log(
LOG_WARNING,
"'%s' is not a valid presentation (see 'show application SetCallerPres')\n",
int presentation
Q.931 encoded presentation-indicator encoded field.
struct ast_party_caller caller
Channel Caller ID information.
int presentation
Q.931 presentation-indicator and screening-indicator encoded fields.
struct ast_party_name name
Subscriber name.
struct ast_party_id id
Caller party ID.
int ast_parse_caller_presentation(const char *data)
Convert caller ID text code to value (used in config file parsing)
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
struct ast_party_number number
Subscriber phone number.
static int unload_module |
( |
void |
| ) |
|
|
static |
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Set CallerID Presentation Application" , .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 |
char* app2 = "SetCallerPres" |
|
static |