Implement deliverSmReply

This commit is contained in:
David Majdandžić
2023-04-04 10:13:21 +02:00
parent c498f6cfb7
commit 3acb1f0889
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import {Client} from "../../Client/Client";
import {PDU} from "../../CommonObjects";
import {PduProcessor} from "../PduProcessor";
export class DeliverSmReplyProcessor extends PduProcessor {
serverSessionType: string = Client.name;
processPdu(session: any, pdu: PDU, ...args: any[]): Promise<any> {
return new Promise<any>((resolve, reject) => {
if (!!pdu.command && pdu.command === 'deliver_sm') {
// @ts-ignore
session.send(pdu.response());
}
});
}
}