Added more DLR status codes from SMPP 5
This commit is contained in:
@@ -120,7 +120,23 @@ Example code below:
|
||||
if (sms.dlr === true) {
|
||||
serverSession.sendDlr({
|
||||
'smsId': 450,
|
||||
'status': 0 // 0 == no error, 1 == error. No other values are allowed
|
||||
'status': 2
|
||||
|
||||
/*
|
||||
* All available dlr status codes:
|
||||
*
|
||||
* 0 SCHEDULED The message is scheduled for later sending.
|
||||
* 1 ENROUTE The message is enroute.
|
||||
* 2 DELIVERED The message was successfully delivered.
|
||||
* 3 EXPIRED The SMSC was unable to deliver the message in a specified amount of time.For instance when the phone was turned off.
|
||||
* 4 DELETED The message was deleted.
|
||||
* 5 UNDELIVERABLE The SMS was unable to deliver the message.For instance, when the number does not exist.
|
||||
* 6 ACCEPTED The SMS was accepted and will be send.
|
||||
* 7 UNKNOWN Unknown error occured.
|
||||
* 8 REJECTED The message was rejected.The provider could have blocked phonenumbers in this range.
|
||||
* 9 SKIPPED The message was skipped.
|
||||
*/
|
||||
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
+5
-1
@@ -47,7 +47,11 @@ consts = {
|
||||
DELIVERED: 2,
|
||||
EXPIRED: 3,
|
||||
DELETED: 4,
|
||||
UNDELIVERABLE: 5
|
||||
UNDELIVERABLE: 5,
|
||||
ACCEPTED: 6,
|
||||
UNKNOWN: 7,
|
||||
REJECTED: 8,
|
||||
SKIPPED: 9
|
||||
},
|
||||
TON: {
|
||||
UNKNOWN: 0x00,
|
||||
|
||||
Reference in New Issue
Block a user