Search in sources :

Example 6 with DeliveryReceiptData

use of org.mobicents.smsc.mproc.DeliveryReceiptData in project smscgateway by RestComm.

the class MProcMessageImpl method getDeliveryReceiptData.

@Override
public DeliveryReceiptData getDeliveryReceiptData() {
    if (isDeliveryReceipt()) {
        String msg = sms.getShortMessageText();
        DeliveryReceiptData deliveryReceiptData = MessageUtil.parseDeliveryReceipt(msg, sms.getTlvSet());
        return deliveryReceiptData;
    } else {
        return null;
    }
}
Also used : DeliveryReceiptData(org.mobicents.smsc.mproc.DeliveryReceiptData) ISDNAddressString(org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString)

Aggregations

DeliveryReceiptData (org.mobicents.smsc.mproc.DeliveryReceiptData)6 Tlv (com.cloudhopper.smpp.tlv.Tlv)2 Date (java.util.Date)2 TlvSet (org.restcomm.smpp.parameter.TlvSet)2 Matcher (java.util.regex.Matcher)1 XMLStreamException (javolution.xml.stream.XMLStreamException)1 PersistenceException (org.mobicents.smsc.cassandra.PersistenceException)1 MProcMessage (org.mobicents.smsc.mproc.MProcMessage)1 ISDNAddressString (org.restcomm.protocols.ss7.map.api.primitives.ISDNAddressString)1 DataCodingScheme (org.restcomm.protocols.ss7.map.api.smstpdu.DataCodingScheme)1 DataCodingSchemeImpl (org.restcomm.protocols.ss7.map.smstpdu.DataCodingSchemeImpl)1 Test (org.testng.annotations.Test)1