mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
res_pjsip_sdp_rtp: No rtpmap for static RTP payload IDs in SDP.
This saves around 100 bytes when G.711, G.722, G.729, and GSM are advertised in SDP. This reduces the chance to hit the MTU bearer of 1300 bytes for SIP over UDP, if many codecs are allowed in Asterisk. This new feature is enabled together with the optional feature compact_headers=yes via the file pjsip.conf. ASTERISK-26932 #close Change-Id: Iaa556ab4c8325cd34c334387ab2847fab07b1689
This commit is contained in:
@@ -81,6 +81,12 @@ extern "C" {
|
||||
/*! Maximum number of payload types RTP can support. */
|
||||
#define AST_RTP_MAX_PT 128
|
||||
|
||||
/*!
|
||||
* Last RTP payload type statically assigned, see
|
||||
* http://www.iana.org/assignments/rtp-parameters
|
||||
*/
|
||||
#define AST_RTP_PT_LAST_STATIC 34
|
||||
|
||||
/*! First dynamic RTP payload type */
|
||||
#define AST_RTP_PT_FIRST_DYNAMIC 96
|
||||
|
||||
|
Reference in New Issue
Block a user