Fix deleted centers not being deleted and do some work on delivery reports

This commit is contained in:
David Majdandžić
2023-04-05 21:18:47 +02:00
parent 6ce89f35be
commit 3447194e99
6 changed files with 91 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
import SmppSession from "../../../SmppSession";
import Preprocessor from "../Preprocessor";
export default class DeliveryReceiptRequestProcessor extends Preprocessor {
private iterator: number = 0;
constructor(type: string) {
super(type);
}
processPdu(session: any, pdu: any, entity?: SmppSession | undefined): Promise<any> {
return new Promise<any>((resolve, reject) => {
if (!!pdu.command && pdu.command === "submit_sm") {
pdu.registered_delivery = 1;
}
});
}
}