[asterisk-bugs] [Asterisk 0014929]: blank lines in _sip_tcp_helper_thread caused by sip dummy packages
Asterisk Bug Tracker
noreply at bugs.digium.com
Sat Apr 18 03:46:57 CDT 2009
The following issue has been SUBMITTED.
======================================================================
http://bugs.digium.com/view.php?id=14929
======================================================================
Reported By: vrban
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14929
Category: Channels/chan_sip/TCP-TLS
Reproducibility: have not tried
Severity: tweak
Priority: normal
Status: new
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 189204
Request Review:
======================================================================
Date Submitted: 2009-04-18 03:46 CDT
Last Modified: 2009-04-18 03:46 CDT
======================================================================
Summary: blank lines in _sip_tcp_helper_thread caused by sip
dummy packages
Description:
hello, i tested TLS/TCP with a softphone called PhonerLite (based on oSIP)
And when i used it, the TCP buffer in _sip_tcp_helper_thread always was
filled with a blank line. Because the softphone broadcast empty SIP dummy
packages as NAT opener.
This was very annoying, because the dummy SIP package contents only a
single "\r\n", with the effect, that a real SIP messages was getting this
extra blank line from the dummy package because it was still in the buffer,
and so the parse_request and get_header function was not capable to work
proper. I my case this was the reason the return value for the
Content-Length was always 0 and
no sdp was read.
attached is a patch for this issue, but i am not sure if this should go
into chan_sip because it is a fix for crappy SIP dummy packages send by
other. But it is good to know what could go wrong in the
_sip_tcp_helper_thread function and have a possible solution.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-04-18 03:46 vrban New Issue
2009-04-18 03:46 vrban Asterisk Version => SVN
2009-04-18 03:46 vrban Regression => No
2009-04-18 03:46 vrban SVN Branch (only for SVN checkouts, not tarball
releases) => trunk
2009-04-18 03:46 vrban SVN Revision (number only!) => 189204
======================================================================
More information about the asterisk-bugs
mailing list