Module: kamailio
Branch: 4.2
Commit: f8276f7c368250fb79d470467cda4fdf20d241cd
URL:
https://github.com/kamailio/kamailio/commit/f8276f7c368250fb79d470467cda4fd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-01-15T20:10:45+01:00
presence: slot and presentity uri printed in log message
- useful for understanding while deleting subscription from memory fails
to find the item
(cherry picked from commit 8006c3a2637342c21837e5332d3eeb75bb9bf7de)
---
Modified: modules/presence/subscribe.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f8276f7c368250fb79d470467cda4fd…
Patch:
https://github.com/kamailio/kamailio/commit/f8276f7c368250fb79d470467cda4fd…
---
diff --git a/modules/presence/subscribe.c b/modules/presence/subscribe.c
index 172372d..334dc32 100644
--- a/modules/presence/subscribe.c
+++ b/modules/presence/subscribe.c
@@ -470,7 +470,9 @@ void delete_subs(str* pres_uri, str* ev_name, str* to_tag,
unsigned int hash_code= core_hash(pres_uri, ev_name, shtable_size);
if(delete_shtable(subs_htable, hash_code, &subs) < 0) {
LM_ERR("Failed to delete subscription from memory"
- " [%.*s : %.*s / %.*s / %.*s]\n", ev_name->len, ev_name->s,
+ " [slot: %u ev: %.*s pu: %.*s ci: %.*s ft: %.*s tt: %.*s]\n",
+ hash_code, pres_uri->len, pres_uri->s,
+ ev_name->len, ev_name->s,
callid->len, callid->s, from_tag->len, from_tag->s,
to_tag->len, to_tag->s);
}