Cannot find the corresponding sip session to this...

已查看 73 次
跳至第一个未读帖子

R.Domingo

未读,
2009年12月10日 11:16:492009/12/10
收件人 mobicents-public
I have following in my sip servlet

@Override
protected void doInvite(final SipServletRequest request) throws
ServletException, IOException {
logger.info("Received invite");
SipServletResponse sipServletResponse = request.createResponse
(400);
sipServletResponse.send();
logger.info("Send 400 response");
}


When sending an invite the following error shows up in logging:

org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Cannot
find the corresponding sip session to this subsequent request ACK sip:
+31...@service-test1.test.lan SIP/2.0
Via: SIP/2.0/UDP 192.168.74.121;branch=z9hG4bK657d.72324415.0
From: "sipp" <sip:perftest7@.......ipt2.test.lan:5060>;tag=7
Call-ID: 7-2...@192.168.2.51
To: "+31666" <sip:
+31666@........ipt2.test.lan>;tag=11924587_eec49ee4_253705597938625
CSeq: 1 ACK
Max-Forwards: 70
User-Agent: .......... (............ (i386/linux))
Content-Length: 0

, it may already have been invalidated or timed out
at
org.mobicents.servlet.sip.core.dispatchers.SubsequentRequestDispatcher.dispatchMessage
(SubsequentRequestDispatcher.java:221)
at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest
(SipApplicationDispatcherImpl.java:616)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:
224)
at gov.nist.javax.sip.SipProviderImpl.handleEvent
(SipProviderImpl.java:192)
at gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:
1080)
at gov.nist.javax.sip.stack.SIPServerTransaction.processRequest
(SIPServerTransaction.java:759)
at gov.nist.javax.sip.stack.UDPMessageChannel.processMessage
(UDPMessageChannel.java:459)
at
gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket
(UDPMessageChannel.java:419)
at gov.nist.javax.sip.stack.UDPMessageChannel.run
(UDPMessageChannel.java:266)
at java.lang.Thread.run(Thread.java:619)


Any hints ?

R.Domingo

未读,
2009年12月14日 05:45:212009/12/14
收件人 mobicents-public
Two lines below fixed the problem.
sipServletResponse.getSession().setInvalidateWhenReady(false);
sipServletResponse.getSession().getApplicationSession().setExpires(1);

On Dec 10, 5:16 pm, "R.Domingo" <raym...@domingo.nl> wrote:
> I have following in my sip servlet
>
>  @Override
>     protected void doInvite(final SipServletRequest request) throws
> ServletException, IOException {
>         logger.info("Received invite");
>         SipServletResponse sipServletResponse = request.createResponse
> (400);
>         sipServletResponse.send();
>         logger.info("Send 400 response");
>     }
>
> When sending an invite the following error shows up in logging:
>
> org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Cannot
> find the corresponding sip session to this subsequent request ACK sip:
> +31...@service-test1.test.lan SIP/2.0
> Via: SIP/2.0/UDP 192.168.74.121;branch=z9hG4bK657d.72324415.0
> From: "sipp" <sip:perftest7@.......ipt2.test.lan:5060>;tag=7
> Call-ID: 7-26...@192.168.2.51

Jean Deruelle

未读,
2009年12月14日 06:17:372009/12/14
收件人 mobicent...@googlegroups.com
This is a bug, could you file an issue ?

R.Domingo

未读,
2009年12月14日 06:46:162009/12/14
收件人 mobicents-public
done, Issue 1104


On Dec 14, 12:17 pm, Jean Deruelle <jean.derue...@gmail.com> wrote:
> This is a bug, could you file an issue ?
>

Jean Deruelle

未读,
2009年12月15日 16:04:512009/12/15
收件人 mobicent...@googlegroups.com

Raymond Domingo

未读,
2009年12月17日 03:59:452009/12/17
收件人 mobicent...@googlegroups.com
It doesn't seem to be fixed.

My Test:

Unzipped mss-1.2-SNAPSHOT-apache-tomcat-6.0.20-0912131455.zip

Added my sip app, something like (see also attachements):

@Override
protected void doInvite(final SipServletRequest request) throws
ServletException, IOException {
logger.info("Received invite");

logger.info("create 400 response");
// SipServletResponse sipServletResponse =
// request.getB2buaHelper().createResponseToOriginalRequest(
// request.getSession(), 400, "Foo bla");
SipServletResponse sipServletResponse = request.createResponse(400);

sipServletResponse.addHeader("Foo", "Foo");


sipServletResponse.send();
logger.info("Send 400 response");
}

I still get:
2009-12-17 09:55:10,509 [ERROR] SipApplicationDispatcherImpl -
Unexpected exception while processing request ACK
sip:+31534...@fastvoip.com SIP/2.0
Via: SIP/2.0/UDP
192.168.2.51:5062;rport=5062;branch=z9hG4bKocayilya;received=192.168.2.51
Max-Forwards: 70
To: <sip:+31534...@fastvoip.com>;tag=04374182_eec49ee4_5690360482959
From: "raymond" <sip:ray...@fastvoip.com>;tag=rlzfe
Call-ID: poocdmzrblndfzg@duke
CSeq: 235 ACK
User-Agent: Twinkle/1.2
Content-Length: 0


org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Cannot
find the corresponding sip session to this subsequent request ACK

sip:+31534...@fastvoip.com SIP/2.0
Via: SIP/2.0/UDP
192.168.2.51:5062;rport=5062;branch=z9hG4bKocayilya;received=192.168.2.51
Max-Forwards: 70
To: <sip:+31534...@fastvoip.com>;tag=04374182_eec49ee4_5690360482959
From: "raymond" <sip:ray...@fastvoip.com>;tag=rlzfe
Call-ID: poocdmzrblndfzg@duke
CSeq: 235 ACK
User-Agent: Twinkle/1.2
Content-Length: 0

, it may already have been invalidated or timed out
at org.mobicents.servlet.sip.core.dispatchers.SubsequentRequestDispatcher.dispatchMessage(SubsequentRequestDispatcher.java:221)

at org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest(SipApplicationDispatcherImpl.java:616)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:224)
at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:192)


at gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:1080)
at gov.nist.javax.sip.stack.SIPServerTransaction.processRequest(SIPServerTransaction.java:759)
at gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel.java:459)
at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMessageChannel.java:419)
at gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:266)
at java.lang.Thread.run(Thread.java:619)

I attached my logging and my servlet project.

2009/12/15 Jean Deruelle <jean.d...@gmail.com>:

mylogfiles.tgz
transactionTimeoutAfter4xx.tgz

Jean Deruelle

未读,
2009年12月17日 05:58:532009/12/17
收件人 mobicent...@googlegroups.com
Can you try on the latest release, I'm not sure the fix was actually included in the previous one.
I tried myself your application on the latest build and it worked fine. Let me know

Thanks
sorry for the inconvenience
Jean

Raymond Domingo

未读,
2009年12月23日 05:30:472009/12/23
收件人 mobicent...@googlegroups.com
I can confirm it is fixed now.

Thanks !

2009/12/17 Jean Deruelle <jean.d...@gmail.com>:

回复全部
回复作者
转发
0 个新帖子