Home > sip.js > ServerTransaction
Server Transaction.
Signature:
export declare abstract class ServerTransaction extends Transaction
Extends: Transaction
The server transaction is responsible for the delivery of requests to the TU and the reliable transmission of responses. It accomplishes this through a state machine. Server transactions are created by the core when a request is received, and transaction handling is desired for that request (this is not always the case). https://tools.ietf.org/html/rfc3261\#section-17.2
Constructor | Modifiers | Description |
---|---|---|
(constructor)(_request, transport, user, state, loggerCategory) | Constructs a new instance of the ServerTransaction class |
Property | Modifiers | Type | Description |
---|---|---|---|
request | IncomingRequestMessage | The incoming request the transaction handling. | |
user | ServerTransactionUser |
Method | Modifiers | Description |
---|---|---|
receiveRequest(request) | Receive incoming requests from the transport which match this transaction. | |
receiveResponse(statusCode, response) | Receive outgoing responses to this request from the transaction user. Responses will be delivered to the transport as necessary. |