Optionalparams: OutgoingRequestParams | nullOptionalextraHeaders: string[] | nullOptionalbody: stringThe UA that sends the request.
Header fields set by the library, indexed by their capitalized name. A header field may appear several times, hence the array.
Request method, such as INVITE or BYE.
The request target URI.
OptionalbodyBody of the request, undefined when it carries none.
Header fields the application added through the extraHeaders option,
each a whole Name: value line written as given.
Value of the To header field.
Value of the From header field.
Value of the Call-ID header field.
The CSeq number.
Optionalsdpdeclare makes TypeScript generate no field declaration for
these, so they do not become own properties set to undefined on every
instance, which is what useDefineForClassFields would otherwise do.
sdp is created by parseSDP() and transaction is assigned by
Transactions when the request is sent.
Unlike in OutgoingRequest, declared normally, so every instance
gets it as an own property initialized to null.
Replace the given header field by the given value.
Header field name, which gets capitalized as it is written in SIP messages.
A single value or several of them, one per header field line.
Get the value of the first header field of the given name.
undefined if the request has no such header field.
Get the values of every header field of the given name.
An empty array if the request has no such header field.
Whether the request carries a header field of the given name.
Parse the body of the request as a session description and cache the result in OutgoingRequest.sdp.
Optionalforce: booleanParse again even if the body was already parsed.
The request as it travels on the wire.
Cancel the INVITE, so that the session is given up before the peer answers it.
Optionalreason: stringValue of the Reason header field of the CANCEL.
A copy of the request that is bound to the same client transaction.
Holds the INVITE request that starts an outgoing session, which can be cancelled before it is answered.