<p></p>
<p>Sorry <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/juha-h/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/juha-h">@juha-h</a> but I don't get your point.</p>
<p>If a pua_* module execute send_publish() and etag is not set pua has to search anyway for that <code>ua_pres_t</code> 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.</p>
<p>All of that doesn't happen with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/da7f7ef082e28f81893ec06081358a9f88571bcc/hovercard" href="https://github.com/kamailio/kamailio/commit/da7f7ef082e28f81893ec06081358a9f88571bcc"><tt>da7f7ef</tt></a></p>
<p>Every <strong>pua_</strong>* module that uses pua.send_publish() except <strong>pua_rpc</strong> doesn't set etag parameter.</p>
<ul>
<li><strong>pua_bla</strong></li>
<li><strong>pua_dialoginfo</strong></li>
<li><strong>pua_usrloc</strong></li>
<li><strong>pua_xmpp</strong></li>
</ul>
<p>So I don't get what you want to achieve. This was a bug that users reported and I had suffered.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2414#issuecomment-666977383">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ57I3W2QRV2JZYENTR6JW5TANCNFSM4PLSO44A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO55A5IMHZX25OV573R6JW5TA5CNFSM4PLSO44KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE7AUIZY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2414#issuecomment-666977383",
"url": "https://github.com/kamailio/kamailio/issues/2414#issuecomment-666977383",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>