mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-09 22:45:49 +00:00
Stasis: Update security events to use Stasis
Also moves ACL messages to the security topic and gets rid of the ACL topic (closes issue ASTERISK-21103) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2496/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#ifndef _ASTERISK_JSON_H
|
||||
#define _ASTERISK_JSON_H
|
||||
|
||||
#include "asterisk/netsock2.h"
|
||||
|
||||
/*! \file
|
||||
*
|
||||
* \brief Asterisk JSON abstraction layer.
|
||||
@@ -862,6 +864,18 @@ struct ast_json *ast_json_name_number(const char *name, const char *number);
|
||||
*/
|
||||
struct ast_json *ast_json_timeval(const struct timeval tv, const char *zone);
|
||||
|
||||
/*!
|
||||
* \brief Construct an IP address as JSON
|
||||
*
|
||||
* XXX some comments describing the need for this here
|
||||
*
|
||||
* \param addr ast_sockaddr to encode
|
||||
* \param transport_type ast_transport to include in the address string if any. Should just be one.
|
||||
* \return JSON string containing the IP address with optional transport information
|
||||
* \return \c NULL on error.
|
||||
*/
|
||||
struct ast_json *ast_json_ipaddr(const struct ast_sockaddr *addr, enum ast_transport transport_type);
|
||||
|
||||
/*!
|
||||
* \brief Construct a context/exten/priority as JSON.
|
||||
*
|
||||
|
Reference in New Issue
Block a user