Issue #8600 - bogus SDP Content Length in T.38 re-invite
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
b3ca8342fd
commit
d69e9086cc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
ast_build_string(&a_modem_next, &a_modem_left, "a=T38FaxMaxDatagram:%d\r\n",x);
|
||||||
if (p->t38.jointcapability != T38FAX_UDP_EC_NONE)
|
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");
|
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)
|
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(resp, "Content-Type", "application/sdp");
|
||||||
add_header_contentLength(resp, len);
|
add_header_contentLength(resp, len);
|
||||||
add_line(resp, v);
|
add_line(resp, v);
|
||||||
|
|
Loading…
Reference in a new issue