• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Why my SipServlet throwing "SipApplicationSession is not valid." exception ?

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everbody ,

I coded a Sip Servlet which behave like a BACK2BACK UA. My Sip Servlet is running over GlassFish v2 JavaEE5 Sailfin server.
2 Sip Clients talking over my Sip Servlet successfully.
But after a certain time (~2 minutes and 50 seconds) my Sip Servlet throws
"java.lang.IllegalStateException: SipApplicationSession is not valid." exception. And Sip Servlet can't ended the conversation.
Why did it happen all the time ? What can i do with it ?
Is there a solution ?
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With the help of your suggestions(!?) i added into sip.xml the following attribute :

<!-- Session will be terminated otomatically after 60 minutes. -->
<session-config>
<session-timeout>60</session-timeout>
</session-config>

So that my session expired problem resolved.

Also i added this row into sip.xml :
<listener>
<listener-class>tr.com.xxxx.sip.xxx.ApplicationSessionListener</listener-class>
</listener>
By the help of this when session expired ApplicationSessionListener's
public void sessionExpired(SipApplicationSessionEvent sipApplicationEvent) method is called. And i did the neccessary work in this method.

Respects...
 
Maybe he went home and went to bed. And took this tiny ad with him:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic