Enum InviteSessionPhase

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALERTING
      A 180 Ringing response has been seen.
      ANSWERED
      A final success response for the initial request has been seen.
      CONFIRMED
      An ACK has been seen for the initial INVITE.
      INITIATING
      The initial request has been seen but a dialog creating response has not.
      PRE_ALERTING
      A dialog creating provisional response has been seen but not a 180 Ringing.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAfter​(InviteSessionPhase phase)
      Indicates whether this phase occurs after the provided phase.
      boolean isBefore​(InviteSessionPhase phase)
      Indicates whether this phase occurs before the provided phase.
      static InviteSessionPhase valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static InviteSessionPhase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INITIATING

        public static final InviteSessionPhase INITIATING
        The initial request has been seen but a dialog creating response has not.
      • PRE_ALERTING

        public static final InviteSessionPhase PRE_ALERTING
        A dialog creating provisional response has been seen but not a 180 Ringing.
      • ALERTING

        public static final InviteSessionPhase ALERTING
        A 180 Ringing response has been seen.
      • ANSWERED

        public static final InviteSessionPhase ANSWERED
        A final success response for the initial request has been seen.
      • CONFIRMED

        public static final InviteSessionPhase CONFIRMED
        An ACK has been seen for the initial INVITE.
    • Method Detail

      • values

        public static InviteSessionPhase[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InviteSessionPhase c : InviteSessionPhase.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InviteSessionPhase valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isAfter

        public boolean isAfter​(InviteSessionPhase phase)
        Indicates whether this phase occurs after the provided phase. If the provided phase is null, this always returns true.
        Parameters:
        phase - the phase to compare this one to.
        Returns:
        true if this phase occurs after the provided phase.
      • isBefore

        public boolean isBefore​(InviteSessionPhase phase)
        Indicates whether this phase occurs before the provided phase. If the provided phase is null, this always returns false.
        Parameters:
        phase - the phase to compare this one to.
        Returns:
        true if this phase occurs before the provided phase.