]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_sip.c: Suppress T.38 SDP c= line if addr is the same. 86/2286/1
authorRichard Mudgett <rmudgett@digium.com>
Tue, 23 Feb 2016 20:57:42 +0000 (14:57 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 23 Feb 2016 22:29:54 +0000 (16:29 -0600)
Use the correct comparison function since we only care if the address
without the port is the same.

Change-Id: Ibf6c485f843a1be6dee58a47b33d81a7a8cbe3b0

channels/chan_sip.c

index db3c49f68e317d0bb4eea039da3fe7dd2e94391e..b7e4c695b3f5644d1817727fe5c98e6f64a7af4f 100644 (file)
@@ -13315,7 +13315,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));