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

Author: lazedo <[email protected]>
Committer: lazedo <[email protected]>
Date: 2016-01-04T10:17:57Z

Merge pull request #458 from kamailio/lazedo/presence_logs

presence: additional info in logs

---

Modified: modules/presence/notify.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/59c1823b71871c4e35550414b7169ee28f50d53a.diff
Patch: 
https://github.com/kamailio/kamailio/commit/59c1823b71871c4e35550414b7169ee28f50d53a.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;
                }
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to