2008/4/21 takeshi mayama <[EMAIL PROTECTED]>:
> I'm having problems using Sofia 1.12.8 under linux. The scenario is this:
> The code successfully subscribes to a ParkServer to receive NOTIFY messages
> when calls are parked/unparked on it.
> When the NOTIFY arrives, nta rejects the message with 400 Bad Request.
>  Using gdb, I can see nta does this because the function sip_extract_body
> sets the MSG_FLG_ERROR in sip->sip_flags (line 202 of sip_parser.c) because
> the body of the message is too big for the buffer in the msg_t allocated to
> process the message.

The flag is set if the less data was received than the Content-Length
header indicates. The message is received via UDP, with UDP the buffer
is allocated to fit the incoming datagram. Either the sender included
invalid Content-Length or the UDP datagram got truncated at some
point.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to