SMS over IMS: a submission can end as failed though the service centre has the text #3

Closed
opened 2026-11-19 11:07:54 +00:00 by jorijnvdgraaf · 1 comment

SMS over IMS, which comes with 1.2.0 (SMS_OVER_IMS=1): SmsOutbound waits 32 s for the final to its MESSAGE (SmsSendTimeout), then 40 s for the submit report (SmsReportTimeout), and ends the message as failed when either wait runs out (AGENTS.md §7.9). The service centre may have accepted the text all the same:

  • The submit report comes later than the 40 s. failed has been posted, and the report is answered 488, because only the Call-ID of the segment in flight is known (OwnsReport). TS 24.341 5.3.1.2 has a report that "corresponds to a short message submitted by the SM-over-IP sender" answered 200, and its NOTE 3 has the sender "store the Call-ID".
  • The final or the report is lost on the way. Nothing is sent again. TS 23.040 9.2.3.6 has the MS "automatically repeat the SMS-SUBMIT" one to three times with the same TP-MR and TP-RD set, so that the service centre can discard a duplicate. The codec has the flag (Submit::rejectDuplicates); nothing sets it.
  • The run loop judges the wait before it reads the client flow. A final that arrived in time and is still unread at that moment fails the message.

What a user sees: failed for a text the recipient gets. failed is a message's last word (§8.4), so nothing corrects it, and a user who sends the text again delivers it twice: the second submission has a new TP-MR, and the service centre cannot tell that it is a repeat.

On KPN the benched submissions were accepted within a second or two. It takes a slow or lossy path to meet this.

What a fix needs:

  • 9.2.3.6's repeat, with the same TP-MR and TP-RD set, before the message is given up as failed.
  • The Call-IDs of recent submissions kept, so that a late report is answered 200 and logged, as 5.3.1.2 has it.
  • The client flow read once, without waiting, before the wait is judged.
  • tests/Engine for each, and §7.9. If a late report is to change what the bus has been told, §8.4's word order changes with it, and that interface is frozen.
SMS over IMS, which comes with 1.2.0 (`SMS_OVER_IMS=1`): `SmsOutbound` waits 32 s for the final to its MESSAGE (`SmsSendTimeout`), then 40 s for the submit report (`SmsReportTimeout`), and ends the message as `failed` when either wait runs out (AGENTS.md §7.9). The service centre may have accepted the text all the same: - The submit report comes later than the 40 s. `failed` has been posted, and the report is answered 488, because only the Call-ID of the segment in flight is known (`OwnsReport`). TS 24.341 5.3.1.2 has a report that "corresponds to a short message submitted by the SM-over-IP sender" answered 200, and its NOTE 3 has the sender "store the Call-ID". - The final or the report is lost on the way. Nothing is sent again. TS 23.040 9.2.3.6 has the MS "automatically repeat the SMS-SUBMIT" one to three times with the same TP-MR and TP-RD set, so that the service centre can discard a duplicate. The codec has the flag (`Submit::rejectDuplicates`); nothing sets it. - The run loop judges the wait before it reads the client flow. A final that arrived in time and is still unread at that moment fails the message. What a user sees: `failed` for a text the recipient gets. `failed` is a message's last word (§8.4), so nothing corrects it, and a user who sends the text again delivers it twice: the second submission has a new TP-MR, and the service centre cannot tell that it is a repeat. On KPN the benched submissions were accepted within a second or two. It takes a slow or lossy path to meet this. What a fix needs: - 9.2.3.6's repeat, with the same TP-MR and TP-RD set, before the message is given up as `failed`. - The Call-IDs of recent submissions kept, so that a late report is answered 200 and logged, as 5.3.1.2 has it. - The client flow read once, without waiting, before the wait is judged. - tests/Engine for each, and §7.9. If a late report is to change what the bus has been told, §8.4's word order changes with it, and that interface is frozen.
Author
Owner

Fixed in 1.2.1, each of the three cases: a submit report for a MESSAGE no longer in flight is answered 200 while its Call-ID is on record, which is an hour (ef04b47); a segment that gets no answer, or an RP-ERROR with cause 41, is sent once more with the same TP-MR and TP-RD set before the message fails (23892e8); and what the client flow already holds is read before a wait is judged (1fa4d77). What the repeat leaves open is its own issue: #6.

Fixed in 1.2.1, each of the three cases: a submit report for a MESSAGE no longer in flight is answered 200 while its Call-ID is on record, which is an hour (ef04b47); a segment that gets no answer, or an RP-ERROR with cause 41, is sent once more with the same TP-MR and TP-RD set before the message fails (23892e8); and what the client flow already holds is read before a wait is judged (1fa4d77). What the repeat leaves open is its own issue: #6.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/imsd#3
No description provided.