/** * Handle 404 Session Not Found * * @param resp 404 response */ public void handle404SessionNotFound(SipResponse resp) { // Rejoin session has failed, we update the database with status terminated by remote RichMessaging.getInstance().addChatSessionTerminationByRemote(this); // Notify listener handleError(new ChatError(ChatError.SESSION_NOT_FOUND, resp.getReasonPhrase())); }
/** * Handle default error * * @param resp Error response */ public void handleDefaultError(SipResponse resp) { // Default handle handleError( new ImsSessionBasedServiceError( ImsSessionBasedServiceError.SESSION_INITIATION_FAILED, resp.getStatusCode() + " " + resp.getReasonPhrase())); }
/** * Handle 603 Decline * * @param resp 603 response */ public void handle603Declined(SipResponse resp) { handleError( new ImsSessionBasedServiceError( ImsSessionBasedServiceError.SESSION_INITIATION_DECLINED, resp.getStatusCode() + " " + resp.getReasonPhrase())); }
/** * Handle 487 Cancel * * @param resp 487 response */ public void handle487Cancel(SipResponse resp) { handleError( new ImsSessionBasedServiceError( ImsSessionBasedServiceError.SESSION_INITIATION_CANCELLED, resp.getStatusCode() + " " + resp.getReasonPhrase())); }