Module: kamailio
Branch: master
Commit: 91d9441a242da4746171bfa532fa2378328e8d73
URL:
https://github.com/kamailio/kamailio/commit/91d9441a242da4746171bfa532fa237…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-07-30T15:37:52+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
---
Modified: src/modules/pua/send_publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/91d9441a242da4746171bfa532fa237…
Patch:
https://github.com/kamailio/kamailio/commit/91d9441a242da4746171bfa532fa237…
---
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
{