Skip to content

Commit

Permalink
MT#60476 fix advertised_address not being honoured
Browse files Browse the repository at this point in the history
Fixes regression from the SDP printing rework.

Fixes #1885

(We should add tests for this...)

Change-Id: I2154cd61fbe4a0c9bf63a25128f038068acffa0a
(cherry picked from commit 1a1eaab)
  • Loading branch information
rfuchs committed Dec 19, 2024
1 parent 2871ea1 commit 5dbec2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions daemon/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3033,8 +3033,10 @@ static struct call_media *sdp_out_set_source_media_address(struct call_media *me
{
struct call_media *source_media = NULL;
/* the port and address that goes into the SDP also depends on this */
if (rtp_ps->selected_sfd)
*sdp_address = rtp_ps->selected_sfd->socket.local;
if (rtp_ps->selected_sfd) {
sdp_address->port = rtp_ps->selected_sfd->socket.local.port;
sdp_address->address = rtp_ps->selected_sfd->local_intf->advertised_address.addr;
}

struct media_subscription *ms = call_media_get_top_ms(media);
if (ms && ms->media) {
Expand Down

0 comments on commit 5dbec2e

Please sign in to comment.