diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-02-23 14:57:42 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-02-23 16:40:20 -0600 |
commit | 6656afffa0bf19eeaeecf6d775fa4b68f6c92248 (patch) | |
tree | a03449af944baa132d24bfec52f5b52810d33752 /channels | |
parent | aa637f0a911eb9184de1922b1d230855822ed839 (diff) |
chan_sip.c: Suppress T.38 SDP c= line if addr is the same.
Use the correct comparison function since we only care if the address
without the port is the same.
Change-Id: Ibf6c485f843a1be6dee58a47b33d81a7a8cbe3b0
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cc4fa88bd..3b6c00513 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -13446,7 +13446,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)); |