Module: kamailio
Branch: 5.4
Commit: 46b4cc31bb2cb0a513ddf283db5d0690b0b04f68
URL:
https://github.com/kamailio/kamailio/commit/46b4cc31bb2cb0a513ddf283db5d069…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-08-01T10:43:46+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 91d9441a242da4746171bfa532fa2378328e8d73)
---
Modified: src/modules/pua/send_publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/46b4cc31bb2cb0a513ddf283db5d069…
Patch:
https://github.com/kamailio/kamailio/commit/46b4cc31bb2cb0a513ddf283db5d069…
---
diff --git a/src/modules/pua/send_publish.c b/src/modules/pua/send_publish.c
index e88c342f5c..338ee892b4 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
{