2002-05-09 16:55:13 +00:00
|
|
|
/*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Asterisk -- An open source telephony toolkit.
|
2002-05-09 16:55:13 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Copyright (C) 1999 - 2005, Digium, Inc.
|
2002-05-09 16:55:13 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Mark Spencer <markster@digium.com>
|
|
|
|
*
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
2002-05-09 16:55:13 +00:00
|
|
|
*
|
|
|
|
* This program is free software, distributed under the terms of
|
2005-08-30 18:32:10 +00:00
|
|
|
* the GNU General Public License Version 2. See the LICENSE file
|
|
|
|
* at the top of the source tree.
|
|
|
|
*/
|
|
|
|
|
2005-10-24 20:12:06 +00:00
|
|
|
/*! \file
|
|
|
|
* \brief Music on hold handling
|
2002-05-09 16:55:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASTERISK_MOH_H
|
|
|
|
#define _ASTERISK_MOH_H
|
|
|
|
|
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*! Turn on music on hold on a given channel */
|
2006-02-01 23:05:28 +00:00
|
|
|
int ast_moh_start(struct ast_channel *chan, const char *mclass);
|
2002-05-09 16:55:13 +00:00
|
|
|
|
|
|
|
/*! Turn off music on hold on a given channel */
|
2006-02-01 23:05:28 +00:00
|
|
|
void ast_moh_stop(struct ast_channel *chan);
|
2002-05-09 16:55:13 +00:00
|
|
|
|
2006-02-01 23:05:28 +00:00
|
|
|
void ast_install_music_functions(int (*start_ptr)(struct ast_channel *, const char *),
|
|
|
|
void (*stop_ptr)(struct ast_channel *),
|
|
|
|
void (*cleanup_ptr)(struct ast_channel *));
|
2006-03-31 10:29:50 +00:00
|
|
|
|
2006-02-01 23:05:28 +00:00
|
|
|
void ast_uninstall_music_functions(void);
|
|
|
|
|
2004-12-24 01:40:07 +00:00
|
|
|
void ast_moh_cleanup(struct ast_channel *chan);
|
2004-12-09 19:55:01 +00:00
|
|
|
|
2002-05-09 16:55:13 +00:00
|
|
|
#if defined(__cplusplus) || defined(c_plusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-08-30 18:32:10 +00:00
|
|
|
#endif /* _ASTERISK_MOH_H */
|