36 #include "asterisk/lock.h"
79 static char *
app =
"Zapateller";
84 int i, answer = 0, nocallerid = 0;
92 for (i = 0; i <
args.argc; i++) {
93 if (!strcasecmp(
args.options[i],
"answer"))
95 else if (!strcasecmp(
args.options[i],
"nocallerid"))
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.
char * str
Subscriber phone number (Malloced)
#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.
Support for translation of data formats. translate.c.
static int unload_module(void)
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
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.
General Asterisk PBX channel definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Core PBX routines and definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
enum ast_channel_state _state
static void parse(struct mgcp_request *req)
static int zapateller_exec(struct ast_channel *chan, const char *data)
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.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
static int load_module(void)
#define AST_APP_ARG(name)
Define an application argument.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
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.
unsigned char valid
TRUE if the number information is valid/present.
int ast_stopstream(struct ast_channel *c)
Stops a stream.
#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.