sip.js.session.md

September 26, 2022 ยท View on GitHub

Home > sip.js > Session

Session class

A session provides real time communication between one or more participants.

Signature:

export declare abstract class Session 

Remarks

The transport behaves in a deterministic manner according to the the state defined in SessionState.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Session class.

Properties

PropertyModifiersTypeDescription
assertedIdentityNameAddrHeader | undefinedThe asserted identity of the remote user.
dataunknownProperty reserved for use by instance owner.
delegateSessionDelegate | undefinedThe session delegate.
dialogSessionDialog | undefinedThe confirmed session dialog.
idstringA unique identifier for this session.
localIdentityNameAddrHeaderThe identity of the local user.
loggerLoggerLogger.
remoteIdentityNameAddrHeaderThe identity of the remote user.
replaceeSession | undefinedThe session being replace by this one.
sessionDescriptionHandlerSessionDescriptionHandler | undefinedSession description handler.
sessionDescriptionHandlerFactorySessionDescriptionHandlerFactorySession description handler factory.
sessionDescriptionHandlerModifiersArray<SessionDescriptionHandlerModifier>SDH modifiers for the initial INVITE transaction.
sessionDescriptionHandlerModifiersReInviteArray<SessionDescriptionHandlerModifier>SDH modifiers for re-INVITE transactions.
sessionDescriptionHandlerOptionsSessionDescriptionHandlerOptionsSDH options for the initial INVITE transaction.
sessionDescriptionHandlerOptionsReInviteSessionDescriptionHandlerOptionsSDH options for re-INVITE transactions.
stateSessionStateSession state.
stateChangeEmitter<SessionState>Session state change emitter.
userAgentUserAgentThe user agent.

Methods

MethodModifiersDescription
bye(options)End the Session. Sends a BYE.
dispose()Destructor.
info(options)Share Info with peer. Sends an INFO.
invite(options)Renegotiate the session. Sends a re-INVITE.
message(options)Deliver a Message. Sends a MESSAGE.
refer(referTo, options)Proffer a Referral. Send a REFER.