Tabnine Logo
FromHeader.getTag
Code IndexAdd Tabnine to your IDE (free)

How to use
getTag
method
in
javax.sip.header.FromHeader

Best Java code snippets using javax.sip.header.FromHeader.getTag (Showing top 10 results out of 315)

origin: org.jitsi/jain-sip-ri-ossonly

public void setPendingRouteUpdateOn202Response(SIPRequest sipRequest) {
  this.pendingRouteUpdateOn202Response = true;
  // Issue 374 : patch from ivan dubrov : get the from tag instead of to tag
  String fromTag = sipRequest.getFromHeader().getTag();
  if (fromTag != null) {
    this.setRemoteTag(fromTag);
  }
}
origin: org.mobicents.servlet.sip/sip-servlets-impl

public void setOriginalRequest(MobicentsSipServletRequest originalRequest) {
  // Determine the direction of the request. Either it's from the dialog initiator (the caller)
  // or from the callee
  if(storeTerminationInfo) {
  if(((MessageExt)originalRequest.getMessage()).getFromHeader().getTag().equals(callerFromTag)) {
      terminationInfo.setCallerCSeq((((MessageExt)originalRequest.getMessage()).getCSeqHeader().getSeqNumber()));
  } else {
    // If it's from the callee we should send it in the other direction
      terminationInfo.setCalleeCSeq((((MessageExt)originalRequest.getMessage()).getCSeqHeader().getSeqNumber()));
    }
  }
  this.originalRequest = (SipServletRequestImpl) originalRequest;
}
origin: org.mobicents.servlet.sip/sip-servlets-impl

public ProxyImpl(SipServletRequestImpl request, SipFactoryImpl sipFactoryImpl)
{
  this.proxyTimerService = ((MobicentsSipApplicationSession)request.getSipApplicationSession(false)).getSipContext().getProxyTimerService();
  this.originalRequest = request;
  this.sipFactoryImpl = sipFactoryImpl;
  this.proxyBranches = new LinkedHashMap<URI, ProxyBranchImpl> ();		
  this.proxyTimeout = 180; // 180 secs default
  this.proxy1xxTimeout = -1; // not activated by default
  String outboundInterfaceStringified = ((MobicentsSipSession)request.getSession()).getOutboundInterface();
  if(outboundInterfaceStringified != null) {
    try {
      outboundInterface = (SipURI) sipFactoryImpl.createURI(outboundInterfaceStringified);
    } catch (ServletParseException e) {
      throw new IllegalArgumentException("couldn't parse the outbound interface " + outboundInterface, e);
    }
  }
  this.callerFromTag = ((MessageExt)request.getMessage()).getFromHeader().getTag();
  this.previousNode = extractPreviousNodeFromRequest(request);
  putTransaction(originalRequest);
}
// https://code.google.com/p/sipservlets/issues/detail?id=238
origin: org.mobicents.servlet.sip/sip-servlets-impl

final String fromTag = 	from.getTag();
origin: org.mobicents.servlet.sip/sip-servlets-impl

String subscribeFromTag = ((MessageExt)subscribeRequest.getMessage()).getFromHeader().getTag();
String proxyFromTag = ((MessageExt)proxyResponse.getMessage()).getFromHeader().getTag();
origin: org.mobicents.servlet.sip/sip-servlets-impl

  handlerServlet,
  originalCallId,
  fromHeader.getTag());						
final Request request = ((Request)sipServletRequest.getMessage());
sipServletRequest.getSipSession().setCseq(((CSeqHeader)request.getHeader(CSeqHeader.NAME)).getSeqNumber());
origin: org.mobicents.servlet.sip/sip-servlets-impl

if(!((MessageExt)request.getMessage()).getFromHeader().getTag().toString().equals(proxy.getCallerFromTag())) {
origin: org.jitsi/jain-sip-ri-ossonly

this.hisTag = sipRequest.getFrom().getTag();
this.setLocalTag(sipRequest.getFrom().getTag());
if (myTag == null)
  if (logger.isLoggingEnabled())
origin: org.jitsi/jain-sip-ri-ossonly

/**
 * create a sip dialog with a response ( no tx)
 */
public SIPDialog(SipProviderImpl sipProvider, SIPResponse sipResponse) {
  this(sipProvider);
  this.sipStack = (SIPTransactionStack) sipProvider.getSipStack();
  this.setLastResponse(null, sipResponse);
  this.localSequenceNumber = sipResponse.getCSeq().getSeqNumber();
  this.originalLocalSequenceNumber = localSequenceNumber;
  this.localParty = sipResponse.getFrom().getAddress();
  this.remoteParty = sipResponse.getTo().getAddress();
  this.method = sipResponse.getCSeq().getMethod();
  this.callIdHeader = sipResponse.getCallId();
  this.serverTransactionFlag = false;
  this.setLocalTag(sipResponse.getFrom().getTag());
  this.setRemoteTag(sipResponse.getTo().getTag());
  if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
    logger.logDebug("Creating a dialog : " + this);
    logger.logStackTrace();
  }
  this.isBackToBackUserAgent = sipStack.isBackToBackUserAgent;
  addEventListener(sipStack);
  releaseReferencesStrategy = sipStack.getReleaseReferencesStrategy();
}

origin: org.jitsi/jain-sip-ri-ossonly

  String originalFrom = ((SIPRequest) this.transactionChannel
      .getRequest()).getFromTag();
  if (originalFrom == null ^ sipResponse.getFrom().getTag() == null) {
    if (logger.isLoggingEnabled(LogLevels.TRACE_DEBUG))
      logger.logDebug(
          .getTag())) {
    if (logger.isLoggingEnabled(LogLevels.TRACE_DEBUG))
      logger.logDebug(
if (SIPTransactionStack.isDialogCreated(method)
    && sipResponse.getStatusCode() != 100
    && sipResponse.getFrom().getTag() != null
    && sipResponse.getTo().getTag() != null && sipDialog == null) {
javax.sip.headerFromHeadergetTag

Popular methods of FromHeader

  • getAddress
  • setTag
  • getParameter
  • getParameterNames
  • removeParameter
  • setParameter

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • setRequestProperty (URLConnection)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JPanel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now