• Post Reply Bookmark Topic Watch Topic
  • New Topic

Way to learn active sessions in SipServlet.  RSS feed

 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote a sip servlet. And i want to learn active sessions (active calls) in my Servlet. I found HashMap solution for it. When call start i put the session in to my HashMap and when it's over i remove them.
But i want to know if there is another way to learn active sessions in my Sipservlet. I asked it because my sip servlet may run in different clusters, and may needed to meet High Availability requirements.

Thanks a lot.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a listener (I thoink it is SessionActivationListener) that will help do this.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
i am investigating SessionActivationListener. i'll write the solution.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Michael Ku ,

Thank you for your cooperation.I searched for SessionActivationListener but i couldn't find any results.Did you mean "SipApplicationSessionListener" by saying SessionActivationListener ?
Unfortunately, SipApplicationSessionListener doesn't have any methods for giving active sip sessions or any other sessions.
SipApplicationSessionListener's methods are :
sessionExpired
sessionCreated
sessionDestroyed
sessionReadyToInvalidate
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Michael meant the HttpSessionListener

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SipApplicationSessionListener is not part of the servlet spec.

Can you post the URL for the API you're using?
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a Eclipse plug-in Ericsson IMS Application Development Tool (SDS).
It gives support for SIP JSR 116 compliant target servers.
I'm running my sip servlet application in open source GlassFish/SailFin server.

Plug-in's web site :
http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1145.html
SIP JSR 116's web site :
http://jcp.org/en/jsr/detail?id=116

Thanks a lot by the way.
 
alp carsikarsi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Michael meant the HttpSessionListener

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html

--------------------

Bosun
SCJP 1.2


So much trouble in the world -- Bob Marley


How HttpSessionListener be a solution for my problem ? It's got only sessionCreated and sessionDestroyed methods. I think they're for notification for session created and ended.I need a active sip session list.
I want sip active calls in my pocket without using hash map.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!