use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.
the class PostArrivalProcessorImpl method updateMessageDestAddrTon.
@Override
public void updateMessageDestAddrTon(MProcMessage message, int newDestTon) throws MProcRuleException {
MProcUtility.checkDestAddrTon(newDestTon);
MProcMessageImpl msg = (MProcMessageImpl) message;
Sms sms = msg.getSmsContent();
sms.getSmsSet().setDestAddrTon(newDestTon);
sms.getSmsSet().setCorrelationId(null);
}
use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.
the class PostArrivalProcessorImpl method updatePriority.
@Override
public void updatePriority(MProcMessage message, int newPriority) {
MProcMessageImpl msg = (MProcMessageImpl) message;
Sms sms = msg.getSmsContent();
sms.setPriority(newPriority);
}
use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.
the class PostArrivalProcessorImpl method updateRegisteredDelivery_DeliveryReceiptNo.
@Override
public void updateRegisteredDelivery_DeliveryReceiptNo(MProcMessage message) {
MProcMessageImpl msg = (MProcMessageImpl) message;
Sms sms = msg.getSmsContent();
sms.setRegisteredDelivery(MProcUtility.setRegisteredDelivery_DeliveryReceiptNo(sms.getRegisteredDelivery()));
}
use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.
the class PostArrivalProcessorImpl method updateDataCoding.
@Override
public void updateDataCoding(MProcMessage message, int newDataCoding) {
MProcMessageImpl msg = (MProcMessageImpl) message;
Sms sms = msg.getSmsContent();
sms.setDataCoding(newDataCoding);
}
use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.
the class PostArrivalProcessorImpl method updateRegisteredDelivery_DeliveryReceiptOnSuccessOrFailure.
@Override
public void updateRegisteredDelivery_DeliveryReceiptOnSuccessOrFailure(MProcMessage message) {
MProcMessageImpl msg = (MProcMessageImpl) message;
Sms sms = msg.getSmsContent();
sms.setRegisteredDelivery(MProcUtility.setRegisteredDelivery_DeliveryReceiptOnSuccessOrFailure(sms.getRegisteredDelivery()));
}
Aggregations