public void stop() throws Exception { // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (SipProtocolHandler connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = null; if (connector instanceof SipProtocolHandler) { extendedListeningPoint = (MobicentsExtendedListeningPoint) ((SipProtocolHandler) connector) .getAttribute(ExtendedListeningPoint.class.getSimpleName()); } if (extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint( extendedListeningPoint); } } } if (!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } // super.stop(); if (logger.isDebugEnabled()) { logger.debug("SIP Standard Service Stopped."); } // setState(LifecycleState.STOPPING); }
public void stop() throws Exception { // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (SipProtocolHandler connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = null; if (connector instanceof SipProtocolHandler) { extendedListeningPoint = (MobicentsExtendedListeningPoint) ((SipProtocolHandler) connector) .getAttribute(ExtendedListeningPoint.class.getSimpleName()); } if (extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint( extendedListeningPoint); } } } if (!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } // super.stop(); if (logger.isDebugEnabled()) { logger.debug("SIP Standard Service Stopped."); } // setState(LifecycleState.STOPPING); }
@Override public void removeConnector(Connector connector) { MobicentsExtendedListeningPoint extendedListeningPoint = (MobicentsExtendedListeningPoint) connector.getProtocolHandler().getAttribute(MobicentsExtendedListeningPoint.class.getSimpleName()); if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } super.removeConnector(connector); }
@Override public void stop() throws LifecycleException { super.stop(); // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (Connector connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = (MobicentsExtendedListeningPoint) connector.getProtocolHandler().getAttribute(MobicentsExtendedListeningPoint.class.getSimpleName()); if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } } } if(!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } if(logger.isInfoEnabled()) { logger.info("SIP Standard Service Stopped."); } }
extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
@Override public void removeConnector(Connector connector) { MobicentsExtendedListeningPoint extendedListeningPoint = null; if (connector.getProtocolHandler() instanceof SipProtocolHandler){ extendedListeningPoint = (MobicentsExtendedListeningPoint) ((SipProtocolHandler)connector.getProtocolHandler()).getAttribute(ExtendedListeningPoint.class.getSimpleName());} if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } super.removeConnector(connector); }
extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
@Override public void stop() throws LifecycleException { // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (Connector connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = null; if (connector.getProtocolHandler() instanceof SipProtocolHandler) { extendedListeningPoint = (MobicentsExtendedListeningPoint) ((SipProtocolHandler)connector.getProtocolHandler()).getAttribute(ExtendedListeningPoint.class.getSimpleName()); } if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } } } if(!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } super.stop(); if(logger.isDebugEnabled()) { logger.debug("SIP Standard Service Stopped."); } // setState(LifecycleState.STOPPING); }
+ extendedListeningPoint); extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
+ extendedListeningPoint); extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
logger.debug("Removing the Sip Application Dispatcher as a sip listener for listening point " + extendedListeningPoint); extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
logger.debug("Removing the Sip Application Dispatcher as a sip listener for listening point " + extendedListeningPoint); extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint);
@Override protected void doStop() throws Exception { super.doStop(); getSipStack().deleteListeningPoint(configuration.getListeningPoint()); provider.removeSipListener(sipPublishListener); getSipStack().deleteSipProvider(provider); getSipStack().stop(); }
@Override protected void doStop() throws Exception { super.doStop(); getSipStack().deleteListeningPoint(configuration.getListeningPoint()); provider.removeSipListener(sipPresenceAgentListener); getSipStack().deleteSipProvider(provider); getSipStack().stop(); }