Instances of SipApplicationSession typically have multiple protocol sessions contained within the application session. Such protocol sessions are called child sessions. The following table lists the methods defined in SipApplicationSession for managing child sessions:
Table 1–8 Child Session Methods in SipApplicationSession
Method |
Description |
---|---|
getSessions() |
Retrieves an Iterator over all valid child protocol sessions. |
getSessions(String protocol) |
Retrieves an Iterator over all valid child sessions for a particular protocol. For example, passing SIP to getSessions will return all SIP protocol sessions. |
getSipSession(String id) |
Retrieves a particular session by its ID. |
getSession(String id, String protocol) |
Retrieves a particular session associated with the specified protocol by its ID. |