sip.js.sessiondescriptionhandler.hasdescription.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDescriptionHandler > hasDescription

SessionDescriptionHandler.hasDescription() method

Returns true if the Session Description Handler can handle the Content-Type described by a SIP message.

Signature:

hasDescription(contentType: string): boolean;

Parameters

ParameterTypeDescription
contentTypestringThe content type that is in the SIP Message.

Returns:

boolean

True if the content type is handled by this session description handler. False otherwise.