Skip to main content

Function: expire_sdp()

function expire_sdp(
db,
requestor,
source,
kind,
destination): Promise<boolean>;

Defined in: src/cosmos-driver.ts:314

Finds any SDP from source, updates the record to expire it.

Parameters

ParameterTypeDescription
dbIStateCosmos DB Connection
requestorstringUUID of user requesting SDP expiration
sourcestringUUID of user
kindstringType of sdp db record requesting: "answer" or "offer"
destinationstringUUID of other user

Returns

Promise<boolean>

boolean (True if successful, false if not)