37 #include "asterisk/lock.h"
90 static char *
app2 =
"SetCallerPres";
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.
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk main include file. File version handling, generic pbx functions.
struct ast_party_caller caller
Channel Caller ID information.
int presentation
Q.931 presentation-indicator and screening-indicator encoded fields.
CallerID (and other GR30) management and generation Includes code and algorithms from the Zapata libr...
Support for translation of data formats. translate.c.
struct ast_party_name name
Subscriber name.
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
int ast_unregister_application(const char *app)
Unregister an application.
struct ast_party_id id
Caller party ID.
static int unload_module(void)
General Asterisk channel definitions for image handling.
General Asterisk PBX channel definitions.
static int load_module(void)
Core PBX routines and definitions.
int ast_parse_caller_presentation(const char *data)
Convert caller ID text code to value (used in config file parsing)
static int setcallerid_pres_exec(struct ast_channel *chan, const char *data)
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...
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.
struct ast_party_number number
Subscriber phone number.