sip.js.servertransaction.md
September 26, 2022 ยท View on GitHub
Home > sip.js > ServerTransaction
ServerTransaction class
Server Transaction.
Signature:
export declare abstract class ServerTransaction extends Transaction
Extends: Transaction
Remarks
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
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(_request, transport, user, state, loggerCategory) | Constructs a new instance of the ServerTransaction class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| request | IncomingRequestMessage | The incoming request the transaction handling. | |
| user | ServerTransactionUser |
Methods
| 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. |