Interface Transaction

    • Method Detail

      • setRetransmissionFilter

        void setRetransmissionFilter​(boolean enabled)
        Sets the retransmission behaviour of this transaction. This only affects INVITE transactions. If the retransmission filter is enabled, the transaction's retransmit behaviour is as follows:

      • Client Transactions: The INVITE request is automatically retransmitted by the stack. When the UAC receives a 2xx response and sends an ACK, the ACK is automatically retransmitted by the stack if any more 2xx response retransmits are received.
      • Server Transactions: The final 2xx response to an INVITE is automatically retransmitted until an ACK is received.

        If not enabled, the behaviour is as follows:

      • Client Transactions: After sending the initial INVITE, the UAC will receive retransmit timeout events from the stack. The UAS is responsible for re-sending the INVITE request. 2xx responses are passed statelessly to the UAC, and the UAC must send an ACK request for every response.
      • Server Transactions: The UAS is responsible for retransmitting the 2xx response until an ACK is received.

        Retransmits for non-INVITE transactions are handled entirely by the transaction, ie. the application will never see retransmissions.

        Note that according to RFC3261, the INVITE client transaction terminates when the first 2xx response is received, so subsequent ResponseEvents with 2xx responses to this client transaction will have null client transaction values.

Parameters:
enabled - set to true to enable retransmission filter, false to disable.