Sorry @juha-h but I don't get your point.
If a pua_* module execute send_publish() and etag is not set pua has to search anyway for that ``ua_pres_t`` in the db. So it would be updated. If not, we are getting a record for every state, SIP-If-Match in later PUBLISH of the same dialog is missing and only the last record gets removed when the dialog is finished.
All of that doesn't happen with https://github.com/kamailio/kamailio/commit/da7f7ef082e28f81893ec06081358a9f...
Every **pua_*** module that uses pua.send_publish() except **pua_rpc** doesn't set etag parameter. * **pua_bla** * **pua_dialoginfo** * **pua_usrloc** * **pua_xmpp**
So I don't get what you want to achieve. This was a bug that users reported and I had suffered.