37 res = installed_funcs->
begin_download(chan, service, fdn, sec, version);
69 if (installed_funcs && installed_funcs->
print) {
70 res = installed_funcs->
print(chan, lines, align, voice);
81 res = installed_funcs->
load_session(chan, app, ver, data);
146 if (installed_funcs && installed_funcs->
query_cpeid) {
168 if (installed_funcs && installed_funcs->
get_cpeid) {
169 res = installed_funcs->
get_cpeid(chan, cpeid, voice);
179 if (installed_funcs && installed_funcs->
get_cpeinfo) {
180 res = installed_funcs->
get_cpeinfo(chan, width, height, buttons, voice);
223 if (installed_funcs && installed_funcs->
data_mode) {
256 if (installed_funcs && installed_funcs->
voice_mode) {
267 if (installed_funcs && installed_funcs->
available) {
278 if (installed_funcs && installed_funcs->
display) {
279 res = installed_funcs->
display(buf, page, line, just, wrap, col1, col2);
289 if (installed_funcs && installed_funcs->
set_line) {
290 res = installed_funcs->
set_line(buf, page, line);
301 res = installed_funcs->
load_soft_key(buf, key, llabel, slabel, ret, data);
311 if (installed_funcs && installed_funcs->
set_keys) {
312 res = installed_funcs->
set_keys(buf, keys);
323 res = installed_funcs->
input_control(buf, page, line, display, format, just);
334 res = installed_funcs->
input_format(buf, num, dir, wrap, format1, format2);
349 installed_funcs = funcs;
int(* voice_mode)(unsigned char *buf, int when)
#define ast_rwlock_rdlock(a)
Main Channel structure associated with a channel.
int(* available)(struct ast_channel *chan)
Asterisk locking-related definitions:
int(* unload_session)(struct ast_channel *chan)
Asterisk main include file. File version handling, generic pbx functions.
void ast_adsi_install_funcs(const struct adsi_funcs *funcs)
#define AST_RWLOCK_DEFINE_STATIC(rwlock)
int(* query_cpeinfo)(unsigned char *buf)
int(* download_connect)(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver)
int ast_adsi_print(struct ast_channel *chan, char **lines, int *align, int voice)
Display some stuff on the screen.
int(* input_format)(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2)
static const int current_adsi_version
int(* transmit_message)(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
int ast_adsi_end_download(struct ast_channel *chan)
int(* end_download)(struct ast_channel *chan)
int ast_adsi_unload_session(struct ast_channel *chan)
int ast_adsi_download_disconnect(unsigned char *buf)
Disconnects (and hopefully saves) a downloaded script.
enum ast_cc_service_type service
int(* data_mode)(unsigned char *buf)
int(* display)(unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2)
int ast_adsi_query_cpeid(unsigned char *buf)
int ast_adsi_set_line(unsigned char *buf, int page, int line)
Sets the current line and page.
ADSI Support (built upon Caller*ID)
#define ast_rwlock_unlock(a)
int(* disconnect_session)(unsigned char *buf)
int ast_adsi_query_cpeinfo(unsigned char *buf)
int ast_adsi_available(struct ast_channel *chan)
Returns non-zero if Channel does or might support ADSI.
int ast_adsi_get_cpeid(struct ast_channel *chan, unsigned char *cpeid, int voice)
static ast_rwlock_t func_lock
int(* print)(struct ast_channel *chan, char **lines, int *align, int voice)
int ast_adsi_disconnect_session(unsigned char *buf)
Disconnects a running session.
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_input_format(unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2)
Set input format.
int ast_adsi_get_cpeinfo(struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
int(* begin_download)(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version)
int(* channel_restore)(struct ast_channel *chan)
int(* query_cpeid)(unsigned char *buf)
int ast_adsi_voice_mode(unsigned char *buf, int when)
Puts CPE in voice mode.
int ast_adsi_connect_session(unsigned char *buf, unsigned char *fdn, int ver)
Connects an ADSI Display Session.
int ast_adsi_transmit_message(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
int(* input_control)(unsigned char *buf, int page, int line, int display, int format, int just)
int(* get_cpeid)(struct ast_channel *chan, unsigned char *cpeid, int voice)
int ast_adsi_input_control(unsigned char *buf, int page, int line, int display, int format, int just)
Set input information.
int(* get_cpeinfo)(struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
static char version[AST_MAX_EXTENSION]
int(* clear_screen)(unsigned char *buf)
int ast_adsi_data_mode(unsigned char *buf)
Puts CPE in data mode.
int ast_adsi_channel_restore(struct ast_channel *chan)
int(* clear_soft_keys)(unsigned char *buf)
int ast_adsi_download_connect(unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver)
Begin an ADSI script download.
static const struct adsi_funcs * installed_funcs
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.
#define ast_rwlock_wrlock(a)
int ast_adsi_clear_soft_keys(unsigned char *buf)
int(* connect_session)(unsigned char *buf, unsigned char *fdn, int ver)
int(* set_keys)(unsigned char *buf, unsigned char *keys)
int ast_adsi_transmit_message_full(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait)
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_read_encoded_dtmf(struct ast_channel *chan, unsigned char *buf, int maxlen)
int(* set_line)(unsigned char *buf, int page, int line)
int(* download_disconnect)(unsigned char *buf)
int(* load_session)(struct ast_channel *chan, unsigned char *app, int ver, int data)
int(* load_soft_key)(unsigned char *buf, int key, const char *llabel, const char *slabel, char *ret, int data)
int(* read_encoded_dtmf)(struct ast_channel *chan, unsigned char *buf, int maxlen)
int(* transmit_message_full)(struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait)
int ast_adsi_begin_download(struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version)
int ast_adsi_clear_screen(unsigned char *buf)
static snd_pcm_format_t format
int ast_adsi_set_keys(unsigned char *buf, unsigned char *keys)
Set which soft keys should be displayed.