00001 /* 00002 * Asterisk -- An open source telephony toolkit. 00003 * 00004 * Copyright (C) 1999 - 2005, Digium, Inc. 00005 * 00006 * Matthew Fredrickson <creslin@digium.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 /*! \file 00020 * \brief General Asterisk channel transcoding definitions. 00021 */ 00022 00023 #ifndef _ASTERISK_TRANSCAP_H 00024 #define _ASTERISK_TRANSCAP_H 00025 00026 /* These definitions are taken directly out of libpri.h and used here. 00027 * DO NOT change them as it will cause unexpected behavior in channels 00028 * that utilize these fields. 00029 */ 00030 00031 #define AST_TRANS_CAP_SPEECH 0x0 00032 #define AST_TRANS_CAP_DIGITAL 0x08 00033 #define AST_TRANS_CAP_RESTRICTED_DIGITAL 0x09 00034 #define AST_TRANS_CAP_3_1K_AUDIO 0x10 00035 #define AST_TRANS_CAP_7K_AUDIO 0x11 /* Depriciated ITU Q.931 (05/1998)*/ 00036 #define AST_TRANS_CAP_DIGITAL_W_TONES 0x11 00037 #define AST_TRANS_CAP_VIDEO 0x18 00038 00039 #define IS_DIGITAL(cap)\ 00040 (cap) & AST_TRANS_CAP_DIGITAL ? 1 : 0 00041 00042 #endif /* _ASTERISK_TRANSCAP_H */