Added event for login as well as original dlr pdus in the response callback

This commit is contained in:
2015-06-16 21:46:15 +02:00
parent d7b54b6dde
commit 6884c72346
4 changed files with 8 additions and 3 deletions
+4 -2
View File
@@ -692,7 +692,7 @@ function splitMsg(msg) {
* This must be called from an sms object context
*
* @param str status - see list at defs.consts.MESSAGE_STATE - defaults to 'DELIVERED'
* @param func callback(err, retPdu)
* @param func callback(err, retPdu, dlrPduObj)
*/
function smsDlr(status, callback) {
var shortMessage,
@@ -767,7 +767,9 @@ function smsDlr(status, callback) {
}
};
sms.session.send(dlrPduObj, false, callback);
sms.session.send(dlrPduObj, false, function(err, retPdu) {
callback(err, retPdu, dlrPduObj);
});
}
// Expose some functions