asterisk.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Asterisk -- A telephony toolkit for Linux.
  3. *
  4. * General Definitions for Asterisk top level program
  5. *
  6. * Copyright (C) 1999, Mark Spencer
  7. *
  8. * Mark Spencer <markster@linux-support.net>
  9. *
  10. * This program is free software, distributed under the terms of
  11. * the GNU General Public License
  12. */
  13. #ifndef _ASTERISK_H
  14. #define _ASTERISK_H
  15. #define DEFAULT_LANGUAGE "en"
  16. #define AST_CONFIG_MAX_PATH 255
  17. #define AST_CONFIG_DIR ASTETCDIR
  18. #define AST_RUN_DIR ASTVARRUNDIR
  19. #define AST_SOCKET ASTVARRUNDIR "/asterisk.ctl"
  20. #define AST_PID ASTVARRUNDIR "/asterisk.pid"
  21. #define AST_MODULE_DIR ASTMODDIR
  22. #define AST_SPOOL_DIR ASTSPOOLDIR
  23. #define AST_VAR_DIR ASTVARLIBDIR
  24. #define AST_LOG_DIR ASTLOGDIR
  25. #define AST_AGI_DIR ASTAGIDIR
  26. #define AST_KEY_DIR ASTVARLIBDIR "/keys"
  27. #define AST_DB ASTVARLIBDIR "/astdb"
  28. #define AST_TMP_DIR ASTSPOOLDIR "/tmp"
  29. #define AST_CONFIG_FILE ASTCONFPATH
  30. #define AST_SOUNDS AST_VAR_DIR "/sounds"
  31. #define AST_IMAGES AST_VAR_DIR "/images"
  32. /* Provided by module.c */
  33. extern int load_modules(void);
  34. /* Provided by pbx.c */
  35. extern int load_pbx(void);
  36. /* Provided by logger.c */
  37. extern int init_logger(void);
  38. extern void close_logger(void);
  39. /* Provided by frame.c */
  40. extern int init_framer(void);
  41. /* Provided by logger.c */
  42. extern int reload_logger(int);
  43. /* Provided by term.c */
  44. extern int term_init(void);
  45. /* Provided by db.c */
  46. extern int astdb_init(void);
  47. #endif