User Guide
SMS Gateway incoming message CFEvent structure 1043
SMS Gateway incoming message CFEvent structure
The SMS gateway puts the following information in a CFEvent instance that it sends to the CFC
listener method:
Field Value
OriginatorID Contents of the PDU
source_addr field, the address of the device that sent
the message.
CfcMethod Listener CFC method name. Value of the configuration file
cfc-method
entry, or
onIncomingMessage if the configuration file does not have this
entry.
Data.MESSAGE Contents of the
short_message field of the PDU.
Data.sourceAddress The address of the device that sent this message.
Data.destAddress The address to which the message was sent; an address in the range
specified by the gateway configuration file
address-range setting.
Data.esmClass Contents of the PDU esm_class field. Identifies the message type. A
number in the range 0-255 representing a Byte value, where bits 2-5 (0-
indexed) indicate the message type, and therefore the contents of the
data.MESSAGE field, as follows. (Reserved values are omitted.)
xx0000xx Normal message
xx0001xx SMSC delivery receipt
xx0010xx SME Delivery Acknowledgement
xx0100xx SME Manual/User Acknowledgement
xx0110xx Conversation abort (Korean CDMA only)
xx1000xx Intermediate Delivery Notification
For more information on this field, see the SMPP specification.
Data.protocol Contents of the PDU protocol_id field. Meaningful for messages sent from
GSM networks only. For more information, see the GSM 03.40
specification.
Data.priority Contents of the PDU priority_flag field. A message priority level set by the
originating SME, in the range 0-3; 0 is the lowest priority and 3 is the
highest priority. The specific priority level meaning depends on the
originating network. For more details, see the SMPP specification.
Data.registeredDelivery Contents of the PDU registered_delivery field, indicating the type of
delivery receipt or acknowledgement that the sender requested. A number
in the range 0-32, representing the sum of the following values:
0 No SMS delivery receipt requested or
1 SMSC delivery receipt requested on delivery success or failure or
2 SMSC delivery receipt requested on delivery failure only
Plus
0 No SME acknowledgement requested or
4 SME Delivery Acknowledgement requested or
8 SME Manual/User Acknowledgement requested or
12 Both Delivery and Manual/User Acknowledgements requested
Plus
0 No Intermediate notification requested or
16 Intermediate notification requested