org.mobicents.servlet.sip.core.dispatchers
Class ResponseDispatcher
java.lang.Object
org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher
org.mobicents.servlet.sip.core.dispatchers.ResponseDispatcher
public class ResponseDispatcher
- extends MessageDispatcher
This class is responsible for routing and dispatching responses to applications according to JSR 289 Section
15.6 Responses, Subsequent Requests and Application Path
It uses via header parameters that were previously set by the container to know which app has to be called
- Author:
- Jean Deruelle
| Fields inherited from class org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher |
APP_ID, APP_NOT_DEPLOYED, GENERATED_APP_KEY, MODIFIER, NO_APP_RETURNED, ROUTE_PARAM_DIRECTIVE, ROUTE_PARAM_NODE_HOST, ROUTE_PARAM_NODE_PORT, ROUTE_PARAM_PREV_APP_ID, ROUTE_PARAM_PREV_APPLICATION_NAME, RR_PARAM_APPLICATION_NAME, RR_PARAM_PROXY_APP, sipApplicationDispatcher |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseDispatcher
public ResponseDispatcher(SipApplicationDispatcher sipApplicationDispatcher)
dispatchMessage
public void dispatchMessage(javax.sip.SipProvider sipProvider,
SipServletMessageImpl sipServletMessage)
throws DispatcherException
- Responsible for routing and dispatching a SIP message to the correct application
- Specified by:
dispatchMessage in class MessageDispatcher
- Parameters:
sipProvider - use the sipProvider to route the message if needed, can be nullsipServletMessage - the SIP message to route and dispatch
- Throws:
DispatcherException
checkInitialRemoteInformation
public void checkInitialRemoteInformation(SipServletMessageImpl sipServletMessage,
javax.sip.header.ViaHeader nextViaHeader)
- This method checks if the initial remote information as specified by SIP Servlets 1.1 Section 15.7
is available. If not we add it as headers only if the next via header is for the container
(so that this information stays within the container boundaries)
- Parameters:
sipServletMessage - nextViaHeader -
Copyright © 2009. All Rights Reserved.