code: 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());
          }
      }
docs: Unregisters an active endpoint.
  
  @param endpointId The ID of the endpoint to be unregistered
  @throws MgcpEndpointNotFoundException If there is no registered endpoint with such ID