mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
If we get a codec offer using a well-known payload type, but using it for another
codec that we don't know, Asterisk did not remove that codec from the list. With this patch, we remove the codec from audio and video rtp objects and deny it ever existed. Thanks to lasse for testing. (closes issue #11376) Reported by: lasse Patches: bug11376.txt uploaded by oej (license 306) Tested by: lasse git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89630 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -170,8 +170,14 @@ void ast_rtp_pt_default(struct ast_rtp* rtp);
|
||||
/*! \brief Copy payload types between RTP structures */
|
||||
void ast_rtp_pt_copy(struct ast_rtp *dest, struct ast_rtp *src);
|
||||
|
||||
/*! \brief Activate payload type */
|
||||
void ast_rtp_set_m_type(struct ast_rtp* rtp, int pt);
|
||||
void ast_rtp_set_rtpmap_type(struct ast_rtp* rtp, int pt,
|
||||
|
||||
/*! \brief clear payload type */
|
||||
void ast_rtp_unset_m_type(struct ast_rtp* rtp, int pt);
|
||||
|
||||
/*! \brief Initiate payload type to a known MIME media type for a codec */
|
||||
int ast_rtp_set_rtpmap_type(struct ast_rtp* rtp, int pt,
|
||||
char *mimeType, char *mimeSubtype,
|
||||
enum ast_rtp_options options);
|
||||
|
||||
|
Reference in New Issue
Block a user