mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 20:56:39 +00:00
This patch adds CHANNEL read support for chan_pjsip. This allows the dialplan to use the CHANNEL function on a chan_pjsip channel to obtain run-time information about the channel from the PJSIP channel driver and the PJSIP stack. This includes: * RTP information, including source/destination media addresses, whether or not the media is secure, held, and other properties. * RTCP information. This includes sets of parseable information, as well as individual statistic attriutes. * PJSIP information. This includes URIs, local/remote signalling addresses, whether or not the signalling is secure, and other properties. * The endpoint name. This can be used in conjunction with the PJSIP_ENDPOINT function to obtain more detailed endpoint information. Review: https://reviewboard.asterisk.org/r/3038/ ........ Merged revisions 403618 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
76 lines
2.4 KiB
C
76 lines
2.4 KiB
C
/*
|
|
* Asterisk -- An open source telephony toolkit.
|
|
*
|
|
* Copyright (C) 2013, Digium, Inc.
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
/*!
|
|
* \file
|
|
* \brief PJSIP dialplan functions header file
|
|
*/
|
|
|
|
#ifndef _PJSIP_DIALPLAN_FUNCTIONS
|
|
#define _PJSIP_DIALPLAN_FUNCTIONS
|
|
|
|
/*!
|
|
* \brief CHANNEL function read callback
|
|
* \param chan The channel the function is called on
|
|
* \param cmd The name of the function
|
|
* \param data Arguments passed to the function
|
|
* \param buf Out buffer that should be populated with the data
|
|
* \param len Size of the buffer
|
|
*
|
|
* \retval 0 on success
|
|
* \retval -1 on failure
|
|
*/
|
|
int pjsip_acf_channel_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
|
|
|
|
/*!
|
|
* \brief PJSIP_MEDIA_OFFER function write callback
|
|
* \param chan The channel the function is called on
|
|
* \param cmd The name of the function
|
|
* \param data Arguments passed to the function
|
|
* \param value Value to be set by the function
|
|
*
|
|
* \retval 0 on success
|
|
* \retval -1 on failure
|
|
*/
|
|
int pjsip_acf_media_offer_write(struct ast_channel *chan, const char *cmd, char *data, const char *value);
|
|
|
|
/*!
|
|
* \brief PJSIP_MEDIA_OFFER function read callback
|
|
* \param chan The channel the function is called on
|
|
* \param cmd The name of the function
|
|
* \param data Arguments passed to the function
|
|
* \param buf Out buffer that should be populated with the data
|
|
* \param len Size of the buffer
|
|
*
|
|
* \retval 0 on success
|
|
* \retval -1 on failure
|
|
*/
|
|
int pjsip_acf_media_offer_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
|
|
|
|
/*!
|
|
* \brief PJSIP_DIAL_CONTACTS function read callback
|
|
* \param chan The channel the function is called on
|
|
* \param cmd The name of the function
|
|
* \param data Arguments passed to the function
|
|
* \param buf Out buffer that should be populated with the data
|
|
* \param len Size of the buffer
|
|
*
|
|
* \retval 0 on success
|
|
* \retval -1 on failure
|
|
*/
|
|
int pjsip_acf_dial_contacts_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
|
|
|
|
#endif /* _PJSIP_DIALPLAN_FUNCTIONS */ |