Module: sip-router
Branch: master
Commit: 660b0cf139c0e2e9279838154354f78d7e51c6d4
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=660b0cf…
Author: Jason Penton <jason.penton(a)gmail.com>
Committer: Jason Penton <jason.penton(a)gmail.com>
Date: Thu Mar 13 10:47:26 2014 +0200
modules/ims_usrloc_pcscf: more debug logging...
---
modules/ims_usrloc_pcscf/pcontact.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/modules/ims_usrloc_pcscf/pcontact.c b/modules/ims_usrloc_pcscf/pcontact.c
index e5acdfc..5bd8766 100644
--- a/modules/ims_usrloc_pcscf/pcontact.c
+++ b/modules/ims_usrloc_pcscf/pcontact.c
@@ -244,7 +244,19 @@ void free_pcontact(pcontact_t* _c) {
static inline void nodb_timer(pcontact_t* _c)
{
- LM_DBG("Running nodb timer on <%.*s> which has expires %d and expires in %d
seconds\n", _c->aor.len, _c->aor.s, (int)_c->expires, (int)(_c->expires -
time(NULL)));
+ LM_DBG("Running nodb timer on <%.*s>, "
+ "Reg state: %s, "
+ "Expires: %d, "
+ "Expires in: %d seconds, "
+ "Received: %.*s:%d, "
+ "Proto: %d\n",
+ _c->aor.len, _c->aor.s,
+ reg_state_to_string(_c->reg_state),
+ (int)_c->expires,
+ (int)(_c->expires - time(NULL)),
+ _c->received_host.len, _c->received_host.s,
+ _c->received_port,
+ _c->received_proto);
get_act_time();
if ((_c->expires - act_time) <= -10) {//we've allowed some grace time TODO:
add as parameter