Hi Vladimir,
I am still seeing the issue. I downloaded the trunk code and tried to
add a temp patch to the code to see if the issue is fixed.
I added the following code in the
file SipSessionImpl.java
package org.mobicents.servlet.sip.core.session;
method:
public void updateStateOnResponse(SipServletResponseImpl response,
boolean receive) {
.......
.......
if(!hasOngoingSubscriptions) {
//TODO - ASEEM ADDED TEMP remove after final fix
if (response.getStatus() == 487){
if(logger.isDebugEnabled()) {
logger.debug("Not changing state or invalidating");
}
} else {
if(logger.isDebugEnabled()) {
logger.debug("Changing state to terminated and also
invalidating");
}
setState(State.TERMINATED);
setReadyToInvalidate(true);
}
}
This change has fixed the issue, however I think it is not the proper
fix. Basically in this case after 487 the app session not invalidated,
and the BYE that comes eventually from the other branch invalidates
the session.However this will interfere with the regular CANCEL
scenario if feel i.e.
Endpoint A Mobicent Endpoint P
(SipProxy)
|---- INVITE---------->|--------INVITE ---->|
|<- 100 -----------------|
|< --180 ----------------|-------------------------|
(default container timer of 180 sec. )
On timeout - proxy.cancel()
| ------ CANCEL-->|
|<-------- 487 --------|
|--------- ACK ----->|
The appsession will not be invalidated. I tired verifying this test
case - but it was not working.
I see the following the above case
2009-11-04 00:07:03,931 DEBUG
[org.mobicents.servlet.sip.message.SipServletRequestImpl] The found
transport for sending request is 'udp'
2009-11-04 00:07:03,931 ERROR
[org.mobicents.servlet.sip.proxy.ProxyBranchTimerTask] Problem in
timeout task
java.lang.IllegalStateException: Failed canceling proxy branch
at org.mobicents.servlet.sip.proxy.ProxyBranchImpl.cancel
(ProxyBranchImpl.java:188)
at org.mobicents.servlet.sip.proxy.ProxyBranchImpl.cancel
(ProxyBranchImpl.java:136)
at org.mobicents.servlet.sip.proxy.ProxyBranchImpl.onTimeout
(ProxyBranchImpl.java:618)
at org.mobicents.servlet.sip.proxy.ProxyBranchTimerTask.run
(ProxyBranchTimerTask.java:35)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.IllegalStateException: Error sending request
at org.mobicents.servlet.sip.message.SipServletRequestImpl.send
(SipServletRequestImpl.java:1094)
at org.mobicents.servlet.sip.proxy.ProxyBranchImpl.cancel
(ProxyBranchImpl.java:159)
... 5 more
Caused by: java.lang.NullPointerException
at org.mobicents.servlet.sip.message.SipServletRequestImpl.send
(SipServletRequestImpl.java:939)
... 6 more
I will file a seperate report for that after testing with latest trunk
with out any of my changes to be sure. Let me know your thought on
this.
thanks
Aseem
On Oct 30, 1:35 pm, Vladimir Ralev <
vladimir.ra...@gmail.com> wrote:
> Some proxy tests regressed in that build. It is possible they do not
> affect you, but just to be safe you can use the new spin with fixes
> herehttp://
hudson.jboss.org/hudson/view/Mobicents/job/MobicentsSipServlet...
>
> I still don't have all test results, but so far seems good.
>
> On Fri, Oct 30, 2009 at 7:23 PM, Vladimir Ralev
>
> >
http://hudson.jboss.org/hudson/job/MobicentsSipServletsRelease/583/ar...
>
> > On Fri, Oct 30, 2009 at 6:49 PM, Vladimir Ralev
> > <
vladimir.ra...@gmail.com> wrote:
> >> Well, we had some problem with the builds. It should be fine now. Try
> >> this binaryhttp://
hudson.qa.jboss.com/hudson/job/MobicentsSipServletsRelease/583...
>
> >> Thanks