Mobicents Sip Servlet : session duration

619 views
Skip to first unread message

QTuan

unread,
Aug 12, 2010, 6:00:53 AM8/12/10
to mobicents-public
Hi,
I have tested application with Mobicents Sip Servlet.
If the duration of call is less 2 min, it runs well.
But if the duration of call is more 3 min, it have error session in
server. I have read the log server, it has lines :
11:36:08,515 INFO [SipSessionImpl] Invalidating the sip session
(2:2-1...@157.159.16.91:41891793299844:Conference)

11:36:08,517 INFO [SipApplicationSessionImpl] The following sip
application session (41892121219595:Conference) has been invalidated
11:36:08,520 INFO [Mobicents-SIP-Servlets] <message
from="157.159.16.91:6060"
to="157.159.16.91:5080"
time="1281605768517"
isSender="false"
transactionId="z9hg4bkb11b.0f5364b6.0"
callId="2-1...@157.159.16.91"
firstLine="BYE sip:157.159.16.91:5080 SIP/2.0"
>
<![CDATA[BYE sip:157.159.16.91:5080 SIP/2.0

Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0

To: <sip:sip-servlets-
confe...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844

From: <sip:tr...@open-ims.test>;tag=2

CSeq: 4 BYE

Call-ID: 2-1...@157.159.16.91

User-Agent: Sip EXpress router(2.1.0-dev1 OpenIMSCore (i386/linux))

Reason: SIP;cause=503;text="Session Time-out on S-CSCF"

Content-Length: 0


]]>
</message>

11:36:08,597 ERROR [SipApplicationDispatcherImpl] Unexpected exception
while processing request BYE sip:157.159.16.91:5080 SIP/2.0

Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0

To: <sip:sip-servlets-
confe...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844

From: <sip:tr...@open-ims.test>;tag=2

CSeq: 4 BYE

Call-ID: 2-1...@157.159.16.91

User-Agent: Sip EXpress router(2.1.0-dev1 OpenIMSCore (i386/linux))

Reason: SIP;cause=503;text="Session Time-out on S-CSCF"

Content-Length: 0




org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Cannot
find the corresponding sip application session to this subsequent
request BYE sip:157.159.16.91:5080 SIP/2.0

Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0

To: <sip:sip-servlets-
confe...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844

From: <sip:tr...@open-ims.test>;tag=2

CSeq: 4 BYE

Call-ID: 2-1...@157.159.16.91

User-Agent: Sip EXpress router(2.1.0-dev1 OpenIMSCore (i386/linux))

Reason: SIP;cause=503;text="Session Time-out on S-CSCF"

Content-Length: 0



, it may already have been invalidated or timed out
at
org.mobicents.servlet.sip.core.dispatchers.SubsequentRequestDispatcher.dispatchMessage(SubsequentRequestDispatcher.java:
192)
at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest(SipApplicationDispatcherImpl.java:
624)
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:
1086)
at
gov.nist.javax.sip.stack.SIPServerTransaction.processRequest(SIPServerTransaction.java:
815)
at
gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel.java:
496)
at
gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMessageChannel.java:
456)
at
gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:
296)
at java.lang.Thread.run(Thread.java:619)

And I have configured in SIP Message with Expire = 7200. But Mobicents
Sip Servlet terminated early the session.
How does the duration of session in Mobicents Sip Servlet
increases ?
Thank in advance for all helps!
T.Q.Tuan

Vladimir Ralev

unread,
Aug 12, 2010, 7:41:54 AM8/12/10
to mobicent...@googlegroups.com
The default timeout is 3 mins by spec. You can change it from sip.xml
<sip-app>
   
<session-config>
       
<session-timeout>5</session-timeout>
   
</session-config>
.....
</sip-app>

Or you can just extend it from the code with appSession.setExpires() http://www.mobicents.org/mss/jsr289/javadocs/javax/servlet/sip/SipApplicationSession.html#setExpires(int)

QTuan

