Module: sip-router
Branch: master
Commit: 068e6e5903801ca7cb7d1ca304d35bca70a34b58
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=068e6e5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Mar 4 19:56:54 2013 +0100
usrloc: added missing state from AoR contact dump
---
modules/usrloc/ul_mi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/usrloc/ul_mi.c b/modules/usrloc/ul_mi.c
index 076b051..3f88a71 100644
--- a/modules/usrloc/ul_mi.c
+++ b/modules/usrloc/ul_mi.c
@@ -660,7 +660,7 @@ struct mi_root* mi_usrloc_show_contact(struct mi_root *cmd, void
*param)
}
node = addf_mi_node_child( rpl, 0, "Contact", 7,
- "<%.*s>;q=%s;expires=%d;flags=0x%X;cflags=0x%X;socket=<%.*s>;"
+ "<%.*s>;q=%s;expires=%d;flags=0x%X;cflags=0x%X;state=%d;socket=<%.*s>;"
"methods=0x%X"
"%s%.*s%s" /*received*/
"%s%.*s%s" /*user-agent*/
@@ -669,7 +669,7 @@ struct mi_root* mi_usrloc_show_contact(struct mi_root *cmd, void
*param)
";reg-id=%u",
con->c.len, ZSW(con->c.s),
q2str(con->q, 0), (int)(con->expires - act_time),
- con->flags, con->cflags,
+ con->flags, con->cflags, con->state,
con->sock?con->sock->sock_str.len:3,
con->sock?con->sock->sock_str.s:"NULL",
con->methods,