messages, engine: the INVITE's sequence number, session interval and Min-SE are the dialog's

BuildInvite wrote "CSeq: 1 INVITE", "Session-Expires:
1800;refresher=uac" and "Min-SE: 90" as fixed text, and the INVITE's
CANCEL, its two ACKs and a PRACK's RAck wrote the 1 again. The three
values are fields of the Dialog now, with those defaults, and nothing
in the daemon sets them otherwise yet: every message it sends is byte
for byte what it was.

Tested: the suites (tests/Messages has an INVITE, its CANCEL and its
ACKs for a dialog with other values).
This commit is contained in:
Jorijn van der Graaf 2026-12-01 15:51:21 +01:00
commit 3d702ec1f1
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
4 changed files with 37 additions and 12 deletions

View file

@ -617,7 +617,7 @@ export namespace imsd::engine {
if (rseq && require.contains("100rel") && !pracked_.contains(std::string(*rseq))) {
pracked_.insert(std::string(*rseq));
std::array<std::string, 1> extra = {
std::format("RAck: {} 1 INVITE", *rseq)};
std::format("RAck: {} {} INVITE", *rseq, d_.invCseq)};
a.push_back(Send(imsd::msg::BuildInDialog(ctx_, d_, "PRACK", nextCseq_, rng_.Token(20), extra)));
nextCseq_++;
}