[sr-dev] git:4.2:f8276f7c: presence: slot and presentity uri printed in log message

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 15 20:21:12 CET 2015


Module: kamailio
Branch: 4.2
Commit: f8276f7c368250fb79d470467cda4fdf20d241cd
URL: https://github.com/kamailio/kamailio/commit/f8276f7c368250fb79d470467cda4fdf20d241cd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/f8276f7c368250fb79d470467cda4fdf20d241cd.diff
Patch: https://github.com/kamailio/kamailio/commit/f8276f7c368250fb79d470467cda4fdf20d241cd.patch

---

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);
 		}




More information about the sr-dev mailing list