Merge "chan_sip.c: Suppress T.38 SDP c= line if addr is the same."
authorzuul <zuul@gerrit.asterisk.org>
Thu, 25 Feb 2016 00:40:15 +0000 (18:40 -0600)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Thu, 25 Feb 2016 00:40:15 +0000 (18:40 -0600)
channels/chan_sip.c

index aaf0b6d..e1c391e 100644 (file)
@@ -13447,7 +13447,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int
 
                ast_str_append(&m_modem, 0, "m=image %d udptl t38\r\n", ast_sockaddr_port(&udptldest));
 
-               if (ast_sockaddr_cmp(&udptldest, &dest)) {
+               if (ast_sockaddr_cmp_addr(&udptldest, &dest)) {
                        ast_str_append(&m_modem, 0, "c=IN %s %s\r\n",
                                        (ast_sockaddr_is_ipv6(&udptldest) && !ast_sockaddr_is_ipv4_mapped(&udptldest)) ?
                                        "IP6" : "IP4", ast_sockaddr_stringify_addr_remote(&udptldest));