mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 22:27:07 +00:00
Re-fix sending unnegotiated payloads during a P2P RTP bridge.
The previous fix still would look in the static_RTP_PT table, which is inappropriate since we specifically want to find a codec that has been negotiated. (closes issue ASTERISK-20296) reported by NITESH BANSAL Patches: codec_negotiation.patch Uploaded by NITESH BANSAL (License #6418) ........ Merged revisions 372311 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@372319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1216,6 +1216,24 @@ void ast_rtp_codecs_payload_formats(struct ast_rtp_codecs *codecs, struct ast_fo
|
||||
* \since 1.8
|
||||
*/
|
||||
int ast_rtp_codecs_payload_code(struct ast_rtp_codecs *codecs, int asterisk_format, const struct ast_format *format, int code);
|
||||
/*!
|
||||
* \brief Search for a payload code in the ast_rtp_codecs structure
|
||||
*
|
||||
* \param codecs Codecs structure to look in
|
||||
* \param code The format to look for
|
||||
*
|
||||
* \retval Numerical payload or -1 if unable to find payload in codecs
|
||||
*
|
||||
* Example usage:
|
||||
*
|
||||
* \code
|
||||
* int payload = ast_rtp_codecs_payload_code(&codecs, 0);
|
||||
* \endcode
|
||||
*
|
||||
* This looks for the numerical payload for ULAW in the codecs structure.
|
||||
*
|
||||
*/
|
||||
int ast_rtp_codecs_find_payload_code(struct ast_rtp_codecs *codecs, int code);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve mime subtype information on a payload
|
||||
|
Reference in New Issue
Block a user