Interface SipOverloadControlContext


  • public interface SipOverloadControlContext
    Provides limited access to SIP stack functions for use by the overload control plugin. The plugin may create URI, address and header objects for use in error responses.
    • Method Detail

      • getAddressFactory

        javax.sip.address.AddressFactory getAddressFactory()
        Get the SIP RA's AddressFactory instance, for creating URIs and addresses used in headers.
        Returns:
        an AddressFactory
      • createResponse

        javax.sip.message.Response createResponse​(int statusCode,
                                                  javax.sip.message.Request request)
        Create an error response for the request, for use with LimiterInstruction.reject(Response). The response must have a status code of 300-699. A provisional or success response would create a dialog, which cannot be supported as the overload control plugin is not capable of acting as a SIP user agent.
        Parameters:
        statusCode - the SIP status code for the response. This must be in the range 300-699.
        request - the incoming request being processed by the overload control plugin.
        Returns:
        a SIP response.
        Throws:
        IllegalArgumentException - if the status code is not in the range 300-699.