diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-23 08:46:36 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-23 08:46:36 -0600 |
commit | 662051fbf1db14d7b844345df3bbb9037922d81d (patch) | |
tree | 1ee4adc3967ba00237a5480263bac17360a7edc3 | |
parent | 3e625465116a0fb985d94bcd1eb4096a85026307 (diff) | |
parent | c4f07a9bd4eb1ac89140aba1fbd347ab047a163a (diff) |
Merge "chan_sip: ICE contained square brackets around IPv6 addresses." into 15
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fa228ceb1..a6e5493c2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13011,7 +13011,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)); @@ -13024,7 +13024,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)); } |