SMS over IMS: two status reports for a segment sent twice — the first decides #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/imsd#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SMS over IMS, since 1.2.1 (
SMS_OVER_IMS=1): a segment whose MESSAGE gets no answer is sent once more with the same TP-MR and TP-RD set (TS 23.040 9.2.3.6; AGENTS.md §7.9). A service centre that does not discard the repeat keeps both copies — KPN's did in seven benches of seven — and delivers the text twice.Where the message asked for a status report (TP-SRR, which the repeat carries too), such a service centre can send two SMS-STATUS-REPORTs under the one TP-MR, one for each copy.
StatusReportBookmatches a report by TP-MR and lets the first one that ends the segment decide: a report of the completed class takes the TP-MR off the book, and one in which the service centre has stopped trying forgets the whole message. The report that comes after it is logged asstatus report for TP-MR n to <number>: no message of ours on record.What a user can see: if the first copy's report says the service centre gave up and the second copy is delivered, the message ends as
delivery-failedfor a text the recipient has.delivery-failedis not corrected afterwards. The other orders end right (deliveredonce a copy is delivered first;delivery-pendingchanges nothing), with the second report's journal line the only trace.It takes a repeat (the first attempt's final or submit report lost), a service centre that keeps both copies, status reports over IMS, and two fates for two copies sent to one recipient within about two minutes. No status report has come from KPN over IMS in any capture, so this has not been seen.
What a fix needs:
SmsOutboundknows: the repeat is a MESSAGE of its own under the first attempt's TP-MR), and a TP-MR of such a segment kept after a report in which the service centre has stopped trying, so that a later report of the completed class still finds the message.deliveredafter adelivery-failedchanges §8.4's word order, and that interface is frozen. The alternative — holdingdelivery-faileduntil the second report — never ends where only one copy exists, which is the usual repeat.