/usr/include/asterisk/stasis_system.h is in asterisk-dev 1:13.1.0~dfsg-1.1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | /*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 2013, Digium, Inc.
*
* Jason Parker <jparker@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.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
#ifndef _ASTERISK_STASIS_SYSTEM_H
#define _ASTERISK_STASIS_SYSTEM_H
#include "asterisk/json.h"
#include "asterisk/stasis.h"
/*!
* \since 12
* \brief Publish a channel driver outgoing registration message
*
* \param channeltype The channel driver that published the message
* \param username The username that was used to register
* \param domain The domain that was used to register
* \param status The result of the registration
* \param cause The reason for the result
*/
void ast_system_publish_registry(const char *channeltype, const char *username, const char *domain, const char *status, const char *cause);
/*!
* \since 12
* \brief A \ref stasis topic which publishes messages regarding system changes
*
* \retval \ref stasis_topic for system level changes
* \retval NULL on error
*/
struct stasis_topic *ast_system_topic(void);
/*!
* \since 12
* \brief A \ref stasis_message_type for network changes
*
* \retval NULL on error
* \retval \ref stasis_message_type for network changes
*
* \note Messages of this type should always be issued on and expected from
* the \ref ast_system_topic \ref stasis topic
*/
struct stasis_message_type *ast_network_change_type(void);
/*!
* \brief A \ref stasis_message_type for outbound registration.
* \since 12
*/
struct stasis_message_type *ast_system_registry_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Available messages.
* \since 12
*/
struct stasis_message_type *ast_cc_available_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Offer Timer Start messages.
* \since 12
*/
struct stasis_message_type *ast_cc_offertimerstart_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Requested messages.
* \since 12
*/
struct stasis_message_type *ast_cc_requested_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Request Acknowledged messages.
* \since 12
*/
struct stasis_message_type *ast_cc_requestacknowledged_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Caller Stop Monitoring messages.
* \since 12
*/
struct stasis_message_type *ast_cc_callerstopmonitoring_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Caller Start Monitoring messages.
* \since 12
*/
struct stasis_message_type *ast_cc_callerstartmonitoring_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Caller Recalling messages.
* \since 12
*/
struct stasis_message_type *ast_cc_callerrecalling_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Recall Complete messages.
* \since 12
*/
struct stasis_message_type *ast_cc_recallcomplete_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Failure messages.
* \since 12
*/
struct stasis_message_type *ast_cc_failure_type(void);
/*!
* \brief A \ref stasis_message_type for CCSS Monitor Failed messages.
* \since 12
*/
struct stasis_message_type *ast_cc_monitorfailed_type(void);
/*!
* \brief Initialize the stasis system topic and message types
* \retval 0 on success
* \retval -1 on failure
*/
int ast_stasis_system_init(void);
#endif /* _ASTERISK_STASIS_SYSTEM_H */
|