[Asterisk-code-review] res pjsip sdp rtp: Properly set packetization on the codec (asterisk[13])

Robert Cripps asteriskteam at digium.com
Thu Oct 25 09:15:58 CDT 2018


Robert Cripps has posted comments on this change. ( https://gerrit.asterisk.org/10495 )

Change subject: res_pjsip_sdp_rtp: Properly set packetization on the codec
......................................................................


Patch Set 2:

(2 comments)

> (2 comments)

https://gerrit.asterisk.org/#/c/10495/2/res/res_pjsip_sdp_rtp.c
File res/res_pjsip_sdp_rtp.c:

https://gerrit.asterisk.org/#/c/10495/2/res/res_pjsip_sdp_rtp.c@396
PS2, Line 396: 		if (codecs.framing) {
             : 			/* Copy the codecs framing ms even though there is no match */
             : 			ast_rtp_codecs_set_framing(ast_rtp_instance_get_codecs(session_media->rtp), codecs.framing);
             : 		}
> Can you elaborate why exactly this is done? I'd expect the stream itself to be rejected, so I'm not  […]
This is the transcoding case and if the framing is not copied then the transcoded payload ends up with the same framing. For example if the A Leg is 40ms ALAW then the B Leg ULAW even though negotiated to 20ms, ends up with 40ms ULAW


https://gerrit.asterisk.org/#/c/10495/2/res/res_rtp_asterisk.c
File res/res_rtp_asterisk.c:

https://gerrit.asterisk.org/#/c/10495/2/res/res_rtp_asterisk.c@5165
PS2, Line 5165: 	framing_inst1 = ast_rtp_codecs_get_framing(ast_rtp_instance_get_codecs(instance1));
              : 	framing_inst  = ast_rtp_codecs_get_framing(ast_rtp_instance_get_codecs(instance));
              : 	if (framing_inst1 != 0 && framing_inst != framing_inst1) {
              : 		return -1;
              : 	}
> The bridge_native_rtp module already does checks on framing before allowing a bridge to occur - do t […]
I'll have a look at the code and get back to you



-- 
To view, visit https://gerrit.asterisk.org/10495
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic64b8fc6a140a93fbdb2f97550a40d0ff334e607
Gerrit-Change-Number: 10495
Gerrit-PatchSet: 2
Gerrit-Owner: Robert Cripps <rcripps at voxbone.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Robert Cripps <rcripps at voxbone.com>
Gerrit-Comment-Date: Thu, 25 Oct 2018 14:15:58 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181025/6c9b15a3/attachment.html>


More information about the asterisk-code-review mailing list