[sr-dev] git:master: modules_k/usrloc: added +sip. instance and reg-id to mi_usrloc_show_contact
admin at sip-router.org
admin at sip-router.org
Mon Dec 10 10:27:50 CET 2012
Module: sip-router
Branch: master
Commit: 4ff67e61e5b94fd5c842cf94b71dd723d41e7bf1
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4ff67e61e5b94fd5c842cf94b71dd723d41e7bf1
Author: Juha Heinanen <jh at tutpro.com>
Committer: Juha Heinanen <jh at tutpro.com>
Date: Mon Dec 10 11:26:25 2012 +0200
modules_k/usrloc: added +sip.instance and reg-id to mi_usrloc_show_contact
---
modules_k/usrloc/ul_mi.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules_k/usrloc/ul_mi.c b/modules_k/usrloc/ul_mi.c
index 66c85ca..076b051 100644
--- a/modules_k/usrloc/ul_mi.c
+++ b/modules_k/usrloc/ul_mi.c
@@ -664,7 +664,9 @@ struct mi_root* mi_usrloc_show_contact(struct mi_root *cmd, void *param)
"methods=0x%X"
"%s%.*s%s" /*received*/
"%s%.*s%s" /*user-agent*/
- "%s%.*s%s", /*path*/
+ "%s%.*s%s" /*path*/
+ "%s%.*s" /*instance*/
+ ";reg-id=%u",
con->c.len, ZSW(con->c.s),
q2str(con->q, 0), (int)(con->expires - act_time),
con->flags, con->cflags,
@@ -676,7 +678,10 @@ struct mi_root* mi_usrloc_show_contact(struct mi_root *cmd, void *param)
con->user_agent.len?";user_agent=<":"",con->user_agent.len,
ZSW(con->user_agent.s), con->user_agent.len?">":"",
con->path.len?";path=<":"", con->path.len,
- ZSW(con->path.s), con->path.len?">":""
+ ZSW(con->path.s), con->path.len?">":"",
+ con->instance.len?";+sip.instance=":"", con->instance.len,
+ ZSW(con->instance.s),
+ con->reg_id
);
if (node==0)
goto error;
More information about the sr-dev
mailing list