Are v5.4 and v5.5 concerned too ?
In my testing, all versions higher than 5.6.5 inclusive are affected. The first to work for me was `5.8.1~bpo11.20240319013115.16` although I couldn't test `5.8.0 GA` due to https://github.com/kamailio/kamailio/issues/3785
I don't remember seeing this particular issue with `5.4.x` or `5.5.x` but bear in mind that topos has been introducing failures with early-dialog transactions (or even in-dialog transactions sometimes) in several kamailio releases, depending on how one uses it. `5.6.4` is the latest version which I can confirm works for my use case in every way (I only use it for INVITE-initiated dialogs, however, SUBSCRIBE-initiated dialogs are skipped when it comes to topology stripping). `5.8.1-nightly` works too, but I haven't tested it extensively, I only investigated the issue described here with this version.