Implement longSms processor

This commit is contained in:
David Majdandžić
2023-04-06 20:04:38 +02:00
parent 577bca0c5c
commit 12dd92e980
4 changed files with 85 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ export default class Client extends SmppSession {
}
// Is this expensive...?
let pduCopy = new smpp.PDU(pdu.command, {...pdu});
this.processors.Preprocessor.forEach((processor: PduProcessor) => processor.processPdu(this.session, pduCopy));
this.processors.Preprocessor.forEach((processor: PduProcessor) => processor.processPdu(this.session, pduCopy, this));
this.logger.log5(`Client-${this.id} sending PDU: ${JSON.stringify(pduCopy)}`);
this.doSendPdu(pduCopy, this.session).then((replyPdu: any) => {
resolve(replyPdu);