[Home]

Summary:ASTERISK-26932: [patch] SIP/SDP: No rtpmap for static RTP payload IDs
Reporter:Alexander Traud (traud)Labels:patch pjsip
Date Opened:2017-04-10 05:19:39Date Closed:2017-04-26 10:45:21
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_sdp_rtp
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) pjsip_compact_headers_since_PJSIP_2_8.patch
( 1) pjsip_compact_headers.patch
Description:If a lot of audio and video codecs are enabled (allowed), an outgoing call might hit the MTU bearer of 1300 bytes for SIP over UDP. In [SDP|http://tools.ietf.org/html/rfc4566#section-5.14], specifying the rtpmap for a [static RTP payload ID|http://www.iana.org/assignments/rtp-parameters] is a SHOULD but optional. This saves around 20 bytes per format. This affects G.722, G.711, G.729, and GSM for example. Consequently, more than 100 bytes can be saved even on typical deployments = around 10%.

FreeSWITCH does this on default but reports some broken clients implementations. Therefore, FreeSWITCH included the variable [verbose_sdp|http://wiki.freeswitch.org/wiki/Variable_verbose_sdp] to disable this feature. Consequently, although in different specifications, I coupled this new feature with [SIP Compact Form|http://tools.ietf.org/html/rfc3261#section-7.3.3]. Compact Form is disabled on default. When someone enables those compact headers, he is about reducing the message size and does benefit from this change here as well. This reduces the complexity of the attached patch to two Boolean statements.

This is a port of ASTERISK-25578 from from the SIP channel driver chan_sip to res_pjsip.
Comments:By: Friendly Automation (friendly-automation) 2017-04-26 10:45:22.437-0500

Change 5431 merged by Jenkins2:
res_pjsip_sdp_rtp: No rtpmap for static RTP payload IDs in SDP.

[https://gerrit.asterisk.org/5431|https://gerrit.asterisk.org/5431]

By: Asterisk Team (asteriskteam) 2019-05-31 09:30:53.564-0500

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.