[sr-dev] git:master:ad168dd5: presence: additional info in logs

lazedo luis.azedo at factorlusitano.com
Mon Jan 4 11:18:02 CET 2016


Module: kamailio
Branch: master
Commit: ad168dd580d21e1896c21a41b91b7eee5e5e7f8b
URL: https://github.com/kamailio/kamailio/commit/ad168dd580d21e1896c21a41b91b7eee5e5e7f8b

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2016-01-04T05:17:09Z

presence: additional info in logs

adds callid to NOTIFY log
adds log when multiple records are found in process_dialogs

---

Modified: modules/presence/notify.c

---

Diff:  https://github.com/kamailio/kamailio/commit/ad168dd580d21e1896c21a41b91b7eee5e5e7f8b.diff
Patch: https://github.com/kamailio/kamailio/commit/ad168dd580d21e1896c21a41b91b7eee5e5e7f8b.patch

---

diff --git a/modules/presence/notify.c b/modules/presence/notify.c
index f6a0ba9..d92182b 100644
--- a/modules/presence/notify.c
+++ b/modules/presence/notify.c
@@ -1612,11 +1612,12 @@ int send_notify_request(subs_t* subs, subs_t * watcher_subs,
 	}
 
 	LM_GEN1(pres_local_log_level,
-		"NOTIFY %.*s via %.*s on behalf of %.*s for event %.*s\n",
+		"NOTIFY %.*s via %.*s on behalf of %.*s for event %.*s : %.*s\n",
 		td->rem_uri.len, td->rem_uri.s, td->hooks.next_hop->len,
 		td->hooks.next_hop->s,
-		td->loc_uri.len, td->loc_uri.s, subs->event->name.len,
-		subs->event->name.s);
+		td->loc_uri.len, td->loc_uri.s,
+		subs->event->name.len, subs->event->name.s,
+		subs->callid.len, subs->callid.s);
 
 	ps_free_tm_dlg(td);
 	
@@ -2859,7 +2860,13 @@ int process_dialogs(int round, int presence_winfo)
 
 		if (dialog->n > 1)
 		{
-			LM_ERR("multiple records found\n");
+			LM_ERR("multiple records found for %.*s, ci : %.*s, tt : %.*s, ft : %.*s, ev : %.*s\n",
+					sub.pres_uri.len, sub.pres_uri.s,
+					sub.callid.len, sub.callid.s,
+					sub.to_tag.len, sub.to_tag.s,
+					sub.from_tag.len, sub.from_tag.s,
+					ev_sname.len, ev_sname.s
+					);
 			goto delete_dialog;
 		}
 




More information about the sr-dev mailing list