SipApplicationRoutingDirective
The SipApplicationRoutingDirective enum defines the routing directives for SIP requests, guiding how the SIP container should process and forward requests. These directives help manage the flow of requests between applications and ensure the correct behavior during routing decisions.
Enum constants:
NEW
public static final SipApplicationRoutingDirective NEW
The NEW directive indicates that the SIP request represents a new transaction or dialog. It is used when the request originates externally or is being routed to the first application in a sequence.
CONTINUE
public static final SipApplicationRoutingDirective CONTINUE
The CONTINUE directive specifies that the routing sequence should proceed to the next application in the chain. It is used when the current application has completed its processing and the request needs to move forward.
REVERSE
public static final SipApplicationRoutingDirective REVERSE
The REVERSE directive reverses the flow of the routing sequence, routing the request back to the previous application. It is often used in when the SIP container needs to reroute a request for further processing or correction.
Methods:
values
public static final SipApplicationRoutingDirective[] values()
The method returns an array containing all constants of the SipApplicationRoutingDirective enum in the order they are declared. This method is useful for iterating over all possible routing directives.
Returns:
An array containing all constants of the enum type in the order they are declared.
valueOf
public static SipApplicationRoutingDirective valueOf(java.lang.String name)
The method returns the enum constant corresponding to the specified name. The name parameter must match the exact name of a declared constant, as defined in the SipApplicationRoutingDirective enum.
Parameters:
name: The name of the enum constant to retrieve. The string must exactly match the name of one of the enum constants.
Returns:
The enum constant with the specified name.
Exceptions:
IllegalArgumentException: Thrown if there is no enum constant with the specified name.
NullPointerException: Thrown if the name parameter is null.
Start innovating with Mobius
What's next? Let's talk!