Files
smsgw-tester/src/PDUProcessor/Preprocessor/Client/GSM0338Preprocessor.ts
PhatPhuckDave 4a5aa484ba Update
2024-07-22 19:52:53 +02:00

18 lines
552 B
TypeScript

import {PDU} from "../../../CommonObjects";
import SmppSession from "../../../SmppSession";
import Preprocessor from "../Preprocessor";
export default class GSM0338Preprocessor extends Preprocessor {
applicableCommands: string[] = ['submit_sm', 'deliver_sm'];
constructor(type: string) {
super(type);
}
protected doProcess(session: any, pdu: PDU, entity?: SmppSession | undefined): Promise<any> {
return new Promise<any>((resolve, reject) => {
pdu.data_coding = 0xf6;
});
}
}