jssip - v3.14.0
    Preparing search index...

    Class InitialOutgoingInviteRequest

    Holds the INVITE request that starts an outgoing session, which can be cancelled before it is answered.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    ua: UALike

    The UA that sends the request.

    headers: Record<string, OutgoingHeaderValue[]>

    Header fields set by the library, indexed by their capitalized name. A header field may appear several times, hence the array.

    method: string

    Request method, such as INVITE or BYE.

    ruri: URI

    The request target URI.

    body?: string

    Body of the request, undefined when it carries none.

    extraHeaders: string[]

    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.

    call_id: string

    Value of the Call-ID header field.

    cseq: number

    The CSeq number.

    sdp?: SDP

    declare 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.

    transaction: ClientTransactionLike | null = null

    Unlike in OutgoingRequest, declared normally, so every instance gets it as an own property initialized to null.

    Methods

    • Cancel the INVITE, so that the session is given up before the peer answers it.

      Parameters

      • Optionalreason: string

        Value of the Reason header field of the CANCEL.

      Returns void