transcap.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 1999 - 2005, Digium, Inc.
  5. *
  6. * Matthew Fredrickson <creslin@digium.com>
  7. *
  8. * See http://www.asterisk.org for more information about
  9. * the Asterisk project. Please do not directly contact
  10. * any of the maintainers of this project for assistance;
  11. * the project provides a web site, mailing lists and IRC
  12. * channels for your use.
  13. *
  14. * This program is free software, distributed under the terms of
  15. * the GNU General Public License Version 2. See the LICENSE file
  16. * at the top of the source tree.
  17. */
  18. /*! \file
  19. * \brief General Asterisk channel transcoding definitions.
  20. */
  21. #ifndef _ASTERISK_TRANSCAP_H
  22. #define _ASTERISK_TRANSCAP_H
  23. /* These definitions are taken directly out of libpri.h and used here.
  24. * DO NOT change them as it will cause unexpected behavior in channels
  25. * that utilize these fields.
  26. */
  27. /*! \name AstTranscode General Asterisk channel transcoding definitions.
  28. */
  29. /*@{ */
  30. #define AST_TRANS_CAP_SPEECH 0x0
  31. #define AST_TRANS_CAP_DIGITAL 0x08
  32. #define AST_TRANS_CAP_RESTRICTED_DIGITAL 0x09
  33. #define AST_TRANS_CAP_3_1K_AUDIO 0x10
  34. #define AST_TRANS_CAP_7K_AUDIO 0x11 /* Depriciated ITU Q.931 (05/1998)*/
  35. #define AST_TRANS_CAP_DIGITAL_W_TONES 0x11
  36. #define AST_TRANS_CAP_VIDEO 0x18
  37. /*@} */
  38. #define IS_DIGITAL(cap)\
  39. (cap) & AST_TRANS_CAP_DIGITAL ? 1 : 0
  40. #endif /* _ASTERISK_TRANSCAP_H */