Package gov.nist.javax.sip.header

Examples of gov.nist.javax.sip.header.Event


                    // The user could have createed a dialog before sending out
                    // the SUBSCRIBE on the subscribe tx.
                    if (subscriptionDialog == null
                            && (sipProvider.isAutomaticDialogSupportEnabled() || pendingSubscribeClientTx
                                    .getDefaultDialog() != null)) {
                        Event event = (Event) sipRequest.getHeader(EventHeader.NAME);
                        if (sipStack.isEventForked(event.getEventType())) {

                            subscriptionDialog = SIPDialog.createFromNOTIFY(
                                    pendingSubscribeClientTx, transaction);

                        }
View Full Code Here


              stackLogger.logDebug("ct table size = " + clientTransactionTable.size());
            String thisToTag = notifyMessage.getTo().getTag();
            if (thisToTag == null) {
                return retval;
            }
            Event eventHdr = (Event) notifyMessage.getHeader(EventHeader.NAME);
            if (eventHdr == null) {
                if (stackLogger.isLoggingEnabled()) {
                    stackLogger.logDebug("event Header is null -- returning null");
                }

                return retval;
            }
            while (it.hasNext()) {
                SIPClientTransaction ct = (SIPClientTransaction) it.next();
                if (!ct.getMethod().equals(Request.SUBSCRIBE))
                    continue;

                // if ( sipProvider.getListeningPoint(transport) == null)
                String fromTag = ct.from.getTag();
                Event hisEvent = ct.event;
                // Event header is mandatory but some slopply clients
                // dont include it.
                if (hisEvent == null)
                    continue;
                if (stackLogger.isLoggingEnabled()) {
View Full Code Here

                    // The user could have createed a dialog before sending out
                    // the SUBSCRIBE on the subscribe tx.
                    if (subscriptionDialog == null
                            && (sipProvider.isAutomaticDialogSupportEnabled() || pendingSubscribeClientTx
                                    .getDefaultDialog() != null)) {
                        Event event = (Event) sipRequest.getHeader(EventHeader.NAME);
                        if (sipStack.isEventForked(event.getEventType())) {

                            subscriptionDialog = SIPDialog.createFromNOTIFY(
                                    pendingSubscribeClientTx, transaction);

                        }
View Full Code Here

            + clientTransactionTable.size());
      String thisToTag = notifyMessage.getTo().getTag();
      if (thisToTag == null) {
        return retval;
      }
      Event eventHdr = (Event) notifyMessage.getHeader(EventHeader.NAME);
      if (eventHdr == null) {
        if (stackLogger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
          stackLogger
              .logDebug("event Header is null -- returning null");
        }

        return retval;
      }
      while (it.hasNext()) {
        SIPClientTransaction ct = (SIPClientTransaction) it.next();
        if (!ct.getMethod().equals(Request.SUBSCRIBE))
          continue;

        // if ( sipProvider.getListeningPoint(transport) == null)
        String fromTag = ct.from.getTag();
        Event hisEvent = ct.event;
        // Event header is mandatory but some slopply clients
        // dont include it.
        if (hisEvent == null)
          continue;
        if (stackLogger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
View Full Code Here

                        + clientTransactionTable.size());
            String thisToTag = notifyMessage.getTo().getTag();
            if (thisToTag == null) {
                return retval;
            }
            Event eventHdr = (Event) notifyMessage.getHeader(EventHeader.NAME);
            if (eventHdr == null) {
                if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
                    logger
                            .logDebug("event Header is null -- returning null");
                }

                return retval;
            }
            while (it.hasNext()) {
                SIPClientTransaction ct = (SIPClientTransaction) it.next();
                if (!ct.getMethod().equals(Request.SUBSCRIBE))
                    continue;

                // if ( sipProvider.getListeningPoint(transport) == null)
                String fromTag = ct.getOriginalRequestFromTag();
                Event hisEvent = (Event) ct.getOriginalRequestEvent();
                // Event header is mandatory but some slopply clients
                // dont include it.
                if (hisEvent == null)
                    continue;
                if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
View Full Code Here

            logWriter.logDebug("ct table size = " + clientTransactionTable.size());
            String thisToTag = notifyMessage.getTo().getTag();
            if (thisToTag == null) {
                return retval;
            }
            Event eventHdr = (Event) notifyMessage.getHeader(EventHeader.NAME);
            if (eventHdr == null) {
                if (logWriter.isLoggingEnabled()) {
                    logWriter.logDebug("event Header is null -- returning null");
                }

                return retval;
            }
            while (it.hasNext()) {
                SIPClientTransaction ct = (SIPClientTransaction) it.next();
                if (!ct.getMethod().equals(Request.SUBSCRIBE))
                    continue;
              
                // if ( sipProvider.getListeningPoint(transport) == null)
                String fromTag = ct.from.getTag();
                Event hisEvent = ct.event;
                // Event header is mandatory but some slopply clients
                // dont include it.
                if (hisEvent == null)
                    continue;
                if (this.isLoggingEnabled()) {
View Full Code Here

                 * NOTIFY MUST include an id parameter in the Event header containing the sequence number
                 * (the number from the CSeq header field value) of the REFER this NOTIFY is associated with.
                 * This id parameter MAY be included in NOTIFYs to the first REFER a UA receives in a given dialog
                 */
            long lastReferCSeq = ((SIPRequest) transaction.getRequest()).getCSeq().getSeqNumber();
            this.eventHeader = new Event();
            this.eventHeader.setEventType("refer");
            if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
              logger.logDebug("SIPDialog::setLastTransaction:lastReferCSeq = " + lastReferCSeq);
            }
            this.eventHeader.setEventId(Long.toString(lastReferCSeq));
View Full Code Here

                    // The user could have createed a dialog before sending out
                    // the SUBSCRIBE on the subscribe tx.
                    if (subscriptionDialog == null
                            && (sipProvider.isAutomaticDialogSupportEnabled() || pendingSubscribeClientTx
                                    .getDefaultDialog() != null)) {
                        Event event = (Event) sipRequest
                                .getHeader(EventHeader.NAME);
                        if (sipStack.isEventForked(event.getEventType())) {

                            subscriptionDialog = sipStack.createDialog(
                                    pendingSubscribeClientTx, transaction);

                        }
View Full Code Here

                    // The user could have createed a dialog before sending out
                    // the SUBSCRIBE on the subscribe tx.
                    if (subscriptionDialog == null
                            && (sipProvider.isAutomaticDialogSupportEnabled() || pendingSubscribeClientTx
                                    .getDefaultDialog() != null)) {
                        Event event = (Event) sipRequest.getHeader(EventHeader.NAME);
                        if (sipStack.isEventForked(event.getEventType())) {

                            subscriptionDialog = SIPDialog.createFromNOTIFY(
                                    pendingSubscribeClientTx, transaction);

                        }
View Full Code Here

            + clientTransactionTable.size());
      String thisToTag = notifyMessage.getTo().getTag();
      if (thisToTag == null) {
        return retval;
      }
      Event eventHdr = (Event) notifyMessage.getHeader(EventHeader.NAME);
      if (eventHdr == null) {
        if (stackLogger.isLoggingEnabled()) {
          stackLogger
              .logDebug("event Header is null -- returning null");
        }

        return retval;
      }
      while (it.hasNext()) {
        SIPClientTransaction ct = (SIPClientTransaction) it.next();
        if (!ct.getMethod().equals(Request.SUBSCRIBE))
          continue;

        // if ( sipProvider.getListeningPoint(transport) == null)
        String fromTag = ct.from.getTag();
        Event hisEvent = ct.event;
        // Event header is mandatory but some slopply clients
        // dont include it.
        if (hisEvent == null)
          continue;
        if (stackLogger.isLoggingEnabled()) {
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.header.Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.