edgeport - v1.0.3
    Preparing search index...

    Interface SmppDeliverMessage

    An inbound message from the SMSC, yielded by SmppSession.messages.

    A deliver_sm carries either a mobile-originated message (esm_class 0) or an SMSC delivery receipt (esm_class has the ESM_DELIVERY_RECEIPT bit). Check isDeliveryReceipt and use receipt to parse the receipt fields.

    1.0.3

    interface SmppDeliverMessage {
        dataCoding: number;
        destination: string;
        esmClass: number;
        isDeliveryReceipt: boolean;
        payload: Uint8Array;
        sequence: number;
        source: string;
        tlvs: Tlv[];
        receipt(): DeliveryReceipt;
        text(): string;
    }
    Index
    dataCoding: number

    The data_coding the message was delivered with.

    destination: string

    Destination address of the inbound message.

    esmClass: number

    The raw esm_class byte.

    isDeliveryReceipt: boolean

    Whether the esm_class flags this as an SMSC delivery receipt.

    payload: Uint8Array

    The raw message body octets.

    sequence: number

    The sequence_number of the deliver_sm (already acknowledged by the session).

    source: string

    Source address of the inbound message.

    tlvs: Tlv[]

    Any optional parameters (TLVs) carried on the PDU.

    • Decodes the payload as text (UTF-16BE for UCS2, otherwise UTF-8/Latin-1).

      Returns string

      The decoded message body.