sip, engine: the retry of an INVITE refused 422

imsd asks for a session interval of 1800 s in a call's first INVITE. A
422 (Session Interval Too Small) is a server's answer to an interval
below its minimum and carries that minimum in a Min-SE (RFC 4028 6);
TS 24.229 5.1.2A.1.1 has a UE that supports RFC 4028 retry an INVITE so
refused in accordance with RFC 4028 7.4. imsd announces "timer" and
took a 422 for any other refusal: on a reporter's phone on AT&T's
network each of the five calls of one boot ended "INVITE final 422"
(AGENTS.md §13).

The call machine now sends the INVITE again in the same call: a new
transaction under the Call-ID, with the next sequence number, the 422's
Min-SE and a session interval no smaller. AGENTS.md §7.6 has when it
does not, and what becomes of an answer to an INVITE it has replaced.

Tested: the suites, and the daemon of this commit on the workstation
against a stand-in network that answers 422 (the fp6 journal's
2026-12-01-min-se-retry capture, bench/).
This commit is contained in:
Jorijn van der Graaf 2026-12-01 15:51:21 +01:00
commit 0026213073
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
6 changed files with 459 additions and 39 deletions

View file

@ -2957,8 +2957,9 @@ private:
}
// A client flow found dead under an outgoing call whose INVITE has had
// no response and no CANCEL (CallMachine::Unanswered) is reopened once
// per attempt and the INVITE sent again: a flow the network had
// no response and no CANCEL (CallMachine::Unanswered) is reopened, once
// for each INVITE the call sends, and that INVITE sent again: a flow the
// network had
// forgotten is reset at the first bytes sent on it, and those may be a
// call's. No REGISTER goes first: the registration and its SAs stand
// (not where the network has ended the binding: RegRecovery's