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.
char * str
Subscriber phone number (Malloced)
struct ast_party_caller caller
Channel Caller ID information.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
struct ast_party_id id
Caller party ID.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
#define ast_strdupa(s)
duplicate a string in memory from the stack
enum ast_channel_state _state
static void parse(struct mgcp_request *req)
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.
#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)
unsigned char valid
TRUE if the number information is valid/present.
int ast_stopstream(struct ast_channel *c)
Stops a stream.
struct ast_party_number number
Subscriber phone number.