Module: kamailio
Branch: master
Commit: 3b206c864126a75a00c2c6abe4afed766d278b04
URL:
https://github.com/kamailio/kamailio/commit/3b206c864126a75a00c2c6abe4afed7…
Author: Phil Lavin <phil.lavin(a)synety.com>
Committer: Phil Lavin <phil.lavin(a)synety.com>
Date: 2016-07-27T11:25:40+01:00
presence: log when presentity is deleted due to already existing
---
Modified: modules/presence/presentity.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3b206c864126a75a00c2c6abe4afed7…
Patch:
https://github.com/kamailio/kamailio/commit/3b206c864126a75a00c2c6abe4afed7…
---
diff --git a/modules/presence/presentity.c b/modules/presence/presentity.c
index 33947dc..bed8f02 100644
--- a/modules/presence/presentity.c
+++ b/modules/presence/presentity.c
@@ -383,6 +383,8 @@ int delete_presentity_if_dialog_id_exists(presentity_t* presentity,
char* dialog
old_presentity.event = presentity->event;
old_presentity.etag = tmp_db_etag;
+ LM_WARN("Presentity already exists - deleting it\n");
+
delete_presentity(&old_presentity);
pa_dbf.free_result(pa_db, result);