Package gov.nist.javax.sip

Examples of gov.nist.javax.sip.IOExceptionEventExt


            if(sipStack instanceof SipStackImpl) {
              for (Iterator<SipProviderImpl> it = ((SipStackImpl)sipStack).getSipProviders(); it.hasNext();) {
                  SipProviderImpl nextProvider = (SipProviderImpl) it.next();
                  SipListener sipListener= nextProvider.getSipListener();
                if(sipListener!= null && sipListener instanceof  SipListenerExt) {
                  ((SipListenerExt)sipListener).processIOException(new IOExceptionEventExt(nextProvider, Reason.KeepAliveTimeout, myAddress, myPort,
                      peerAddress.getHostAddress(), peerPort, "TCP"));
                  }
              } 
            } else {
              SipListener sipListener = sipStack.getSipListener();             
              if(sipListener instanceof  SipListenerExt) {
                ((SipListenerExt)sipListener).processIOException(new IOExceptionEventExt(this, Reason.KeepAliveTimeout, myAddress, myPort,
                      peerAddress.getHostAddress(), peerPort, "TCP"));
              }
            }
        }
View Full Code Here


                  for(ListeningPoint listeningPoint : listeningPoints) {
                  if(sipListener!= null && sipListener instanceof SipListenerExt
                      // making sure that we don't notify each listening point but only the one on which the timeout happened 
                      && listeningPoint.getIPAddress().equalsIgnoreCase(myAddress) && listeningPoint.getPort() == myPort &&
                        listeningPoint.getTransport().equalsIgnoreCase(getTransport())) {
                    ((SipListenerExt)sipListener).processIOException(new IOExceptionEventExt(nextProvider, Reason.KeepAliveTimeout, myAddress, myPort,
                        peerAddress.getHostAddress(), peerPort, getTransport()));
                    }
                  }
              } 
            } else {
              SipListener sipListener = sipStack.getSipListener();             
              if(sipListener instanceof SipListenerExt) {
                ((SipListenerExt)sipListener).processIOException(new IOExceptionEventExt(this, Reason.KeepAliveTimeout, myAddress, myPort,
                      peerAddress.getHostAddress(), peerPort, getTransport()));
              }
            }
        }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.IOExceptionEventExt

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.