globals.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2010, Digium, Inc.
  5. *
  6. * See http://www.asterisk.org for more information about
  7. * the Asterisk project. Please do not directly contact
  8. * any of the maintainers of this project for assistance;
  9. * the project provides a web site, mailing lists and IRC
  10. * channels for your use.
  11. *
  12. * This program is free software, distributed under the terms of
  13. * the GNU General Public License Version 2. See the LICENSE file
  14. * at the top of the source tree.
  15. */
  16. /*!
  17. * \file
  18. * \brief sip global declaration header file
  19. */
  20. #include "sip.h"
  21. #ifndef _SIP_GLOBALS_H
  22. #define _SIP_GLOBALS_H
  23. extern struct ast_sockaddr bindaddr; /*!< UDP: The address we bind to */
  24. extern struct ast_sched_context *sched; /*!< The scheduling context */
  25. /*! \brief Definition of this channel for PBX channel registration */
  26. extern struct ast_channel_tech sip_tech;
  27. /*! \brief This version of the sip channel tech has no send_digit_begin
  28. * callback so that the core knows that the channel does not want
  29. * DTMF BEGIN frames.
  30. * The struct is initialized just before registering the channel driver,
  31. * and is for use with channels using SIP INFO DTMF.
  32. */
  33. extern struct ast_channel_tech sip_tech_info;
  34. #endif /* !defined(SIP_GLOBALS_H) */