Package javax.sip

Examples of javax.sip.SipListener


      logger.addAppender(console);
  }

  private SipListener getSipListener(EventObject sipEvent) {
    SipProvider source = (SipProvider) sipEvent.getSource();
    SipListener listener = (SipListener) providerTable.get(source);
    assertTrue(listener != null);
    return listener;
  }
View Full Code Here


            }
            close(true);
            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

    private static Logger logger = Logger.getLogger("test.tck");

  
    private SipListener getSipListener(EventObject sipEvent) {
        SipProvider source = (SipProvider) sipEvent.getSource();
        SipListener listener = (SipListener) providerTable.get(source);
        return listener;
    }
View Full Code Here

     * nist.javax.sip.stack.SIPDialogErrorEvent)
     */
    public synchronized void dialogErrorEvent(
            SIPDialogErrorEvent dialogErrorEvent) {
        SIPDialog sipDialog = (SIPDialog) dialogErrorEvent.getSource();
        SipListener sipListener = ((SipStackImpl)this).getSipListener();
        // if the app is not implementing the SipListenerExt interface we delete
        // the dialog to avoid leaks
        if(sipDialog != null && !(sipListener instanceof SipListenerExt)) {
            sipDialog.delete();
        }
View Full Code Here

        }
    }

    private SipListener getSipListener(EventObject sipEvent) {
        SipProvider source = (SipProvider) sipEvent.getSource();
        SipListener listener = (SipListener) providerTable.get(source);
        assertTrue(listener != null);
        return listener;
    }
View Full Code Here

   * nist.javax.sip.stack.SIPDialogErrorEvent)
   */
  public synchronized void dialogErrorEvent(
      SIPDialogErrorEvent dialogErrorEvent) {
    SIPDialog sipDialog = (SIPDialog) dialogErrorEvent.getSource();
    SipListener sipListener = ((SipStackImpl) this).getSipListener();
    // if the app is not implementing the SipListenerExt interface we delete
    // the dialog to avoid leaks
    if (sipDialog != null && !(sipListener instanceof SipListenerExt)) {
      sipDialog.delete();
    }
View Full Code Here

   * nist.javax.sip.stack.SIPDialogErrorEvent)
   */
  public synchronized void dialogErrorEvent(
      SIPDialogErrorEvent dialogErrorEvent) {
    SIPDialog sipDialog = (SIPDialog) dialogErrorEvent.getSource();
    SipListener sipListener = ((SipStackImpl) this).getSipListener();
    // if the app is not implementing the SipListenerExt interface we delete
    // the dialog to avoid leaks
    if (sipDialog != null && !(sipListener instanceof SipListenerExt)) {
      sipDialog.delete();
    }
View Full Code Here

     * nist.javax.sip.stack.SIPDialogErrorEvent)
     */
    public synchronized void dialogErrorEvent(
            SIPDialogErrorEvent dialogErrorEvent) {
        SIPDialog sipDialog = (SIPDialog) dialogErrorEvent.getSource();
        SipListener sipListener = ((SipStackImpl)this).getSipListener();
        // if the app is not implementing the SipListenerExt interface we delete
        // the dialog to avoid leaks
        if(sipDialog != null && !(sipListener instanceof SipListenerExt)) {
            sipDialog.delete();
        }
View Full Code Here

    private static Logger logger = Logger.getLogger("test.tck");

  
    private SipListener getSipListener(EventObject sipEvent) {
        SipProvider source = (SipProvider) sipEvent.getSource();
        SipListener listener = (SipListener) providerTable.get(source);
        assertTrue(listener != null);
        return listener;
    }
View Full Code Here

        //    logger.addAppender(console);
    }

    private SipListener getSipListener(EventObject sipEvent) {
        SipProvider source = (SipProvider) sipEvent.getSource();
        SipListener listener = (SipListener) providerTable.get(source);
        assertTrue(listener != null);
        return listener;
    }
View Full Code Here

TOP

Related Classes of javax.sip.SipListener

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.