public boolean manage(final DeliveryReceipt result) {
		
		if (logger.isDebugEnabled()) {
			logger.debug("Invoking manage with parameter DeliveryReceipt method" + 
				     "  - smid : " + result.getSmid() + 
				     "  - msmisdn : " + result.getMsisdn() + 
				     "  - date : " + result.getDate() + 
				     "  - status : " + result.getStatus() + 
				     "  - message : " + result.getMessage() + 
				     "  - cause : " + result.getCause() + 
				     "  - country code : " + result.getCountryCode() + 
				     "  - operator : " + result.getOperator() + 
				     "  - pnm retry number : " + result.getPNMRetryNumber());
		}
		
		final int rcpStatus = result.getStatus();
		final int rcpCause = result.getCause();
		
		final Acknowledgment acknowledgment = new Acknowledgment();

		// common elements
		acknowledgment.setSmsId(result.getSmid());
		// Ok case
		if (rcpStatus == olmSentStatusCode) {
			acknowledgment.setSmsStatus(SmsStatus.DELIVERED);
		// Error invalid number case (msisdn to put in bl)	
		} else if (rcpStatus == olmErrorStatusCode	
				&& rcpCause == olmInvalidMSISDNCauseCode) {
			acknowledgment.setSmsStatus(SmsStatus.ERROR_POST_BL);
		// Other error
		} else {
			acknowledgment.setSmsStatus(SmsStatus.ERROR);
		}
		
		// managing ack
		ackManager.manageAck(acknowledgment);
		
		return true;
	}
public boolean manage ( final DeliveryReceipt result ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Invoking manage with parameter DeliveryReceipt method" + "  - smid : " + result . getSmid ( ) + "  - msmisdn : " + result . getMsisdn ( ) + "  - date : " + result . getDate ( ) + "  - status : " + result . getStatus ( ) + "  - message : " + result . getMessage ( ) + "  - cause : " + result . getCause ( ) + "  - country code : " + result . getCountryCode ( ) + "  - operator : " + result . getOperator ( ) + "  - pnm retry number : " + result . getPNMRetryNumber ( ) ) ; } final int rcpStatus = result . getStatus ( ) ; final int rcpCause = result . getCause ( ) ; final Acknowledgment acknowledgment = new Acknowledgment ( ) ; acknowledgment . setSmsId ( result . getSmid ( ) ) ; if ( rcpStatus == olmSentStatusCode ) { acknowledgment . setSmsStatus ( SmsStatus . DELIVERED ) ; } else if ( rcpStatus == olmErrorStatusCode && rcpCause == olmInvalidMSISDNCauseCode ) { acknowledgment . setSmsStatus ( SmsStatus . ERROR_POST_BL ) ; } else { acknowledgment . setSmsStatus ( SmsStatus . ERROR ) ; } ackManager . manageAck ( acknowledgment ) ; return true ; }
/* (non-Javadoc)
@see fr.cvf.util.mgs.mode.sgs.Manager#manage(fr.cvf.util.mgs.mode.sgs.message.response.DeliveryReceipt)