SIP - Lots of regexp hacking of input streams and verbose debugging feedback.
authorJoe Atzberger (siptest <atz4sip@arwen.metavore.com>
Fri, 20 Jun 2008 03:23:00 +0000 (22:23 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 20 Jun 2008 11:12:42 +0000 (06:12 -0500)
commit5aecb46ad05795d259dfe7f581e3519af5a07afd
tree5fb826912d048607334d9c21e33aba1b76f9578d
parentc5ac051f70c1f6a6ffd1b98e3a40a21ef3799f0a
SIP - Lots of regexp hacking of input streams and verbose debugging feedback.

The basic problem is that the SIP logic doesn't know where the
input is coming from.  It might be a RAW socket, and it might
be telnet.  If it is telnet, although the specs declare a
character set (from MS, unfortunately), they do not specify a telnet
implementation.  So you might get telnet handshaking or
renegotiations in the middle of an otherwise peaceful session and
these should not be taken as SIP commands.  Patches include a move
towards using $CRLF from Socket to avoid problems w/ foreign platform
mapping \n and \r to \015 or \012.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/SIP/SIPServer.pm
C4/SIP/Sip.pm
C4/SIP/Sip/MsgType.pm
C4/SIP/t/SIPtest.pm