Revision: b3fbcbe8f806
Author: Jean Deruelle <[email protected]>
Date: Fri Jun 8 03:02:41 2012
Log: Fixes Issue 117
http://code.google.com/p/sipservlets/source/detail?r=b3fbcbe8f806
Modified:
/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java
=======================================
---
/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java
Fri May 25 12:26:03 2012
+++
/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java
Fri Jun 8 03:02:41 2012
@@ -328,6 +328,8 @@
return;
} catch (IOException e) {
logger.error("Problem sending 491 response to " + sipServletRequest,
e);
+ } finally {
+
sipContext.exitSipApp(sipApplicationSession, sipSession);
}
}
sipSession.setRequestsPending(sipSession.getRequestsPending() + 1);
=======================================
---
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java
Fri Jun 8 01:40:16 2012
+++
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/simple/ShootmeSipServletTest.java
Fri Jun 8 03:02:41 2012
@@ -236,7 +236,7 @@
}
public void testShootme491withRetrans() throws InterruptedException,
SipException, ParseException, InvalidArgumentException {
- String fromName = "exceptionOnExpire";
+ String fromName = "normal";
String fromSipAddress = "sip-servlets.com";
SipURI fromAddress =
senderProtocolObjects.addressFactory.createSipURI(
fromName, fromSipAddress);
@@ -261,6 +261,7 @@
sender.sendInDialogSipRequest("INVITE", null, null, null, null,
null);
Thread.sleep(6000);
int current = sender.numberOf491s;
+ System.out.println("number of 491 " + current);
assertTrue(sender.numberOf491s>2);
sender.sendInDialogSipRequest("INVITE", null, null, null, null,
null);
Thread.sleep(1000);