Skip to content

Commit

Permalink
for foreign calls use owner rtpengine connection address for network …
Browse files Browse the repository at this point in the history
…address

instead of generating an address from a the static configuration
  • Loading branch information
guss77 committed Dec 11, 2019
1 parent 9328f02 commit 5f62bfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/call_interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,8 @@ void format_network_address(str* o, struct packet_stream *ps, struct sdp_ng_flag
o->len = sprintf(o->s, "%s %s",
flags->parsed_media_address.family->rfc_name,
sockaddr_print_buf(&flags->parsed_media_address));
else if (IS_FOREIGN_CALL(ps->call) && ps->call->rtpe_connection_addr.len)
o->len = sprintf(o->s, "%s", ps->call->rtpe_connection_addr.s);
else
call_stream_address46(o->s, ps, SAF_NG, &o->len, NULL, keep_unspec);
}

0 comments on commit 5f62bfd

Please sign in to comment.