[Asterisk-code-review] res_rtp_asterisk: Set correct raddr port on RTCP srflx candidates. (asterisk[16])
George Joseph
asteriskteam at digium.com
Wed May 26 10:35:20 CDT 2021
George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/15897 )
Change subject: res_rtp_asterisk: Set correct raddr port on RTCP srflx candidates.
......................................................................
res_rtp_asterisk: Set correct raddr port on RTCP srflx candidates.
RTCP ICE candidates use a base address derived from the RTP
candidate. The port on the base address was not being updated to
the RTCP port.
This change sets the base port to the RTCP port and all is well.
ASTERISK-29433
Change-Id: Ide2d2115b307bfd3c2dfbc4d187515d724519040
---
M res/res_rtp_asterisk.c
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Benjamin Keith Ford: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 0f883e9..e5bef24 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -3687,6 +3687,7 @@
ao2_iterator_destroy(&i);
if (srflx && baseset) {
+ pj_sockaddr_set_port(&base, port);
ast_rtp_ice_add_cand(instance, rtp, component, transport,
PJ_ICE_CAND_TYPE_SRFLX, 65535, &ext, &base, &base,
pj_sockaddr_get_len(&ext));
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15897
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ide2d2115b307bfd3c2dfbc4d187515d724519040
Gerrit-Change-Number: 15897
Gerrit-PatchSet: 2
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210526/40288290/attachment-0001.html>
More information about the asterisk-code-review
mailing list