jssip - v3.14.0
    Preparing search index...

    Type Alias IncomingMessageParams

    Everything needed to build an IncomingMessage.

    • Every member that is optional is so because the corresponding header field may be missing or unparseable.
    type IncomingMessageParams = {
        data: string;
        headers: IncomingHeaders;
        method: string;
        via?: Grammar.ViaHeader;
        via_branch?: string;
        call_id?: string;
        cseq?: number;
        from: NameAddrHeader;
        from_tag?: string | null;
        to: NameAddrHeader;
        to_tag?: string | null;
        body: string;
        session_expires?: number;
        session_expires_refresher?: string;
        refer_to?: Grammar.ReferToHeader;
        replaces?: Grammar.ReplacesHeader;
        event?: Grammar.EventHeader;
    }
    Index

    Properties

    data: string

    The message as it arrived on the wire.

    Header fields of the message.

    method: string

    Request method. For a response, the method of the request it answers.

    via?: Grammar.ViaHeader

    Value of the topmost Via header field.

    via_branch?: string

    Branch parameter of the topmost Via header field.

    call_id?: string

    Value of the Call-ID header field.

    cseq?: number

    Sequence number of the CSeq header field.

    Value of the From header field.

    from_tag?: string | null

    Tag parameter of the From header field.

    • null when the tag parameter is present but valueless (;tag), undefined when it is absent altogether.

    Value of the To header field.

    to_tag?: string | null

    Tag parameter of the To header field, with the same distinction between null and undefined as IncomingMessageParams.from_tag.

    body: string

    Body of the message, an empty string when it carries none.

    session_expires?: number

    Interval (in seconds) of the Session-Expires header field.

    session_expires_refresher?: string

    Refresher parameter of the Session-Expires header field.

    refer_to?: Grammar.ReferToHeader

    Value of the Refer-To header field.

    replaces?: Grammar.ReplacesHeader

    Value of the Replaces header field.

    event?: Grammar.EventHeader

    Value of the Event header field.