private void onStopObserving(StopObserving message, ActorRef self, ActorRef sender) throws ServletParseException {
        String senderPath = sender.path().name();
        callMap.remove(senderPath);
        CallInfo callInfo = callDetailsMap.remove(senderPath);
        if (callInfo != null && callInfo.invite() != null) {
            callLocationMap.remove(callInfo.invite().getAddressHeader(ContactHeader.NAME).getURI().toString());
        }
        if (callInfo.direction().equalsIgnoreCase("inbound")) {
            if (logger.isDebugEnabled()) {
                String msg = String.format("MonitoringService Removed inbound call from: %s to: %s, currently liveCalls: %d", callInfo.from(), callInfo.to(),callDetailsMap.size());
                logger.debug(msg);
            }
            incomingCallDetailsMap.remove(senderPath);
        } else {
            if (logger.isDebugEnabled()) {
                String msg = String.format("MonitoringService Removed outbound call from: %s to: %s, currently liveCallS: %d ", callInfo.from(), callInfo.to(),callDetailsMap.size());
                logger.debug(msg);
            }
            outgoingCallDetailsMap.remove(senderPath);
        }
        callStateMap.remove(senderPath);
    }
private void onStopObserving ( StopObserving message , ActorRef self , ActorRef sender ) throws ServletParseException { String senderPath = sender . path ( ) . name ( ) ; callMap . remove ( senderPath ) ; CallInfo callInfo = callDetailsMap . remove ( senderPath ) ; if ( callInfo != null && callInfo . invite ( ) != null ) { callLocationMap . remove ( callInfo . invite ( ) . getAddressHeader ( ContactHeader . NAME ) . getURI ( ) . toString ( ) ) ; } if ( callInfo . direction ( ) . equalsIgnoreCase ( "inbound" ) ) { if ( logger . isDebugEnabled ( ) ) { String msg = String . format ( "MonitoringService Removed inbound call from: %s to: %s, currently liveCalls: %d" , callInfo . from ( ) , callInfo . to ( ) , callDetailsMap . size ( ) ) ; logger . debug ( msg ) ; } incomingCallDetailsMap . remove ( senderPath ) ; } else { if ( logger . isDebugEnabled ( ) ) { String msg = String . format ( "MonitoringService Removed outbound call from: %s to: %s, currently liveCallS: %d " , callInfo . from ( ) , callInfo . to ( ) , callDetailsMap . size ( ) ) ; logger . debug ( msg ) ; } outgoingCallDetailsMap . remove ( senderPath ) ; } callStateMap . remove ( senderPath ) ; }
@param message
@param self
@param sender