From: Alexander Traud Date: Mon, 20 Nov 2017 15:13:39 +0000 (+0100) Subject: chan_sip: ICE contained square brackets around IPv6 addresses. X-Git-Tag: 16.0.0-rc1~598^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=491e2eba0dd3b4049113f39e4eedfe57b3ff29a4;p=thirdparty%2Fasterisk.git chan_sip: ICE contained square brackets around IPv6 addresses. ASTERISK-27434 Change-Id: Iaeed89b4fa05d94c5f0ec2d3b7cd6e93d2d5a8f7 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bd68ec096c..a829e20394 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13055,7 +13055,7 @@ static void add_ice_to_sdp(struct ast_rtp_instance *instance, struct ast_str **a while ((candidate = ao2_iterator_next(&i))) { ast_str_append(a_buf, 0, "a=candidate:%s %u %s %d ", candidate->foundation, candidate->id, candidate->transport, candidate->priority); - ast_str_append(a_buf, 0, "%s ", ast_sockaddr_stringify_host(&candidate->address)); + ast_str_append(a_buf, 0, "%s ", ast_sockaddr_stringify_addr_remote(&candidate->address)); ast_str_append(a_buf, 0, "%s typ ", ast_sockaddr_stringify_port(&candidate->address)); @@ -13068,7 +13068,7 @@ static void add_ice_to_sdp(struct ast_rtp_instance *instance, struct ast_str **a } if (!ast_sockaddr_isnull(&candidate->relay_address)) { - ast_str_append(a_buf, 0, " raddr %s ", ast_sockaddr_stringify_host(&candidate->relay_address)); + ast_str_append(a_buf, 0, " raddr %s ", ast_sockaddr_stringify_addr_remote(&candidate->relay_address)); ast_str_append(a_buf, 0, "rport %s", ast_sockaddr_stringify_port(&candidate->relay_address)); }