aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2017-08-11 13:09:28 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2017-08-11 13:51:04 +0200
commitc283d8431c5c145db1e5a327f9ccea412097c179 (patch)
tree13a4f37c9f10c664cb6fef2bf8778345176ef869
parent9b3cefca217759b52ac1dc5254a0b574229c2be5 (diff)
add esm_class definitions
Add special message attributes definitions that are associated with the short message. Thus, we can get rid of magic numbers in our codebase. Change-Id: I91afd8b462b8fd3b2c4c5b54f4eeb7ec5b730b65
-rw-r--r--src/smpp34.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/smpp34.h b/src/smpp34.h
index 5fb6395..9d51a4a 100644
--- a/src/smpp34.h
+++ b/src/smpp34.h
@@ -204,4 +204,12 @@
#define TLVID_its_reply_type 0x1380 /* CDMA */
#define TLVID_its_session_info 0x1383 /* CDMA */
+/* As defined by SMPP 3.4, Sect. 5.2.12 Parameter Definition esm_class. */
+#define SMPP34_DATAGRAM_MODE 0x01
+#define SMPP34_MSG_MODE_MASK 0x03
+#define SMPP34_DELIVERY_RECEIPT 0x04
+#define SMPP34_DELIVERY_ACK 0x08
+#define SMPP34_UDHI_IND 0x40
+#define SMPP34_REPLY_PATH 0x80
+
#endif