int ast_adsi_transmit_message_full(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait)
int ast_adsi_display(unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2)
Loads a line of info into the display.
int ast_adsi_download_connect(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver)
Begin an ADSI script download.
int ast_adsi_load_soft_key(unsigned char *buf, int key, const char *llabel, const char *slabel, char *ret, int data)
Creates "load soft key" parameters.
int ast_adsi_channel_restore(struct ast_channel *chan)
int ast_adsi_data_mode(unsigned char *buf)
Puts CPE in data mode.
int ast_adsi_unload_session(struct ast_channel *chan)
int ast_adsi_print(struct ast_channel *chan, char **lines, int *align, int voice)
Display some stuff on the screen.
int ast_adsi_query_cpeinfo(unsigned char *buf)
int ast_adsi_begin_download(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version)
static ast_rwlock_t func_lock
int ast_adsi_query_cpeid(unsigned char *buf)
static const int current_adsi_version
int ast_adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver)
Connects an ADSI Display Session.
int ast_adsi_clear_screen(unsigned char *buf)
int ast_adsi_set_line(unsigned char *buf, int page, int line)
Sets the current line and page.
void ast_adsi_install_funcs(const struct adsi_funcs *funcs)
static const struct adsi_funcs * installed_funcs
int ast_adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just)
Set input information.
int ast_adsi_input_format(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2)
Set input format.
int ast_adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice)
int ast_adsi_load_session(struct ast_channel *chan, unsigned char *app, int ver, int data)
Check if scripts for a given app are already loaded. Version may be -1, if any version is okay,...
int ast_adsi_end_download(struct ast_channel *chan)
int ast_adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
int ast_adsi_download_disconnect(unsigned char *buf)
Disconnects (and hopefully saves) a downloaded script.
int ast_adsi_available(struct ast_channel *chan)
Returns non-zero if Channel does or might support ADSI.
int ast_adsi_clear_soft_keys(unsigned char *buf)
int ast_adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
int ast_adsi_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen)
int ast_adsi_disconnect_session(unsigned char *buf)
Disconnects a running session.
int ast_adsi_set_keys(unsigned char *buf, unsigned char *keys)
Set which soft keys should be displayed.
int ast_adsi_voice_mode(unsigned char *buf, int when)
Puts CPE in voice mode.
ADSI Support (built upon Caller*ID)
Asterisk main include file. File version handling, generic pbx functions.
enum ast_cc_service_type service
static char version[AST_MAX_EXTENSION]
Asterisk locking-related definitions:
#define ast_rwlock_wrlock(a)
#define ast_rwlock_rdlock(a)
#define AST_RWLOCK_DEFINE_STATIC(rwlock)
#define ast_rwlock_unlock(a)
int(* query_cpeid)(unsigned char *buf)
int(* clear_screen)(unsigned char *buf)
int(* load_session)(struct ast_channel *chan, unsigned char *app, int ver, int data)
int(* query_cpeinfo)(unsigned char *buf)
int(* channel_restore)(struct ast_channel *chan)
int(* clear_soft_keys)(unsigned char *buf)
int(* disconnect_session)(unsigned char *buf)
int(* unload_session)(struct ast_channel *chan)
int(* read_encoded_dtmf)(struct ast_channel *chan, unsigned char *buf, int maxlen)
int(* begin_download)(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version)
int(* transmit_message_full)(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait)
int(* download_disconnect)(unsigned char *buf)
int(* display)(unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2)
int(* download_connect)(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver)
int(* connect_session)(unsigned char *buf, unsigned char *fdn, int ver)
int(* print)(struct ast_channel *chan, char **lines, int *align, int voice)
int(* get_cpeinfo)(struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
int(* end_download)(struct ast_channel *chan)
int(* get_cpeid)(struct ast_channel *chan, unsigned char *cpeid, int voice)
int(* data_mode)(unsigned char *buf)
int(* set_line)(unsigned char *buf, int page, int line)
int(* input_format)(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2)
int(* set_keys)(unsigned char *buf, unsigned char *keys)
int(* load_soft_key)(unsigned char *buf, int key, const char *llabel, const char *slabel, char *ret, int data)
int(* available)(struct ast_channel *chan)
int(* input_control)(unsigned char *buf, int page, int line, int display, int format, int just)
int(* voice_mode)(unsigned char *buf, int when)
int(* transmit_message)(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
Main Channel structure associated with a channel.