Added more DLR status codes from SMPP 5

This commit is contained in:
2015-05-01 16:37:34 +02:00
parent 1eb2426c20
commit 11056521d9
2 changed files with 22 additions and 2 deletions
+17 -1
View File
@@ -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
View File
@@ -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,