Fix issue with esme not replying to enq link
This commit is contained in:
@@ -102,11 +102,15 @@ for (let i = 0; i < options.sessions; i++) {
|
|||||||
`Successfully bound, sending ${options.messagecount} messages '${options.source}'->'${options.destination}' ('${options.message}')`
|
`Successfully bound, sending ${options.messagecount} messages '${options.source}'->'${options.destination}' ('${options.message}')`
|
||||||
);
|
);
|
||||||
startInterval(session, sessionLogger);
|
startInterval(session, sessionLogger);
|
||||||
|
// TODO: Add error message for invalid systemid and password
|
||||||
|
|
||||||
session.on("deliver_sm", function (pdu) {
|
session.on("deliver_sm", function (pdu) {
|
||||||
sessionLogger.info("Got deliver_sm, replying...");
|
sessionLogger.info("Got deliver_sm, replying...");
|
||||||
session.send(pdu.response());
|
session.send(pdu.response());
|
||||||
});
|
});
|
||||||
|
session.on("enquire_link", function (pdu) {
|
||||||
|
session.send(pdu.response());
|
||||||
|
});
|
||||||
session.on("close", function () {
|
session.on("close", function () {
|
||||||
sessionLogger.error(`Session closed`);
|
sessionLogger.error(`Session closed`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
Reference in New Issue
Block a user