Skip to content

Commit 42ec263

Browse files
author
Konstantin Podshumok
authored
Merge pull request #33 from pespin/ms_availability_status
consts.py: Add ms_availability_status values
2 parents 43cc6f8 + 2b2b687 commit 42ec263

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

smpplib/consts.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,33 @@
217217
SMPP_UDHIEIE_PORT8 = 0x04
218218
SMPP_UDHIEIE_PORT16 = 0x04
219219

220+
#
221+
# ms_availability_status parameter from alert_notification operation
222+
#
223+
SMPP_MS_AVAILABILITY_STATUS_AVAILABLE = 0x00
224+
SMPP_MS_AVAILABILITY_STATUS_DENIED = 0x01
225+
SMPP_MS_AVAILABILITY_STATUS_UNAVAILABLE = 0x02
226+
227+
#
228+
# registered_delivery parameter used to request an SMSC delivery receipt and/or SME originated acknowledgements
229+
#
230+
#
231+
# SMSC Delivery Receipt (bits 1 and 0):
232+
SMPP_SMSC_DELIVERY_RECEIPT_BITMASK = 0x03
233+
SMPP_SMSC_DELIVERY_RECEIPT_NONE = 0x00 # No SMSC Delivery Receipt requested (default)
234+
SMPP_SMSC_DELIVERY_RECEIPT_BOTH = 0x01 # SMSC Delivery Receipt requested where final delivery outcome is delivery success or failure
235+
SMPP_SMSC_DELIVERY_RECEIPT_FAILURE = 0x02 # SMSC Delivery Receipt requested where the final delivery outcome is delivery failure
236+
#SME originated Acknowledgement (bits 3 and 2):
237+
SMPP_SME_ACK_BITMASK = 0x0C # No recipient SME acknowledgment requested (default)
238+
SMPP_SME_ACK_NONE = 0x00 # No recipient SME acknowledgment requested (default)
239+
SMPP_SME_ACK_DELIVERY = 0x04 # SME Delivery Acknowledgement requested
240+
SMPP_SME_ACK_MANUAL = 0x08 # SME Manual/User Acknowledgment requested
241+
SMPP_SME_ACK_BOTH = 0x0C # Both Delivery and Manual/User Acknowledgment requested
242+
#Intermediate Notification (bit 5):
243+
SMPP_INT_NOTIFICIATION_BITMASK = 0x10
244+
SMPP_INT_NOTIFICIATION_NONE = 0x00 # No Intermediate notification requested (default)
245+
SMPP_INT_NOTIFICIATION_REQUESTED = 0x10 # Intermediate notification requested
246+
220247
#
221248
# SMPP protocol versions
222249
#

0 commit comments

Comments
 (0)