imsd: the Messaging GetStatus carries the subscriber's own number
The subscriber's own number was in the frozen interface's GetStatus and not in the Messaging one, so a consumer that wanted it beside the Messaging status needed a second call, and two calls can disagree: the second can fail alone, and the status can change between them. Both GetStatus methods take the number from the daemon's one status snapshot as it then is, and within a run the number is never cleared. So one answer can carry it: the Messaging GetStatus gives `ppi` beside `smsc` and `registered`, as the frozen interface gives it but made valid UTF-8 as `to` is, so a consumer reads the status in one call and never lacks a number the frozen status gives. Tested: the suites as before (the key is a line in the method's reply; the frozen interface's `ppi` is unchanged).
This commit is contained in:
parent
04c615fc15
commit
c434c8e84d
3 changed files with 3 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ gain a key.
|
|||
| Member | Signature |
|
||||
|---|---|
|
||||
| `Send(number, text, options)` | `ssa{sv} → s` (id); options: `status-report` (b, ask the SC to report delivery). Refused with `NotSupported` while SMS over IMS is off |
|
||||
| `GetStatus()` | `→ a{sv}`: `enabled` (b), `smsc` (s), `registered` (b), `subscribers` (u) |
|
||||
| `GetStatus()` | `→ a{sv}`: `enabled` (b), `smsc` (s), `ppi` (s, the own number in the daemon's last status, e.g. `tel:+31612345678`), `registered` (b), `subscribers` (u) |
|
||||
| `Subscribe()` | `→` nothing: the calling connection receives `Received` and `StateChanged` from now on (unicast, never broadcast: to subscribers, and a submission's `sent` / `failed` also to its `Send` caller); subscribe again when imsd's name reappears on the bus |
|
||||
| `List()` | `→ a(sa{sv})`: the stored messages it can read, by the arrival second on the phone's wall clock, then within a run the sequence number (a 1970 clock before the first time sync sorts first; the SC's `timestamp` is the real chronology), each the id and the dictionary `Received` carries |
|
||||
| `Delete(id)` | `s`: removes a stored message |
|
||||
|
|
|
|||
Loading…
Reference in a new issue