Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.38 KB

sip.js.incomingmessage.md

File metadata and controls

45 lines (35 loc) · 2.38 KB

Home > sip.js > IncomingMessage

IncomingMessage class

Incoming message.

Signature:

export declare class IncomingMessage 

Properties

Property Modifiers Type Description
body string
callId string
cseq number
data string
from NameAddrHeader
fromTag string
headers { [name: string]: Array<{ parsed?: any; raw: string; }>; }
method string
referTo string | undefined
to NameAddrHeader
toTag string
via { host: string; port: number; }
viaBranch string

Methods

Method Modifiers Description
addHeader(name, value) Insert a header of the given name and value into the last position of the header array.
getHeader(name) Get the value of the given header name at the given position.
getHeaders(name) Get the header/s of the given name.
hasHeader(name) Verify the existence of the given header.
parseHeader(name, idx) Parse the given header on the given index.
s(name, idx) Message Header attribute selector. Alias of parseHeader.
setHeader(name, value) Replace the value of the given header by the value.
toString()