pjsip/include/dialplan_functions.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 2013, Digium, Inc.
00005  *
00006  * See http://www.asterisk.org for more information about
00007  * the Asterisk project. Please do not directly contact
00008  * any of the maintainers of this project for assistance;
00009  * the project provides a web site, mailing lists and IRC
00010  * channels for your use.
00011  *
00012  * This program is free software, distributed under the terms of
00013  * the GNU General Public License Version 2. See the LICENSE file
00014  * at the top of the source tree.
00015  */
00016 
00017 /*!
00018  * \file
00019  * \brief PJSIP dialplan functions header file
00020  */
00021 
00022 #ifndef _PJSIP_DIALPLAN_FUNCTIONS
00023 #define _PJSIP_DIALPLAN_FUNCTIONS
00024 
00025 /*!
00026  * \brief CHANNEL function read callback
00027  * \param chan The channel the function is called on
00028  * \param cmd The name of the function
00029  * \param data Arguments passed to the function
00030  * \param buf Out buffer that should be populated with the data
00031  * \param len Size of the buffer
00032  *
00033  * \retval 0 on success
00034  * \retval -1 on failure
00035  */
00036 int pjsip_acf_channel_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
00037 
00038 /*!
00039  * \brief PJSIP_MEDIA_OFFER function write callback
00040  * \param chan The channel the function is called on
00041  * \param cmd The name of the function
00042  * \param data Arguments passed to the function
00043  * \param value Value to be set by the function
00044  *
00045  * \retval 0 on success
00046  * \retval -1 on failure
00047  */
00048 int pjsip_acf_media_offer_write(struct ast_channel *chan, const char *cmd, char *data, const char *value);
00049 
00050 /*!
00051  * \brief PJSIP_MEDIA_OFFER function read callback
00052  * \param chan The channel the function is called on
00053  * \param cmd The name of the function
00054  * \param data Arguments passed to the function
00055  * \param buf Out buffer that should be populated with the data
00056  * \param len Size of the buffer
00057  *
00058  * \retval 0 on success
00059  * \retval -1 on failure
00060  */
00061 int pjsip_acf_media_offer_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
00062 
00063 /*!
00064  * \brief PJSIP_DIAL_CONTACTS function read callback
00065  * \param chan The channel the function is called on
00066  * \param cmd The name of the function
00067  * \param data Arguments passed to the function
00068  * \param buf Out buffer that should be populated with the data
00069  * \param len Size of the buffer
00070  *
00071  * \retval 0 on success
00072  * \retval -1 on failure
00073  */
00074 int pjsip_acf_dial_contacts_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len);
00075 
00076 #endif /* _PJSIP_DIALPLAN_FUNCTIONS */

Generated on Thu Apr 16 06:27:33 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6