imsd/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf c88de31a0a
sms: the short message codecs of TS 23.038, 23.040 and 24.011, and EF_SMSP
SMS over IP (TS 24.341) carries the bytes a 2G/3G phone puts in an
RP-DATA inside a SIP MESSAGE body of type application/vnd.3gpp.sms, so
imsd needs the whole stack below SIP once it owns SMS on a carrier whose
modem IMS is off: the GSM 7-bit default alphabet with its extension table
and the septet packing, UCS-2 for everything else (TS 23.038); SMS-SUBMIT
built per segment with the concatenation header, SMS-DELIVER,
SMS-STATUS-REPORT and SMS-SUBMIT-REPORT parsed, the SMS-DELIVER-REPORT
that acknowledges a delivery, the user-data header and the reassembly of
a concatenated message (TS 23.040); RP-DATA, RP-ACK and RP-ERROR in both
directions with their causes (TS 24.011); and EF_SMSP, where the (U)SIM
names the service centre the RP-DATA is addressed to (TS 31.102 4.2.27,
the KPN SIM's record read on the dev phone on 2026-10-16: +31653131313).

A new partition, Imsd:Sms, pure std with no SIP, clock or I/O; tests/Sms
checks it against the classic
public PDU vectors ("hellohello", the "How are you?" SMS-DELIVER) and
vectors cross-generated by an independent Python reference.

A concatenated set with one alphabet throughout is decoded from its
segments' joined units — the septets, or the UTF-16BE octets — not from
the segments' texts, so a surrogate pair or an escape pair a sender cut
at a segment boundary comes out whole; a U+0000 in UCS-2 decodes as
U+FFFD, since no text means it and a D-Bus string cannot carry it.

A status report's TP-ST is read as TS 23.040 9.2.3.15 has the MS read it:
a reserved value, any with bit 7 set among them, as "Service Rejected" —
a temporary error after which the SC is not making any more transfer
attempts (StatusAsRead, pinned over all 256 values; StatusText has the
clause's four classes in words). Three more readings follow their
clauses the same way, each pinned: a time stamp semi-octet that is no
digit reads as 0 (9.2.3.11); `1111` before an address's last semi-octet
is skipped, not taken for its end (9.1.2.3); an SMS-SUBMIT-REPORT for
RP-ERROR with an unused bit of its first octet set gives TP-FCS 0xFF,
unspecified, with nothing else examined (9.2.2.2a).
2026-11-19 16:43:15 +01:00
..
Aka imsd 0.2.7 — initial public snapshot 2026-07-22 23:04:21 +02:00
Engine sdp, engine, imsd, media: the far end's telephone-event packets are played as the tones they stand for 2026-10-16 22:25:49 +02:00
Ipsec ipsec, engine, imsd: the state file records the P-CSCF and a resume follows the kernel's SA peer 2026-10-13 22:28:02 +02:00
Messages engine, messages, util, imsd: the reregistration carries the last challenge answer and new SA parameters 2026-10-10 21:43:07 +02:00
Qmi qmi, imsd-pcscf: read the ims PDN's P-CSCF list from the modem's runtime settings 2026-10-13 22:28:02 +02:00
Sdp sdp, engine, imsd, media: the far end's telephone-event packets are played as the tones they stand for 2026-10-16 22:25:49 +02:00
Sip engine: keep the reg-event subscription alive and act on a terminated binding 2026-10-06 14:01:33 +02:00
Sms sms: the short message codecs of TS 23.038, 23.040 and 24.011, and EF_SMSP 2026-11-19 16:43:15 +01:00
Util util: canonical IPv6 text (RFC 5952 §4) and an address-list parser 2026-10-13 22:28:02 +02:00