Search in sources :

Example 21 with Sms

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);
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 22 with Sms

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);
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 23 with Sms

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()));
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 24 with Sms

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);
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 25 with Sms

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()));
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Aggregations

Sms (org.mobicents.smsc.library.Sms)139 SmsSet (org.mobicents.smsc.library.SmsSet)62 Test (org.testng.annotations.Test)43 Date (java.util.Date)42 ArrayList (java.util.ArrayList)35 ISDNAddressString (org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString)33 TargetAddress (org.mobicents.smsc.library.TargetAddress)30 MAPDialogSmsProxy (org.mobicents.smsc.slee.resources.persistence.MAPDialogSmsProxy)27 MAPServiceSmsProxy (org.mobicents.smsc.slee.resources.persistence.MAPServiceSmsProxy)27 ISDNAddressStringImpl (org.restcomm.protocols.ss7.map.primitives.ISDNAddressStringImpl)26 AddressString (org.restcomm.protocols.ss7.map.api.primitives.AddressString)24 SmscPropertiesManagement (org.mobicents.smsc.domain.SmscPropertiesManagement)23 UUID (java.util.UUID)22 PreparedStatementCollection (org.mobicents.smsc.cassandra.PreparedStatementCollection)21 SmsSetEvent (org.mobicents.smsc.slee.services.smpp.server.events.SmsSetEvent)21 SmsProxy (org.mobicents.smsc.slee.resources.persistence.SmsProxy)20 SM_RP_DA (org.restcomm.protocols.ss7.map.api.service.sms.SM_RP_DA)19 SmsSignalInfo (org.restcomm.protocols.ss7.map.api.service.sms.SmsSignalInfo)19 MAPApplicationContextVersion (org.restcomm.protocols.ss7.map.api.MAPApplicationContextVersion)17 UserData (org.restcomm.protocols.ss7.map.api.smstpdu.UserData)17