diff --git a/README.md b/README.md index 5f2b4a8..ead2ea0 100644 --- a/README.md +++ b/README.md @@ -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. + */ + }); } }); diff --git a/lib/defs.js b/lib/defs.js index 976ea08..de23919 100644 --- a/lib/defs.js +++ b/lib/defs.js @@ -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,