Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5f62bfd

Browse files
committedDec 11, 2019
for foreign calls use owner rtpengine connection address for network address
instead of generating an address from a the static configuration
1 parent 9328f02 commit 5f62bfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎daemon/call_interfaces.c

+2
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,8 @@ void format_network_address(str* o, struct packet_stream *ps, struct sdp_ng_flag
19521952
o->len = sprintf(o->s, "%s %s",
19531953
flags->parsed_media_address.family->rfc_name,
19541954
sockaddr_print_buf(&flags->parsed_media_address));
1955+
else if (IS_FOREIGN_CALL(ps->call) && ps->call->rtpe_connection_addr.len)
1956+
o->len = sprintf(o->s, "%s", ps->call->rtpe_connection_addr.s);
19551957
else
19561958
call_stream_address46(o->s, ps, SAF_NG, &o->len, NULL, keep_unspec);
19571959
}

0 commit comments

Comments
 (0)
Please sign in to comment.