Interface CAP4Dialog

  • All Superinterfaces:
    CAP1Dialog, CAP2Dialog, CAP3Dialog, CCDialog, Dialog

    public interface CAP4Dialog
    extends CAP3Dialog
    Protocol-specific extension interface for cap_v4 dialogs. Contains typesafe convenience methods for sending operation invokes, results, and errors.
    • Method Detail

      • sendDisconnectLeg

        int sendDisconnectLeg​(long timeout,
                              CAP4DisconnectLegArg argument)
                       throws TooManyInvokesException,
                              ProtocolException
        Issues a disconnectLeg operation request on the dialog.
        Parameters:
        timeout - invoke timeout, in milliseconds; 0 uses the RA default
        argument - argument value
        Returns:
        TCAP invoke ID allocated for this operation
        Throws:
        TooManyInvokesException - if no free invoke id is available on this dialog
        ProtocolException - if the RA was unable to send the invoke for some reason
      • sendDisconnectLegResponse

        void sendDisconnectLegResponse​(int invokeId)
                                throws ProtocolException
        Issues a (last) response to a disconnectLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendDisconnectLegResponse

        void sendDisconnectLegResponse​(int invokeId,
                                       boolean isLast)
                                throws ProtocolException
        Issues a response to a disconnectLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        isLast - if true, will be sent in a ResultLast, if false will be sent in a ResultNotLast
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendInitiateCallAttempt

        int sendInitiateCallAttempt​(long timeout,
                                    CAP4InitiateCallAttemptArg argument)
                             throws TooManyInvokesException,
                                    ProtocolException
        Issues an initiateCallAttempt operation request on the dialog.
        Parameters:
        timeout - invoke timeout, in milliseconds; 0 uses the RA default
        argument - argument value
        Returns:
        TCAP invoke ID allocated for this operation
        Throws:
        TooManyInvokesException - if no free invoke id is available on this dialog
        ProtocolException - if the RA was unable to send the invoke for some reason
      • sendInitiateCallAttemptResponse

        void sendInitiateCallAttemptResponse​(int invokeId,
                                             CAP4InitiateCallAttemptRes result)
                                      throws ProtocolException
        Issues a (last) response to an initiateCallAttempt operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        result - result value
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendInitiateCallAttemptResponse

        void sendInitiateCallAttemptResponse​(int invokeId,
                                             CAP4InitiateCallAttemptRes result,
                                             boolean isLast)
                                      throws ProtocolException
        Issues a response to an initiateCallAttempt operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        result - result value
        isLast - if true, will be sent in a ResultLast, if false will be sent in a ResultNotLast
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendMoveLeg

        int sendMoveLeg​(long timeout,
                        CAP4MoveLegArg argument)
                 throws TooManyInvokesException,
                        ProtocolException
        Issues a moveLeg operation request on the dialog.
        Parameters:
        timeout - invoke timeout, in milliseconds; 0 uses the RA default
        argument - argument value
        Returns:
        TCAP invoke ID allocated for this operation
        Throws:
        TooManyInvokesException - if no free invoke id is available on this dialog
        ProtocolException - if the RA was unable to send the invoke for some reason
      • sendMoveLegResponse

        void sendMoveLegResponse​(int invokeId)
                          throws ProtocolException
        Issues a (last) response to a moveLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendMoveLegResponse

        void sendMoveLegResponse​(int invokeId,
                                 boolean isLast)
                          throws ProtocolException
        Issues a response to a moveLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        isLast - if true, will be sent in a ResultLast, if false will be sent in a ResultNotLast
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendSplitLeg

        int sendSplitLeg​(long timeout,
                         CAP4SplitLegArg argument)
                  throws TooManyInvokesException,
                         ProtocolException
        Issues a splitLeg operation request on the dialog.
        Parameters:
        timeout - invoke timeout, in milliseconds; 0 uses the RA default
        argument - argument value
        Returns:
        TCAP invoke ID allocated for this operation
        Throws:
        TooManyInvokesException - if no free invoke id is available on this dialog
        ProtocolException - if the RA was unable to send the invoke for some reason
      • sendSplitLegResponse

        void sendSplitLegResponse​(int invokeId)
                           throws ProtocolException
        Issues a (last) response to a splitLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendSplitLegResponse

        void sendSplitLegResponse​(int invokeId,
                                  boolean isLast)
                           throws ProtocolException
        Issues a response to a splitLeg operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        isLast - if true, will be sent in a ResultLast, if false will be sent in a ResultNotLast
        Throws:
        ProtocolException - if the RA was unable to send the response for some reason
      • sendUnknownCSIDError

        void sendUnknownCSIDError​(int invokeId)
                           throws ProtocolException
        Issues an unknownCSID error response for an operation on the dialog.
        Parameters:
        invokeId - TCAP invoke ID for the operation
        Throws:
        ProtocolException - if the RA was unable to send the error response for some reason