mirror of https://github.com/sipwise/kamailio.git
Change-Id: I2f64d873f7cd50b5dc6a74ffe5507e3a31cc3991changes/28/42228/3
parent
a7743a9620
commit
bd1cdb663d
@ -0,0 +1,36 @@
|
||||
From: Victor Seva <vseva@sipwise.com>
|
||||
Date: Thu, 30 Jul 2020 11:11:52 +0200
|
||||
Subject: 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
|
||||
---
|
||||
src/modules/pua/send_publish.c | 13 +++++--------
|
||||
1 file changed, 5 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/modules/pua/send_publish.c b/src/modules/pua/send_publish.c
|
||||
index 1c9d8ed..fc9af79 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
|
||||
{
|
||||
Loading…
Reference in new issue