Enforce bind direction, cap segments per message and pin the README examples

This commit is contained in:
2026-08-27 14:07:42 +02:00
parent 8d245c82c4
commit 366fa26b1c
14 changed files with 568 additions and 31 deletions
+10
View File
@@ -48,6 +48,16 @@ export class IncomingRequests {
async handle(pduObj: PduObject): Promise<void> {
if (this.onRequest && await this.onRequest(this.session, pduObj)) return;
if (!this.session.bindAllows(pduObj.cmdName)) {
this.log.info('session - command the peer\'s bind direction does not carry', {
bindType: this.session.boundAs ?? '',
cmdName: pduObj.cmdName,
});
await this.session.sendReturn(pduObj, 'ESME_RINVBNDSTS');
return;
}
switch (pduObj.cmdName) {
case 'deliver_sm':
await this.onDeliverSm(pduObj);