diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h index 3bd105169349e6c070613279fee6bc2594ff8cec..5334b351ca0dcb29846d00285dbd302f7491ca53 100644 --- a/include/asterisk/rtp.h +++ b/include/asterisk/rtp.h @@ -67,19 +67,6 @@ struct ast_rtp_protocol { typedef int (*ast_rtp_callback)(struct ast_rtp *rtp, struct ast_frame *f, void *data); - -/*! - * \brief Structure representing a RTP session. - * - * RTP session is defined on page 9 of RFC 3550: "An association among a set of participants communicating with RTP. A participant may be involved in multiple RTP sessions at the same time [...]" - * - */ -/*! \brief The value of each payload format mapping: */ -struct rtpPayloadType { - int isAstFormat; /*!< whether the following code is an AST_FORMAT */ - int code; -}; - /*! * \brief Get the amount of space required to hold an RTP session * \return number of bytes required diff --git a/rtp.c b/rtp.c index 642c8954e9951bd755929117dbd8574837b41550..d1c7a51be0c05af0da8821686cd9d94ab51e22f4 100644 --- a/rtp.c +++ b/rtp.c @@ -90,6 +90,19 @@ static struct sockaddr_in rtcpdebugaddr; /*!< Debug RTCP packets to/from this ho static int nochecksums = 0; #endif +/*! + * \brief Structure representing a RTP session. + * + * RTP session is defined on page 9 of RFC 3550: "An association among a set of participants communicating with RTP. A participant may be involved in multiple RTP sessions at the same time [...]" + * + */ +/*! \brief The value of each payload format mapping: */ +struct rtpPayloadType { + int isAstFormat; /*!< whether the following code is an AST_FORMAT */ + int code; +}; + + /*! \brief RTP session description */ struct ast_rtp { int s;