chan_pjsip.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 Channel Driver shared data structures
00020  */
00021 
00022 #ifndef _CHAN_PJSIP_HEADER
00023 #define _CHAN_PJSIP_HEADER
00024 
00025 struct ast_sip_session_media;
00026 
00027 /*!
00028  * \brief Transport information stored in transport_info datastore
00029  */
00030 struct transport_info_data {
00031    /*! \brief The address that sent the request */
00032    pj_sockaddr remote_addr;
00033    /*! \brief Our address that received the request */
00034    pj_sockaddr local_addr;
00035 };
00036 
00037 /*!
00038  * \brief Positions of various media
00039  */
00040 enum sip_session_media_position {
00041    /*! \brief First is audio */
00042    SIP_MEDIA_AUDIO = 0,
00043    /*! \brief Second is video */
00044    SIP_MEDIA_VIDEO,
00045    /*! \brief Last is the size for media details */
00046    SIP_MEDIA_SIZE,
00047 };
00048 
00049 /*!
00050  * \brief The PJSIP channel driver pvt, stored in the \ref ast_sip_channel_pvt
00051  * data structure
00052  */
00053 struct chan_pjsip_pvt {
00054    /*! \brief The available media sessions */
00055    struct ast_sip_session_media *media[SIP_MEDIA_SIZE];
00056 };
00057 
00058 #endif /* _CHAN_PJSIP_HEADER */

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