SipApplicationRouterInfo
The container invokes the SipApplicationRouter.getNextApplication() method to determine the next application to handle a SIP request. The application router returns information about the next application. The SipApplicationRouterInfo class encapsulates this information, allowing the container to process the application router's decisions and route SIP requests accordingly. This class provides details such as the next application to handle a request, the routing region, and the routing directive. By packaging this information, the SipApplicationRouterInfo class allows the container to understand and act on the application router's decisions. It ensures that SIP requests are routed correctly based on application-defined logic.
Constructor:
SipApplicationRouterInfo
SipApplicationRouterInfo(
java.lang.String nextApplicationName,
SipApplicationRoutingRegion routingRegion,
java.lang.String subscriberURI,
java.lang.String[] routes,
SipRouteModifier mod,
java.io.Serializable stateInfo
)
This constructor creates a SipApplicationRouterInfo object containing all the information needed for the container to make a routing decision. The parameters provide details about the next application, the routing context, and any associated state or modifications required for routing.
Parameters:
nextApplicationName: The name of the next application to handle the SIP request.
routingRegion: The routing region specified by the application router, indicating the scope or context for routing.
subscriberURI: The subscriber URI, which identifies the intended recipient or the user associated with the routing decision.
routes: An array of routes to be added to the SIP message during routing.
mod: A SipRouteModifier object specifying how the routes should be applied (e.g., ROUTE, NO_ROUTE, etc.).
stateInfo: A serializable object containing application-specific state information that needs to persist across routing operations.
Sign in to read the full article
Start innovating with Mobius
What's next? Let's talk!