Search in sources :

Example 26 with Sms

use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.

the class PostArrivalProcessorImpl method updateEsmClass_UDHIndicatorAbsent.

@Override
public void updateEsmClass_UDHIndicatorAbsent(MProcMessage message) {
    MProcMessageImpl msg = (MProcMessageImpl) message;
    Sms sms = msg.getSmsContent();
    sms.setEsmClass(MProcUtility.setEsmClass_UDHIndicatorAbsent(sms.getEsmClass()));
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 27 with Sms

use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.

the class PostArrivalProcessorImpl method updateEsmClass_UDHIndicatorPresent.

@Override
public void updateEsmClass_UDHIndicatorPresent(MProcMessage message) {
    MProcMessageImpl msg = (MProcMessageImpl) message;
    Sms sms = msg.getSmsContent();
    sms.setEsmClass(MProcUtility.setEsmClass_UDHIndicatorPresent(sms.getEsmClass()));
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 28 with Sms

use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.

the class PostArrivalProcessorImpl method updateMessageDestAddrNpi.

@Override
public void updateMessageDestAddrNpi(MProcMessage message, int newDestNpi) throws MProcRuleException {
    MProcUtility.checkDestAddrNpi(newDestNpi);
    MProcMessageImpl msg = (MProcMessageImpl) message;
    Sms sms = msg.getSmsContent();
    sms.getSmsSet().setDestAddrNpi(newDestNpi);
    sms.getSmsSet().setCorrelationId(null);
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 29 with Sms

use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.

the class PostArrivalProcessorImpl method updateEsmClass_ModeTransaction.

@Override
public void updateEsmClass_ModeTransaction(MProcMessage message) {
    MProcMessageImpl msg = (MProcMessageImpl) message;
    Sms sms = msg.getSmsContent();
    sms.setEsmClass(MProcUtility.setEsmClass_ModeTransaction(sms.getEsmClass()));
}
Also used : Sms(org.mobicents.smsc.library.Sms)

Example 30 with Sms

use of org.mobicents.smsc.library.Sms in project smscgateway by RestComm.

the class PostArrivalProcessorImpl method updateEsmClass_ModeDatagram.

@Override
public void updateEsmClass_ModeDatagram(MProcMessage message) {
    MProcMessageImpl msg = (MProcMessageImpl) message;
    Sms sms = msg.getSmsContent();
    sms.setEsmClass(MProcUtility.setEsmClass_ModeDatagram(sms.getEsmClass()));
}
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