Fix issue with esme not replying to enq link

This commit is contained in:
2023-11-09 14:50:46 +01:00
parent e868d02b88
commit 6a803b69f4

View File

@@ -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);