Derive the notation names from one table and refuse an smsIdFormat that is not the pair

This commit is contained in:
2026-08-30 22:45:02 +02:00
parent 8e5b9bb556
commit 696e018b77
12 changed files with 111 additions and 56 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ export class Session extends EventEmitter<SessionEvents> {
maxReassembly: options.maxReassembly,
onRequest: options.onRequest,
reassemblyTimeout: options.reassemblyTimeout,
receiptIdFormat: options.smsIdFormat?.receipt,
receiptIdNotation: options.smsIdFormat?.receipt,
session: this,
systemId: options.systemId,
});
@@ -210,7 +210,7 @@ export class Session extends EventEmitter<SessionEvents> {
const sent = await submitSms({
log: this.log,
reference: this.nextConcatReference(),
respIdFormat: this.options.smsIdFormat?.submitResp,
respIdNotation: this.options.smsIdFormat?.submitResp,
send: input => this.send(input, options),
}, sms);