Asterisk - The Open Source Telephony Project GIT-master-7e7a603
privacy.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 1999 - 2005, Digium, Inc.
5 *
6 * Mark Spencer <markster@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
19/*! \file
20 * \brief Persistent data storage (akin to *doze registry)
21 */
22
23#ifndef _ASTERISK_PRIVACY_H
24#define _ASTERISK_PRIVACY_H
25
26#if defined(__cplusplus) || defined(c_plusplus)
27extern "C" {
28#endif
29
30#define AST_PRIVACY_DENY (1 << 0) /* Don't bother ringing, send to voicemail */
31#define AST_PRIVACY_ALLOW (1 << 1) /* Pass directly to me */
32#define AST_PRIVACY_KILL (1 << 2) /* Play anti-telemarketer message and hangup */
33#define AST_PRIVACY_TORTURE (1 << 3) /* Send directly to tele-torture */
34#define AST_PRIVACY_UNKNOWN (1 << 16)
35
36int ast_privacy_check(char *dest, char *cid);
37
38int ast_privacy_set(char *dest, char *cid, int status);
39
40int ast_privacy_reset(char *dest);
41
42#if defined(__cplusplus) || defined(c_plusplus)
43}
44#endif
45
46#endif /* _ASTERISK_PRIVACY_H */
jack_status_t status
Definition: app_jack.c:146
int ast_privacy_set(char *dest, char *cid, int status)
Definition: privacy.c:82
int ast_privacy_check(char *dest, char *cid)
Definition: privacy.c:46
int ast_privacy_reset(char *dest)
Definition: privacy.c:75