sip.js.sessiondescriptionhandler.setdescription.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDescriptionHandler > setDescription

SessionDescriptionHandler.setDescription() method

Sets the remote description to the underlying media implementation.

Signature:

setDescription(sdp: string, options?: SessionDescriptionHandlerOptions, modifiers?: Array<SessionDescriptionHandlerModifier>): Promise<void>;

Parameters

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

Returns:

Promise<void>

Promise that resolves once the description is set. Rejects with ClosedSessionDescriptionHandlerError when this method is called after close or when close occurs before complete.