Revision: 7344
Author: vladimir.ralev
Date: Wed Aug 5 18:24:39 2009
Log: Checking TCK with effects of Issue 867
http://code.google.com/p/mobicents/issues/detail?id=867
http://code.google.com/p/mobicents/source/detail?r=7344
Modified:
/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java
=======================================
---
/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java
Tue Jul 7 01:30:49 2009
+++
/trunk/servers/sip-servlets/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyImpl.java
Wed Aug 5 18:24:39 2009
@@ -457,11 +457,15 @@
// Cancel all others if 2xx or 6xx 10.2.4 and it's not a
retransmission
if(!isNoCancel && response.getTransaction() != null) {
- if( (response.getStatus() >= 200 && response.getStatus()
< 300)
+ if(this.getParallel()) {
+ if( (response.getStatus() >= 200 &&
response.getStatus() < 300)
|| (response.getStatus() >= 600 &&
response.getStatus() < 700) ) {
- if(this.getParallel()) {
cancelAllExcept(branch, null, null,
null, false);
}
+ } else {
+ if( (response.getStatus() >= 200 &&
response.getStatus() < 300) ) {
+ cancelAllExcept(branch, null, null,
null, false);
+ }
}
}
// Recurse if allowed
@@ -529,6 +533,7 @@
{
if(!parallel)
{
+ branch.cancel();
startNextUntriedBranch();
}
}