MT#60476 fix advertised_address not being honoured

Fixes regression from the SDP printing rework.

Fixes #1885

(We should add tests for this...)

Change-Id: I2154cd61fbe4a0c9bf63a25128f038068acffa0a
(cherry picked from commit 1a1eaab50b)
mr13.1
Richard Fuchs 1 year ago
parent 2871ea186c
commit 5dbec2e7f5

@ -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) {

Loading…
Cancel
Save