aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 16:01:07 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-27 16:01:07 +0000
commit7b9cb125e3cb9b5393bded636f143e4bc1c2aef7 (patch)
tree8ac7589300528b6c1f82e886efb638353c13cf13 /channels/chan_sip.c
parent7b32df306ce01f06d5fa5f9a37e9922b95fb03ba (diff)
Issue #8600 - bogus SDP Content Length in T.38 re-invite
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48976 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b02d0a7e1..2d4ab866a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6113,8 +6113,9 @@ 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(m_modem) + strlen(a_modem);
add_header(resp, "Content-Type", "application/sdp");
add_header_contentLength(resp, len);
add_line(resp, v);