Alex:
Is there a reason you cannot send the second request from the
SipServlet that handles the REGISTER response? You can retrieve the
SAS from the response passed to the doResponse() method.
As an alternative, if you store the ID of the SAS somewhere, you can
retrieve the SAS via SipSessionsUtil, which can be retrieved from the
ServletContext.
Tom.
On Thu, Aug 30, 2012 at 11:41 AM, Alexander Reichert
<alexander.h.reich
...@googlemail.com> wrote:
> Hi guys,
> i am wondering if there is a way to retrieve the SipApplicationSession without any SipServlet Message to be present.
> My situation is as follows:
> - I retrieve SipFactory from ServletContext
> - SipFactory creates a Sip Application Session
> - SipFactory creates and sends a REGISTER request with SAS as input
> - a Sip Servlet handles the succes / error response
> - now i would like to submit another request reusing the previous SAS. But at this point, i do not know where this session is stored. I assume it is managed by the context, but cannot find any getApplicationSession() method.
> Any ideas?
> Thanks in advance,
> Alex