Module: kamailio
Branch: 5.2
Commit: 7b7602ac795cdf0f1302cca39b1648f47c8cc7da
URL:
https://github.com/kamailio/kamailio/commit/7b7602ac795cdf0f1302cca39b1648f…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-08-03T09:24:02+02:00
pua: fix send_publish() behavior on PUA_DB_ONLY
* dialog PUBLISH was missing SIP-If-Mach
* pua was inserting a new record for every dialog state
fixes #2414
(cherry picked from commit da7f7ef082e28f81893ec06081358a9f88571bcc)
---
Modified: src/modules/pua/send_publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7b7602ac795cdf0f1302cca39b1648f…
Patch:
https://github.com/kamailio/kamailio/commit/7b7602ac795cdf0f1302cca39b1648f…
---
diff --git a/src/modules/pua/send_publish.c b/src/modules/pua/send_publish.c
index 1c9d8ed12b..fc9af799f8 100644
--- a/src/modules/pua/send_publish.c
+++ b/src/modules/pua/send_publish.c
@@ -516,14 +516,11 @@ int send_publish( publ_info_t* publ )
if (dbmode==PUA_DB_ONLY)
{
- if (publ->etag) {
- memset(&dbpres, 0, sizeof(dbpres));
- dbpres.pres_uri = &pres_uri;
- dbpres.watcher_uri = &watcher_uri;
- dbpres.extra_headers = &extra_headers;
- presentity = get_record_puadb(publ->id, publ->etag,
- &dbpres, &res);
- }
+ memset(&dbpres, 0, sizeof(dbpres));
+ dbpres.pres_uri = &pres_uri;
+ dbpres.watcher_uri = &watcher_uri;
+ dbpres.extra_headers = &extra_headers;
+ presentity = get_record_puadb(publ->id, publ->etag, &dbpres, &res);
}
else
{