163#define PAGE_BEEP "beep"
183 ast_func_write(chan,
"CONFBRIDGE(bridge,record_conference)",
"yes");
249 char *predial_callee =
NULL;
250 char confbridgeopts[128];
259 unsigned int num_dials;
279 if ((
tmp = strchr(originator,
'-'))) {
291 snprintf(confbridgeopts,
sizeof(confbridgeopts),
"ConfBridge,%u", confid);
335 if (!strcasecmp(tech, originator)) {
340 if (!(resource = strchr(tech,
'/'))) {
349 ast_verb(3,
"Destination '%s' has device state '%s'. Paging anyway.\n",
352 ast_verb(3,
"Destination '%s' has device state '%s'.\n",
368 ast_log(
LOG_ERROR,
"Failed to add %s/%s to outbound dial\n", tech, resource);
376 if (predial_callee) {
395 dial_list[pos++] = dial;
415 snprintf(confbridgeopts,
sizeof(confbridgeopts),
"%u", confid);
420 for (i = 0; i < pos; i++) {
421 struct ast_dial *dial = dial_list[i];
452 .
requires =
"app_confbridge",
static void page_state_callback(struct ast_dial *dial)
static int page_exec(struct ast_channel *chan, const char *data)
static const char *const app_page
static void setup_profile_caller(struct ast_channel *chan, struct page_options *options)
static void setup_profile_paged(struct ast_channel *chan, struct page_options *options)
static void setup_profile_bridge(struct ast_channel *chan, struct page_options *options)
static int load_module(void)
static const struct ast_app_option page_opts[128]
static int unload_module(void)
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ast_calloc(num, len)
A wrapper for calloc()
General Asterisk PBX channel definitions.
const char * ast_channel_name(const struct ast_channel *chan)
const char * ast_channel_language(const struct ast_channel *chan)
const char * ast_devstate2str(enum ast_device_state devstate) attribute_pure
Convert device state to text string for output.
ast_device_state
Device States.
enum ast_dial_result ast_dial_state(struct ast_dial *dial)
Return state of dial.
@ AST_DIAL_RESULT_ANSWERED
void ast_dial_set_state_callback(struct ast_dial *dial, ast_dial_state_callback callback)
Set a callback for state changes.
int ast_dial_append(struct ast_dial *dial, const char *tech, const char *device, const struct ast_assigned_ids *assignedids)
Append a channel.
struct ast_dial * ast_dial_create(void)
New dialing structure.
struct ast_channel * ast_dial_answered(struct ast_dial *dial)
Return channel that answered.
void ast_dial_set_user_data(struct ast_dial *dial, void *user_data)
Set user data on a dial structure.
void ast_dial_set_global_timeout(struct ast_dial *dial, int timeout)
Set the maximum time (globally) allowed for trying to ring phones.
void ast_dial_hangup(struct ast_dial *dial)
Hangup channels.
enum ast_dial_result ast_dial_run(struct ast_dial *dial, struct ast_channel *chan, int async)
Execute dialing synchronously or asynchronously.
enum ast_dial_result ast_dial_join(struct ast_dial *dial)
Cancel async thread.
void * ast_dial_get_user_data(struct ast_dial *dial)
Return the user data on a dial structure.
@ AST_DIAL_OPTION_ANSWER_EXEC
@ AST_DIAL_OPTION_PREDIAL
@ AST_DIAL_OPTION_DISABLE_CALL_FORWARDING
int ast_dial_destroy(struct ast_dial *dial)
Destroys a dialing structure.
int ast_dial_option_global_enable(struct ast_dial *dial, enum ast_dial_option option, void *data)
Enables an option globally.
Generic File Format Support. Should be included by clients of the file handling routines....
int ast_streamfile(struct ast_channel *c, const char *filename, const char *preflang)
Streams a file.
int ast_fileexists(const char *filename, const char *fmt, const char *preflang)
Checks for the existence of a given file.
int ast_waitstream(struct ast_channel *c, const char *breakon)
Waits for a stream to stop or digit to be pressed.
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
const char * ast_app_expand_sub_args(struct ast_channel *chan, const char *args)
Add missing context/exten to subroutine argument string.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_APP_OPTIONS(holder, options...)
Declares an array of options for an application.
#define AST_APP_OPTION_ARG(option, flagno, argno)
Declares an application option that accepts an argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
#define AST_APP_OPTION(option, flagno)
Declares an application option that does not accept an argument.
int ast_app_exec_sub(struct ast_channel *autoservice_chan, struct ast_channel *sub_chan, const char *sub_args, int ignore_hangup)
Run a subroutine on a channel, placing an optional second channel into autoservice.
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.
char * strsep(char **str, const char *delims)
#define ast_verb(level,...)
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Core PBX routines and definitions.
int pbx_exec(struct ast_channel *c, struct ast_app *app, const char *data)
Execute an application.
struct ast_app * pbx_findapp(const char *app)
Look up an application.
int ast_func_write(struct ast_channel *chan, const char *function, const char *value)
executes a write operation on a function
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
char * ast_strip(char *s)
Strip leading/trailing whitespace from a string.
ast_app: A registered application
Main Channel structure associated with a channel.
Main dialing structure. Contains global options, channels being dialed, and more!
Structure used to handle boolean flags.
char * opts[OPT_ARG_ARRAY_SIZE]
#define ast_test_flag(p, flag)
long int ast_random(void)
void ast_replace_subargument_delimiter(char *s)
Replace '^' in a string with ','.