public interface B2buaHelper
| Modifier and Type | Method and Description |
|---|---|
SipServletRequest |
createCancel(SipSession session)
Creates a new CANCEL request to cancel the initial request sent on the other leg.
|
SipServletRequest |
createRequest(SipServletRequest origRequest)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
createRequest(SipServletRequest origRequest,
boolean linked,
Map<String,List<String>> headerMap)
Creates a new request object belonging to a new SipSession.
|
SipServletRequest |
createRequest(SipSession session,
SipServletRequest origRequest,
Map<String,List<String>> headerMap)
Creates a new subsequent request based on the specified original request.
|
SipServletResponse |
createResponseToOriginalRequest(SipSession session,
int status,
String reasonPhrase)
The request that results in creation of a SipSession is termed as the
original request, a response to this original request can be created by
the application even if the request was committed and application does
not have a reference to this Request.
|
SipSession |
getLinkedSession(SipSession session)
Returns the other SipSession that is linked to the specified SipSession,
or null if none.
|
SipServletRequest |
getLinkedSipServletRequest(SipServletRequest req)
If a new request is created based on an existing one with the link
argument true using or using the new request gets implicitly linked with
the original request.
|
List<SipServletMessage> |
getPendingMessages(SipSession session,
UAMode mode)
For the specified SipSession, returns a List of all uncommitted messages
in the order of increasing CSeq number for the given mode of the session.
|
void |
linkSipSessions(SipSession session1,
SipSession session2)
Links the specified sessions, such that there is a 1-1 mapping between
them.
|
void |
unlinkSipSessions(SipSession session)
If the specified SipSession is linked to another session, then unlinks
the two sessions from each other.
|
SipServletRequest createCancel(SipSession session)
session - the session whose initial request is to be cancelled.NullPointerException - if the session is nullSipServletRequest createRequest(SipServletRequest origRequest)
origRequest - request to be "copied"SipServletRequest createRequest(SipServletRequest origRequest, boolean linked, Map<String,List<String>> headerMap) throws IllegalArgumentException, TooManyHopsException
SipServletRequest createRequest(SipSession session, SipServletRequest origRequest, Map<String,List<String>> headerMap) throws IllegalArgumentException
IllegalArgumentException - if the header map contains a system header other than Contact (see section 4.1.3 of specification document)
or other header which does not makes sense in the context,
or in case when the session does not belong to the same
SipApplicationSession as the origRequest, or the original request or session is
already linked with some other request/session,
or if the origRequest is not initialIllegalArgumentException - if the header map contains a system header other than Contact, From or To (see sections 4.1.2 and 4.1.3 of specification document)
or other header which does not makes sense in the context, or in case when
the session does not belong to the same SipApplicationSession as the origRequest,
or the original request or session is already linked with some other request/session,
or if the origRequest is not initialNullPointerException - - if the original request or the session is nullSipServletResponse createResponseToOriginalRequest(SipSession session, int status, String reasonPhrase)
SipSession getLinkedSession(SipSession session)
SipServletRequest getLinkedSipServletRequest(SipServletRequest req)
List<SipServletMessage> getPendingMessages(SipSession session, UAMode mode)
void linkSipSessions(SipSession session1, SipSession session2)
void unlinkSipSessions(SipSession session)
Copyright © 2014. All Rights Reserved.