Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 1445 by alexander.kozlov.IV: "Bad Request Method. CANCEL" during sending CANCEL to re-INVITE
http://code.google.com/p/mobicents/issues/detail?id=1445
What steps will reproduce the problem?
1. I have B2BUA application 2. Client sends re-INVITE 3. Client sends CANCEL to the last re-INVITE 4. In doCancel(...) I'm getting linked session and I'm getting the last forked re-INVITE (like getMyForkedRequest(linked).createCancel().send()) Result: at org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:1132) at com.avistar.callcontrol.sip.router.B2BStrategy.b2bCancel(B2BStrategy.java:211) at com.avistar.callcontrol.sip.router.SequentialB2BStrategy.routeCancel(SequentialB2BStrategy.java:311) at com.avistar.callcontrol.sip.router.B2BStrategy.routeSubsequentRequest(B2BStrategy.java:70) at com.avistar.callcontrol.sip.router.Router.doRoute(Router.java:244) at com.avistar.callcontrol.sip.CallControlSipServlet.doRequest(CallControlSipServlet.java:145) at javax.servlet.sip.SipServlet.service(SipServlet.java:325) at org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher.callServlet(MessageDispatcher.java:233) at org.mobicents.servlet.sip.core.dispatchers.CancelRequestDispatcher$CancelDispatchTask.dispatch(CancelRequestDispatcher.java:266) at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleExceptions(DispatchTask.java:55) at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.run(DispatchTask.java:50) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.sip.SipException: Bad Request Method. CANCEL at gov.nist.javax.sip.stack.SIPDialog.sendRequest(SIPDialog.java:2250) at gov.nist.javax.sip.stack.SIPDialog.sendRequest(SIPDialog.java:2224) at org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:1128) ... 13 more
What is the expected output? What do you see instead?
Cancel should be sent and cancel to subsequent INVITE should not terminate session.
What version of the product are you using? On what operating system?
Mobicents Sip Servlets 1.3 snapshot from r11660
