From: Olle Johansson Date: Tue, 2 Jan 2007 19:58:45 +0000 (+0000) Subject: Small cleanup of add_t38sdp - it's always enabled at that point in the code X-Git-Tag: 1.4.1~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5edb7fa173511eb222974f357c198579cfe005de;p=thirdparty%2Fasterisk.git Small cleanup of add_t38sdp - it's always enabled at that point in the code git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49212 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 587708514f..b9a7175e04 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6003,9 +6003,7 @@ static int add_t38_sdp(struct sip_request *resp, struct sip_pvt *p) ast_build_string(&a_modem_next, &a_modem_left, "a=T38FaxMaxDatagram:%d\r\n",x); if (p->t38.jointcapability != T38FAX_UDP_EC_NONE) ast_build_string(&a_modem_next, &a_modem_left, "a=T38FaxUdpEC:%s\r\n", (p->t38.jointcapability & T38FAX_UDP_EC_REDUNDANCY) ? "t38UDPRedundancy" : "t38UDPFEC"); - len = strlen(v) + strlen(s) + strlen(o) + strlen(c) + strlen(t); - if (p->udptl) - len += strlen(m_modem) + strlen(a_modem); + len = strlen(v) + strlen(s) + strlen(o) + strlen(c) + strlen(t) + strlen(m_modem) + strlen(a_modem); add_header(resp, "Content-Type", "application/sdp"); add_header_contentLength(resp, len); add_line(resp, v);