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

(cherry picked from commit da7f7ef)
  • Loading branch information
linuxmaniac committed Aug 3, 2020
1 parent f65cfbc commit 7b7602a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/modules/pua/send_publish.c
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 7b7602a

Please sign in to comment.