142 char *
tech, *resource, *tmp;
147 int res = 0, pos = 0, i = 0;
149 unsigned int num_dials;
160 ast_log(
LOG_WARNING,
"This application requires at least one argument (destination(s) to page)\n");
174 if ((tmp = strchr(originator,
'-'))) {
188 timeout = atoi(
args.timeout);
192 snprintf(meetmeopts,
sizeof(meetmeopts),
"MeetMe,%ud,%s%sqxdw(5)G(%s)", confid, (
ast_test_flag(&flags,
PAGE_DUPLEX) ?
"" :
"m"),
195 snprintf(meetmeopts,
sizeof(meetmeopts),
"MeetMe,%ud,%s%sqxdw(5)", confid, (
ast_test_flag(&flags,
PAGE_DUPLEX) ?
"" :
"m"),
220 if (!strcasecmp(tech, originator))
224 if (!(resource = strchr(tech,
'/'))) {
270 dial_list[pos++] = dial;
285 snprintf(meetmeopts,
sizeof(meetmeopts),
"%ud,A%s%sqxdG(%s)", confid, (
ast_test_flag(&flags,
PAGE_DUPLEX) ?
"" :
"t"),
292 for (i = 0; i < pos; i++) {
293 struct ast_dial *dial = dial_list[i];
const char * ast_devstate2str(enum ast_device_state devstate) attribute_pure
Find devicestate as text message for output.
ast_device_state
Device States.
int ast_dial_destroy(struct ast_dial *dial)
Destroys a dialing structure.
int ast_streamfile(struct ast_channel *c, const char *filename, const char *preflang)
Streams a file.
int ast_dial_option_global_enable(struct ast_dial *dial, enum ast_dial_option option, void *data)
Enables an option globally.
char * strsep(char **str, const char *delims)
struct ast_app * pbx_findapp(const char *app)
Look up an application.
int pbx_exec(struct ast_channel *c, struct ast_app *app, const char *data)
Execute an application.
Main dialing structure. Contains global options, channels being dialed, and more! ...
void ast_dial_set_global_timeout(struct ast_dial *dial, int timeout)
Set the maximum time (globally) allowed for trying to ring phones.
#define ast_test_flag(p, flag)
void ast_dial_hangup(struct ast_dial *dial)
Hangup channels.
int ast_dial_append(struct ast_dial *dial, const char *tech, const char *device)
Append a channel.
int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags *flags, char **args, char *optstr)
Parses a string containing application options and sets flags/arguments.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
void * options[AST_DIAL_OPTION_MAX]
enum ast_dial_result ast_dial_join(struct ast_dial *dial)
Cancel async thread.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
long int ast_random(void)
static struct ast_app_option page_opts[128]
enum ast_dial_result ast_dial_run(struct ast_dial *dial, struct ast_channel *chan, int async)
Execute dialing synchronously or asynchronously.
#define ast_strdupa(s)
duplicate a string in memory from the stack
const ast_string_field name
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...
static void parse(struct mgcp_request *req)
struct ast_dial * ast_dial_create(void)
New dialing structure.
Structure used to handle boolean flags.
char tech[OSP_SIZE_TECHSTR]
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
ast_app: A registered application
int ast_waitstream(struct ast_channel *c, const char *breakon)
Waits for a stream to stop or digit to be pressed.
#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.
const ast_string_field language