sip.js.sessiondescriptionhandler.getdescription.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDescriptionHandler > getDescription

SessionDescriptionHandler.getDescription() method

Gets the local description from the underlying media implementation.

Signature:

getDescription(options?: SessionDescriptionHandlerOptions, modifiers?: Array<SessionDescriptionHandlerModifier>): Promise<BodyAndContentType>;

Parameters

ParameterTypeDescription
optionsSessionDescriptionHandlerOptionsOptions object to be used by getDescription.
modifiersArray<SessionDescriptionHandlerModifier>Array with one time use description modifiers.

Returns:

Promise<BodyAndContentType>

Promise that resolves with the local description to be used for the session. Rejects with ClosedSessionDescriptionHandlerError when this method is called after close or when close occurs before complete.