Revision 155513 of chan_sip.c in trunk inadvertently
authorMark Michelson <mmichelson@digium.com>
Fri, 14 Nov 2008 21:19:58 +0000 (21:19 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 14 Nov 2008 21:19:58 +0000 (21:19 +0000)
removed a very important line to set the "len" field
for incoming SIP requests. The result was that all incoming
SIP messages appeared to be 0-length, meaning Asterisk
could do no meaningful processing of anything SIP-related

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@156962 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d1c77c4..70a220b 100644 (file)
@@ -20114,6 +20114,7 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
                return -1;
        }
 
+       req.len = res;
        req.socket.fd   = sipsock;
        req.socket.type = SIP_TRANSPORT_UDP;
        req.socket.ser  = NULL;