beep.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. * \file
  20. * \brief Periodic beeps into the audio of a call
  21. */
  22. #ifndef _ASTERISK_BEEP_H
  23. #define _ASTERISK_BEEP_H
  24. #include "asterisk/optional_api.h"
  25. #if defined(__cplusplus) || defined(c_plusplus)
  26. extern "C" {
  27. #endif
  28. AST_OPTIONAL_API(int, ast_beep_start,
  29. (struct ast_channel *chan, unsigned int interval, char *beep_id, size_t len),
  30. { return -1; });
  31. AST_OPTIONAL_API(int, ast_beep_stop,
  32. (struct ast_channel *chan, const char *beep_id),
  33. { return -1; });
  34. #if defined(__cplusplus) || defined(c_plusplus)
  35. }
  36. #endif
  37. #endif /* _ASTERISK_BEEP_H */