Review at  https://gerrit.osmocom.org/3513

add delivery receipt definitions

The registered_delivery field in SMPP message is a toggle on/off, this
patch adds two new definition so we don't have to use magic numbers from
the code.

Change-Id: I5b3afff1b3b77cccd949e0606914c7ac3ba6114c
---
M src/smpp34.h
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libsmpp34 refs/changes/13/3513/1

diff --git a/src/smpp34.h b/src/smpp34.h
index 9d51a4a..b66d47f 100644
--- a/src/smpp34.h
+++ b/src/smpp34.h
@@ -212,4 +212,8 @@
 #define SMPP34_UDHI_IND                        0x40
 #define SMPP34_REPLY_PATH              0x80
 
+/* Sect. 5.2.17 registered_delivery. */
+#define SMPP34_DELIVERY_RECEIPT_OFF    0x00
+#define SMPP34_DELIVERY_RECEIPT_ON     0x01
+
 #endif

-- 
To view, visit https://gerrit.osmocom.org/3513
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b3afff1b3b77cccd949e0606914c7ac3ba6114c
Gerrit-PatchSet: 1
Gerrit-Project: libsmpp34
Gerrit-Branch: master
Gerrit-Owner: Pablo Neira Ayuso <[email protected]>

Reply via email to