23 #ifndef _ASTERISK_DIAL_H
24 #define _ASTERISK_DIAL_H
26 #if defined(__cplusplus) || defined(c_plusplus)
170 #if defined(__cplusplus) || defined(c_plusplus)
Main Channel structure associated with a channel.
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.
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.
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_dial_option_enable(struct ast_dial *dial, int num, enum ast_dial_option option, void *data)
Enables an option per channel.
void ast_dial_set_state_callback(struct ast_dial *dial, ast_dial_state_callback callback)
Set a callback for state changes.
ast_dial_result
List of return codes for dial run API calls.
enum ast_dial_result ast_dial_join(struct ast_dial *dial)
Cancel async thread.
int ast_dial_option_global_disable(struct ast_dial *dial, enum ast_dial_option option)
Disables an option globally.
ast_dial_option
List of options that are applicable either globally or per dialed channel.
enum ast_dial_result ast_dial_state(struct ast_dial *dial)
Return state of dial.
enum ast_dial_result ast_dial_run(struct ast_dial *dial, struct ast_channel *chan, int async)
Execute dialing synchronously or asynchronously.
struct ast_channel * ast_dial_answered(struct ast_dial *dial)
Return channel that answered.
struct ast_dial * ast_dial_create(void)
New dialing structure.
struct ast_channel * ast_dial_answered_steal(struct ast_dial *dial)
Steal the channel that answered.
void(* ast_dial_state_callback)(struct ast_dial *)
int ast_dial_option_disable(struct ast_dial *dial, int num, enum ast_dial_option option)
Disables an option per channel.
void ast_dial_set_timeout(struct ast_dial *dial, int num, int timeout)
Set the maximum time (per channel) allowed for trying to ring the phone.
Dialing channel structure. Contains per-channel dialing options, asterisk channel, and more!