Wed Oct 28 11:50:51 2009

Asterisk developer's documentation


adsistub.c

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 1999 - 2005, Digium, Inc.
00005  *
00006  * Christopher L. Wade <wade.christopher@gmail.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 #include "asterisk.h"
00020 
00021 ASTERISK_FILE_VERSION(__FILE__, "$Revision: 89511 $")
00022 
00023 #include "asterisk/channel.h"
00024 #include "asterisk/adsi.h"
00025 
00026 #ifdef SKREP
00027 #define build_stub(func_name,...) \
00028 static int stub_ ## func_name(__VA_ARGS__) \
00029 { \
00030    if (option_debug > 4) \
00031            ast_log(LOG_NOTICE, "ADSI support not loaded!\n"); \
00032         return -1; \
00033 } \
00034 \
00035 int (*func_name)(__VA_ARGS__) = \
00036    stub_ ## func_name;
00037 #endif
00038 #define build_stub(func_name,...) \
00039 static int stub_##func_name(__VA_ARGS__) \
00040 { \
00041    ast_debug(5, "ADSI support not loaded!\n"); \
00042         return -1; \
00043 } \
00044 \
00045 int (*func_name)(__VA_ARGS__) = \
00046    stub_##func_name;
00047 
00048 build_stub(ast_adsi_channel_init, struct ast_channel *chan)
00049 build_stub(ast_adsi_begin_download, struct ast_channel *chan, char *service, unsigned char *fdn, unsigned char *sec, int version)
00050 build_stub(ast_adsi_end_download, struct ast_channel *chan)
00051 build_stub(ast_adsi_channel_restore, struct ast_channel *chan)
00052 build_stub(ast_adsi_print, struct ast_channel *chan, char **lines, int *align, int voice)
00053 build_stub(ast_adsi_load_session, struct ast_channel *chan, unsigned char *app, int ver, int data)
00054 build_stub(ast_adsi_unload_session, struct ast_channel *chan)
00055 build_stub(ast_adsi_transmit_messages, struct ast_channel *chan, unsigned char **msg, int *msglen, int *msgtype)
00056 build_stub(ast_adsi_transmit_message, struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype)
00057 build_stub(ast_adsi_transmit_message_full, struct ast_channel *chan, unsigned char *msg, int msglen, int msgtype, int dowait)
00058 build_stub(ast_adsi_read_encoded_dtmf, struct ast_channel *chan, unsigned char *buf, int maxlen)
00059 build_stub(ast_adsi_connect_session, unsigned char *buf, unsigned char *fdn, int ver)
00060 build_stub(ast_adsi_query_cpeid, unsigned char *buf)
00061 build_stub(ast_adsi_query_cpeinfo, unsigned char *buf)
00062 build_stub(ast_adsi_get_cpeid, struct ast_channel *chan, unsigned char *cpeid, int voice)
00063 build_stub(ast_adsi_get_cpeinfo, struct ast_channel *chan, int *width, int *height, int *buttons, int voice)
00064 build_stub(ast_adsi_download_connect, unsigned char *buf, char *service, unsigned char *fdn, unsigned char *sec, int ver)
00065 build_stub(ast_adsi_disconnect_session, unsigned char *buf)
00066 build_stub(ast_adsi_download_disconnect, unsigned char *buf)
00067 build_stub(ast_adsi_data_mode, unsigned char *buf)
00068 build_stub(ast_adsi_clear_soft_keys, unsigned char *buf)
00069 build_stub(ast_adsi_clear_screen, unsigned char *buf)
00070 build_stub(ast_adsi_voice_mode, unsigned char *buf, int when)
00071 build_stub(ast_adsi_available, struct ast_channel *chan)
00072 build_stub(ast_adsi_display, unsigned char *buf, int page, int line, int just, int wrap, char *col1, char *col2)
00073 build_stub(ast_adsi_set_line, unsigned char *buf, int page, int line)
00074 build_stub(ast_adsi_load_soft_key, unsigned char *buf, int key, const char *llabel, const char *slabel, char *ret, int data)
00075 build_stub(ast_adsi_set_keys, unsigned char *buf, unsigned char *keys)
00076 build_stub(ast_adsi_input_control, unsigned char *buf, int page, int line, int display, int format, int just)
00077 build_stub(ast_adsi_input_format, unsigned char *buf, int num, int dir, int wrap, char *format1, char *format2)

Generated on Wed Oct 28 11:50:51 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6