Home > sip.js > IncomingMessage
Incoming message.
Signature:
export declare class IncomingMessage
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 |
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() |