Revision: d5d0c0fe6504
Author: Jean Deruelle <[email protected]>
Date: Fri Apr 25 11:01:48 2014 UTC
Log: Update Issue 22
Adding non regression test without 180. works as well
http://code.google.com/p/sipservlets/source/detail?r=d5d0c0fe6504
Modified:
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/proxy/ProxyRecordRoutingTest.java
=======================================
---
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/proxy/ProxyRecordRoutingTest.java
Fri Apr 25 10:47:43 2014 UTC
+++
/sip-servlets-test-suite/testsuite/src/test/java/org/mobicents/servlet/sip/testsuite/proxy/ProxyRecordRoutingTest.java
Fri Apr 25 11:01:48 2014 UTC
@@ -19,6 +19,9 @@
package org.mobicents.servlet.sip.testsuite.proxy;
+import java.util.ArrayList;
+import java.util.List;
+
import javax.sip.ListeningPoint;
import javax.sip.SipProvider;
import javax.sip.address.SipURI;
@@ -104,6 +107,32 @@
assertTrue(receiver.isCancelReceived());
assertEquals(487,sender.getFinalResponseStatus());
}
+
+ /*
+ * Non Regression test for
https://code.google.com/p/sipservlets/issues/detail?id=164
+ */
+ public void testCancelProxyingNon1XX() throws Exception {
+ deployApplication();
+ String fromName = "cancel-unique-location";
+ String fromSipAddress = "sip-servlets.com";
+ SipURI fromAddress =
senderProtocolObjects.addressFactory.createSipURI(
+ fromName, fromSipAddress);
+
+ String toSipAddress = "sip-servlets.com";
+ String toUser = "proxy-receiver";
+ SipURI toAddress =
senderProtocolObjects.addressFactory.createSipURI(
+ toUser, toSipAddress);
+ List<Integer> provResponses = new ArrayList<Integer>();
+ provResponses.add(100);
+ receiver.setProvisionalResponsesToSend(provResponses);
+ receiver.setWaitForCancel(true);
+ sender.sendSipRequest("INVITE", fromAddress, toAddress, null,
null, false);
+ Thread.sleep(TIMEOUT);
+ sender.sendCancel();
+ Thread.sleep(TIMEOUT);
+ assertTrue(receiver.isCancelReceived());
+ assertEquals(487,sender.getFinalResponseStatus());
+ }
/*
* https://code.google.com/p/sipservlets/issues/detail?id=2
--
---
You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.