mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
As described in the issue, /tmp is not a suitable location for a large amount of cached media files, since most distributions make /tmp a RAM-based tmpfs mount with limited capacity. I opted for a location that can be configured separately, as opposed to using a subdirectory of spooldir, given the different storage profile (transient files vs files that might stay there indefinitely). This commit just makes the cache directory configurable, and changes the default location from /tmp to /var/cache/asterisk. ASTERISK-29143 Change-Id: Ic54e95199405abacd9e509cef5f08fa14c510b5d
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/*
|
|
* Asterisk -- An open source telephony toolkit.
|
|
*
|
|
* Paths to configurable Asterisk directories
|
|
*
|
|
* Copyright (C) 1999-2006, Digium, Inc.
|
|
*
|
|
* Mark Spencer <markster@digium.com>
|
|
*
|
|
* This program is free software, distributed under the terms of
|
|
* the GNU General Public License
|
|
*/
|
|
|
|
/*! \file
|
|
* \brief Asterisk file paths, configured in asterisk.conf
|
|
*/
|
|
|
|
#ifndef _ASTERISK_PATHS_H
|
|
#define _ASTERISK_PATHS_H
|
|
|
|
extern const char *ast_config_AST_CACHE_DIR;
|
|
extern const char *ast_config_AST_CONFIG_DIR;
|
|
extern const char *ast_config_AST_CONFIG_FILE;
|
|
extern const char *ast_config_AST_MODULE_DIR;
|
|
extern const char *ast_config_AST_SPOOL_DIR;
|
|
extern const char *ast_config_AST_MONITOR_DIR;
|
|
extern const char *ast_config_AST_RECORDING_DIR;
|
|
extern const char *ast_config_AST_VAR_DIR;
|
|
extern const char *ast_config_AST_DATA_DIR;
|
|
extern const char *ast_config_AST_LOG_DIR;
|
|
extern const char *ast_config_AST_AGI_DIR;
|
|
extern const char *ast_config_AST_DB;
|
|
extern const char *ast_config_AST_KEY_DIR;
|
|
extern const char *ast_config_AST_PID;
|
|
extern const char *ast_config_AST_SOCKET;
|
|
extern const char *ast_config_AST_RUN_DIR;
|
|
extern const char *ast_config_AST_RUN_GROUP;
|
|
extern const char *ast_config_AST_RUN_USER;
|
|
extern const char *ast_config_AST_SYSTEM_NAME;
|
|
extern const char *ast_config_AST_SBIN_DIR;
|
|
extern const char *ast_config_AST_CTL_PERMISSIONS;
|
|
extern const char *ast_config_AST_CTL_OWNER;
|
|
extern const char *ast_config_AST_CTL_GROUP;
|
|
extern const char *ast_config_AST_CTL;
|
|
|
|
#endif /* _ASTERISK_PATHS_H */
|