diff options
author | Olle Johansson <oej@edvina.net> | 2007-01-02 20:01:34 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2007-01-02 20:01:34 +0000 |
commit | 0d340b7d027fa93f112c939a3c8f6550897c0470 (patch) | |
tree | ef89210040ce8cce6b39f3c9d2417cc5b10d1cd3 /channels | |
parent | 16fde34dccb7680cec5fbcefef8cb6490fda4e16 (diff) |
Merged revisions 49212 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49212 | oej | 2007-01-02 20:58:45 +0100 (Tue, 02 Jan 2007) | 2 lines
Small cleanup of add_t38sdp - it's always enabled at that point in the code
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e71af5e12..4787c1419 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6114,9 +6114,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); |