looneyapurv / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

SIP continuation failes if using NIO #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Modify a Shootme example to use nio: 
((SIPTransactionStack) sipStack).setMessageProcessorFactory(new 
NioMessageProcessorFactory());
Send a sip INVITE which is larger than 1500bytes.
The parsing will fail.
This works when using IO.

Tested on master 2015-03-26

If continuation breaks up the packet in the SDP the sip stack will:
* parse all headers
* indicate content-type: application/sdp 
* indicate content-lenght: 0
* The continuation will cause a parse exception.

Original issue reported on code.google.com by tomas.ho...@gmail.com on 26 Mar 2015 at 7:07