ERROR: topos [tps_storage.c:1407]: tps_db_load_dialog(): invalid dlg uuid provided ,This error was noticed before the last commit [[9769806](https://github.com/kamailio/kamailio/commit/9769806b96148a2ede4612605c6d4af0...)]. After this update it was fine. I have tested with more than 135000 active registrations and many failures.
I'm also getting this with your latest commit. Do you have a bare minimum config that works for you, so I can verify?
Also, I've tested with contact_mode=1 too, but for an INVITE, topos adds a `tps=btpsh-xxxx`, do you do this manually?