77 static char *
app =
"Zapateller";
82 int i, answer = 0, nocallerid = 0;
90 for (i = 0; i < args.argc; i++) {
91 if (!strcasecmp(args.options[i],
"answer"))
93 else if (!strcasecmp(args.options[i],
"nocallerid"))
109 && ast_channel_caller(chan)->
id.
number.valid
110 && !ast_strlen_zero(ast_channel_caller(chan)->
id.
number.str)) {
128 static int unload_module(
void)
133 static int load_module(
void)
138 AST_MODULE_INFO_STANDARD_EXTENDED(
ASTERISK_GPL_KEY,
"Block Telemarketers with Special Information Tone");
int ast_safe_sleep(struct ast_channel *chan, int ms)
Wait for a specified amount of time, looking for hangups.
Main Channel structure associated with a channel.
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
Support for translation of data formats. translate.c.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
ast_channel_state
ast_channel states
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.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Core PBX routines and definitions.
Module has failed to load, may be in an inconsistent state.
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name...
int ast_answer(struct ast_channel *chan)
Answer a channel.
int ast_tonepair(struct ast_channel *chan, int freq1, int freq2, int duration, int vol)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
int ast_stopstream(struct ast_channel *c)
Stops a stream.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define AST_APP_ARG(name)
Define an application argument.