public String getCurrentRequestHandler() { return this.sipApplicationSession.getCurrentRequestHandler(); }
public SipServletRequest createRequest(SipApplicationSession appSession, String method, Address from, Address to) { SipServletRequest sipServletRequest = sipFactoryImpl.createRequest(appSession, method, from, to, ((MobicentsSipApplicationSession)appSession).getCurrentRequestHandler(), null, null); return sipServletRequest; }
public SipServletRequest createRequest(SipApplicationSession appSession, String method, URI from, URI to) { SipServletRequest sipServletRequest = sipFactoryImpl.createRequest(appSession, method, from, to, ((MobicentsSipApplicationSession)appSession).getCurrentRequestHandler()); return sipServletRequest; }
public SipServletRequest createRequest(SipApplicationSession appSession, String method, String from, String to) throws ServletParseException { SipServletRequest sipServletRequest = sipFactoryImpl.createRequest(appSession, method, from, to, ((MobicentsSipApplicationSession)appSession).getCurrentRequestHandler()); return sipServletRequest; }
@Override public SipServletRequest createRequestWithCallID(SipApplicationSession sipAppSession, String method, Address from, Address to, String callID){ if (logger.isDebugEnabled()) { logger .debug("Creating new SipServletRequest for SipApplicationSession[" + sipAppSession + "] METHOD[" + method + "] FROM_A[" + from + "] TO_A[" + to + "]"); } validateCreation(method, sipAppSession); try { String handler = ((MobicentsSipApplicationSession)sipAppSession).getCurrentRequestHandler(); //javadoc specifies that a copy of the address should be done hence the clone return createSipServletRequest(sipAppSession, method, (Address)from.clone(), (Address)to.clone(), handler, callID, null); } catch (ServletParseException e) { logger.error("Error creating sipServletRequest", e); return null; } }
@Override public SipServletRequest createRequestWithCallID(SipApplicationSession sipAppSession, String method, String from, String to, String callID) throws ServletParseException{ if (logger.isDebugEnabled()) { logger .debug("Creating new SipServletRequest for SipApplicationSession[" + sipAppSession + "] METHOD[" + method + "] FROM[" + from + "] TO[" + to + "]"); } validateCreation(method, sipAppSession); Address toA = this.createAddress(to); Address fromA = this.createAddress(from); String handler = ((MobicentsSipApplicationSession)sipAppSession).getCurrentRequestHandler(); return createSipServletRequest(sipAppSession, method, fromA, toA, handler, callID, null); }
@Override public SipServletRequest createRequestWithCallID(SipApplicationSession sipAppSession, String method, URI from, URI to, String callID){ if (logger.isDebugEnabled()) { logger .debug("Creating new SipServletRequest for SipApplicationSession[" + sipAppSession + "] METHOD[" + method + "] FROM_URI[" + from + "] TO_URI[" + to + "]"); } validateCreation(method, sipAppSession); //javadoc specifies that a copy of the uri should be done hence the clone Address toA = this.createAddress(to.clone()); Address fromA = this.createAddress(from.clone()); try { String handler = ((MobicentsSipApplicationSession)sipAppSession).getCurrentRequestHandler(); return createSipServletRequest(sipAppSession, method, fromA, toA, handler, callID, null); } catch (ServletParseException e) { logger.error("Error creating sipServletRequest", e); return null; } }
MobicentsSipApplicationSession appSession = appSessions.next(); result += "[APPLICATION SESSION] ID = " + appSession.getId() + ", Handler = " + appSession.getCurrentRequestHandler() + "\n"+ "([APPLICATION SESSION])\n"; Iterator<String> attribNames = appSession.getAttributeNames(); while(attribNames.hasNext()) {
String mainServlet = appSession.getCurrentRequestHandler(); if(logger.isDebugEnabled()) { logger.debug("current request Handler = " + sipSessionHandlerName);
if(originalSession != null) { session.setHandler(originalSession.getHandler()); } else if(originalAppSession.getCurrentRequestHandler() != null) { session.setHandler(originalAppSession.getCurrentRequestHandler());