Asterisk - The Open Source Telephony Project GIT-master-7e7a603
beep.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2014, Russell Bryant
5 *
6 * Russell Bryant <russell@russellbryant.net>
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/*!
20 * \file
21 * \brief Periodic beeps into the audio of a call
22 */
23
24#ifndef _ASTERISK_BEEP_H
25#define _ASTERISK_BEEP_H
26
28
29#if defined(__cplusplus) || defined(c_plusplus)
30extern "C" {
31#endif
32
34 (struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len),
35 { return -1; });
36
38 (struct ast_channel *chan, const char *beep_id),
39 { return -1; });
40
41#if defined(__cplusplus) || defined(c_plusplus)
42}
43#endif
44
45#endif /* _ASTERISK_BEEP_H */
int ast_beep_stop(struct ast_channel *chan, const char *beep_id)
int ast_beep_start(struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
Optional API function macros.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
Definition: optional_api.h:230
Main Channel structure associated with a channel.