Skip to content

Commit f9c7795

Browse files
committed
fixes after bad merge
1 parent a5d81b2 commit f9c7795

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/CancelRequestDispatcher.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import gov.nist.javax.sip.ServerTransactionExt;
2323

2424
import java.io.IOException;
25+
import java.text.ParseException;
2526

2627
import javax.servlet.ServletException;
2728
import javax.servlet.sip.SipSession.State;
@@ -42,6 +43,8 @@
4243
import org.mobicents.servlet.sip.core.proxy.MobicentsProxy;
4344
import org.mobicents.servlet.sip.core.session.MobicentsSipApplicationSession;
4445
import org.mobicents.servlet.sip.core.session.MobicentsSipSession;
46+
import org.mobicents.servlet.sip.core.session.SipApplicationSessionCreationThreadLocal;
47+
import org.mobicents.servlet.sip.message.SipFactoryImpl;
4548
import org.mobicents.servlet.sip.message.SipServletMessageImpl;
4649
import org.mobicents.servlet.sip.message.SipServletRequestImpl;
4750
import org.mobicents.servlet.sip.message.SipServletResponseImpl;
@@ -201,7 +204,9 @@ private final static void send487Response(Transaction inviteTransaction, SipServ
201204
throw new DispatcherException(Response.SERVER_INTERNAL_ERROR, "Impossible to send the 487 to the INVITE transaction corresponding to CANCEL", e);
202205
} catch (InvalidArgumentException e) {
203206
throw new DispatcherException(Response.SERVER_INTERNAL_ERROR, "Impossible to send the 487 to the INVITE transaction corresponding to CANCEL", e);
204-
}
207+
} catch (ParseException e) {
208+
throw new DispatcherException(Response.SERVER_INTERNAL_ERROR, "Impossible to send the 487 to the INVITE transaction corresponding to CANCEL", e);
209+
}
205210
}
206211

207212
public static class CancelDispatchTask extends DispatchTask {

0 commit comments

Comments
 (0)