00001 /* 00002 * Asterisk -- An open source telephony toolkit. 00003 * 00004 * Copyright (C) 1999 - 2005, Digium, Inc. 00005 * 00006 * Mark Spencer <markster@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 Persistant data storage (akin to *doze registry) 00021 */ 00022 00023 #ifndef _ASTERISK_PRIVACY_H 00024 #define _ASTERISK_PRIVACY_H 00025 00026 #if defined(__cplusplus) || defined(c_plusplus) 00027 extern "C" { 00028 #endif 00029 00030 #define AST_PRIVACY_DENY (1 << 0) /* Don't bother ringing, send to voicemail */ 00031 #define AST_PRIVACY_ALLOW (1 << 1) /* Pass directly to me */ 00032 #define AST_PRIVACY_KILL (1 << 2) /* Play anti-telemarketer message and hangup */ 00033 #define AST_PRIVACY_TORTURE (1 << 3) /* Send directly to tele-torture */ 00034 #define AST_PRIVACY_UNKNOWN (1 << 16) 00035 00036 int ast_privacy_check(char *dest, char *cid); 00037 00038 int ast_privacy_set(char *dest, char *cid, int status); 00039 00040 int ast_privacy_reset(char *dest); 00041 00042 #if defined(__cplusplus) || defined(c_plusplus) 00043 } 00044 #endif 00045 00046 #endif /* _ASTERISK_PRIVACY_H */