From 6a803b69f4cc40a8fceca4aeb530dd95935cc1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Thu, 9 Nov 2023 14:50:46 +0100 Subject: [PATCH] Fix issue with esme not replying to enq link --- client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.js b/client.js index b26278f..bc47302 100644 --- a/client.js +++ b/client.js @@ -102,11 +102,15 @@ for (let i = 0; i < options.sessions; i++) { `Successfully bound, sending ${options.messagecount} messages '${options.source}'->'${options.destination}' ('${options.message}')` ); startInterval(session, sessionLogger); + // TODO: Add error message for invalid systemid and password session.on("deliver_sm", function (pdu) { sessionLogger.info("Got deliver_sm, replying..."); session.send(pdu.response()); }); + session.on("enquire_link", function (pdu) { + session.send(pdu.response()); + }); session.on("close", function () { sessionLogger.error(`Session closed`); process.exit(1);