Skip to content

Commit

Permalink
pua: fix send_publish() behavior on PUA_DB_ONLY
Browse files Browse the repository at this point in the history
* dialog PUBLISH was missing SIP-If-Mach
* pua was inserting a new record for every dialog state

fixes #2414
  • Loading branch information
linuxmaniac committed Jul 30, 2020
1 parent 7116c04 commit 91d9441
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/modules/pua/send_publish.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 91d9441

Please sign in to comment.