public void unregisterEndpoint ( String endpointId ) throws MgcpEndpointNotFoundException { MgcpEndpoint endpoint = this . endpoints . remove ( endpointId ) ; if ( endpoint == null ) { throw new MgcpEndpointNotFoundException ( "Endpoint " + endpointId + " not found" ) ; } endpoint . forget ( ( MgcpMessageObserver ) this ) ; endpoint . forget ( ( MgcpEndpointObserver ) this ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Unregistered endpoint " + endpoint . getEndpointId ( ) . toString ( ) + ". Count: " + this . endpoints . size ( ) ) ; } }
Unregisters an active endpoint .