[asterisk-bugs] [Asterisk 0008556]: Large SIP messages are truncated to 4096 bytes

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Mar 13 14:50:41 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=8556 
====================================================================== 
Reported By:                mikma
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   8556
Category:                   Channels/chan_sip/Interoperability
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0-beta1 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 48373 
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             12-10-2006 17:05 CST
Last Modified:              03-13-2008 14:50 CDT
====================================================================== 
Summary:                    Large SIP messages are truncated to 4096 bytes
Description: 
According to RFC 3261, SIP implementations MUST be able to handle messages
up
to 65535 bytes.
Asterisk currently can't handle SIP messages larger than 4096 bytes
excluding IP and UDP headers. Larger messages are truncated.

RFC 3261, Section 18.1.1 Sending Requests

   However,
   implementations MUST be able to handle messages up to the maximum
   datagram packet size.  For UDP, this size is 65,535 bytes, including
   IP and UDP headers.

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 03-13-08 14:50  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 108439

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r108439 | russell | 2008-03-13 14:50:39 -0500 (Thu, 13 Mar 2008) | 8 lines

Merge changes from team/jamesgolovich/chan_sip-ast_str

This set of changes removes the hard coded maximum packet size of 4kB from
chan_sip.
It now starts by allocating 1kB, and growing the buffer as needed to
accommodate large
packets.

(closes issue http://bugs.digium.com/view.php?id=8556, reported by mikma, patch
by jamesgolovich)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=108439 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-13-08 14:50  svnbot         Checkin                                      
03-13-08 14:50  svnbot         Note Added: 0083919                          
03-13-08 14:50  svnbot         Status                   ready for testing =>
assigned
======================================================================




More information about the asterisk-bugs mailing list