Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2114 by wei.j.gao: In B2b servlet, after re-INVITE, and try to create CANCEL will get "final response already sent!" exception.
http://code.google.com/p/mobicents/issues/detail?id=2114

What steps will reproduce the problem?
1.Write a basic B2b servlet. User A send INVITE by b2b, b2b remove authentication info and reset from, to header, send to outside SIP provider. 2. B2b get 401 response and create re-INVITE with account @ outside SIP provider.
3. B2b get 183 and forward back to User A.
4. Now, User A send CANCEL, B2b try to create Cancel from second leg re-INVITE request.

What is the expected output? What do you see instead?
Since second leg INVITE is still EARLY state, it should allow to create cancel request, but I'm getting "final response already sent!" exception.

What version of the product are you using? On what operating system?
1.4.0.FINAL on both Linux and OSX

Please provide any additional information below.
As a work around, I add: "((SipServletRequestImpl) origReq).cleanUpLastResponses();" to clean up last response when process re-INVITE, but this will not always work, sometime it allow me to create cancel request without issue, sometimes it still throwing "final response already sent!" exception.


Reply via email to