public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, String from, String to, String handler) 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); return createSipServletRequest(sipAppSession, method, fromA, toA, handler, null, null); }
public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, Address from, Address to, String handler, String originalCallId, String fromTagToUse) { if (logger.isDebugEnabled()) { logger .debug("Creating new SipServletRequest for SipApplicationSession[" + sipAppSession + "] METHOD[" + method + "] FROM_A[" + from + "] TO_A[" + to + "]"); } validateCreation(method, sipAppSession); try { //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, originalCallId, fromTagToUse); } catch (ServletParseException e) { logger.error("Error creating sipServletRequest", e); return null; } }
@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); }
public SipServletRequest createRequest(SipApplicationSession sipAppSession, String method, URI from, URI to, String handler) { 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 { return createSipServletRequest(sipAppSession, method, fromA, toA, handler, null, null); } catch (ServletParseException e) { logger.error("Error creating sipServletRequest", e); return 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; } }