unread,
Aug 12, 2010, 8:01:07 AM8/12/10
to mobicents-public
Where is the file sip.xml ?
Because in some samples Mobicents Sip Servlet, there isn't this file
sip.xml,

On Aug 12, 1:41 pm, Vladimir Ralev <vladimir.ra...@gmail.com> wrote:
> The default timeout is 3 mins by spec. You can change it from sip.xml
>
> <sip-app>
>     <session-config>
>         <session-timeout>5</session-timeout>
>     </session-config>
>
> .....
>
> </sip-app>
>
> Or you can just extend it from the code with appSession.setExpires()http://www.mobicents.org/mss/jsr289/javadocs/javax/servlet/sip/SipApp...)
>
> On Thu, Aug 12, 2010 at 1:00 PM, QTuan <tuant...@gmail.com> wrote:
> > Hi,
> > I have tested application with Mobicents Sip Servlet.
> > If the duration of call is less 2 min, it runs well.
> > But if the duration of call is more 3 min, it have error session in
> > server. I have read the log server, it has lines :
> > 11:36:08,515 INFO  [SipSessionImpl] Invalidating the sip session
> > (2:2-16...@157.159.16.91:41891793299844:Conference)
>
> > 11:36:08,517 INFO  [SipApplicationSessionImpl] The following sip
> > application session (41892121219595:Conference) has been invalidated
> > 11:36:08,520 INFO  [Mobicents-SIP-Servlets] <message
> > from="157.159.16.91:6060"
> > to="157.159.16.91:5080"
> > time="1281605768517"
> > isSender="false"
> > transactionId="z9hg4bkb11b.0f5364b6.0"
> > callId="2-16...@157.159.16.91"
> > firstLine="BYE sip:157.159.16.91:5080 SIP/2.0"
>
> > <![CDATA[BYE sip:157.159.16.91:5080 SIP/2.0
>
> > Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0
>
> > To: <sip:sip-servlets-
> > confere...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844
>
> > From: <sip:t...@open-ims.test>;tag=2
>
> > CSeq: 4 BYE
>
> > Call-ID: 2-16...@157.159.16.91
>
> > User-Agent: Sip EXpress router(2.1.0-dev1 OpenIMSCore (i386/linux))
>
> > Reason: SIP;cause=503;text="Session Time-out on S-CSCF"
>
> > Content-Length: 0
>
> > ]]>
> > </message>
>
> > 11:36:08,597 ERROR [SipApplicationDispatcherImpl] Unexpected exception
> > while processing request BYE sip:157.159.16.91:5080 SIP/2.0
>
> > Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0
>
> > To: <sip:sip-servlets-
> > confere...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844
>
> > From: <sip:t...@open-ims.test>;tag=2
>
> > CSeq: 4 BYE
>
> > Call-ID: 2-16...@157.159.16.91
>
> > User-Agent: Sip EXpress router(2.1.0-dev1 OpenIMSCore (i386/linux))
>
> > Reason: SIP;cause=503;text="Session Time-out on S-CSCF"
>
> > Content-Length: 0
>
> > org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Cannot
> > find the corresponding sip application session to this subsequent
> > request BYE sip:157.159.16.91:5080 SIP/2.0
>
> > Via: SIP/2.0/UDP 157.159.16.91:6060;branch=z9hG4bKb11b.0f5364b6.0
>
> > To: <sip:sip-servlets-
> > confere...@157.159.16.91:4060>;tag=08849591_8a1e29b3_41891793299844
>
> > From: <sip:t...@open-ims.test>;tag=2
>
> > CSeq: 4 BYE
>
> > Call-ID: 2-16...@157.159.16.91

Vladimir Ralev

unread,
Aug 12, 2010, 8:12:55 AM8/12/10
to mobicent...@googlegroups.com
If there is no sip.xml it mut be using annotations

sessionTimeout parameter here is the same thing.
Reply all
Reply to author
Forward
0 new messages