Module: sip-router
Branch: master
Commit: c454e4b0129695c7647f6af8e42a38d785d58a7d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c454e4b…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu May 2 16:56:45 2013 +0200
Fix ul.dump q output value
---
modules/usrloc/ul_rpc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/usrloc/ul_rpc.c b/modules/usrloc/ul_rpc.c
index d737a93..f21bbbf 100644
--- a/modules/usrloc/ul_rpc.c
+++ b/modules/usrloc/ul_rpc.c
@@ -107,7 +107,7 @@ int rpc_dump_contact(rpc_t* rpc, void* ctx, void *ih, ucontact_t* c)
socket_str.s = c->sock->sock_str.s;
socket_str.len = c->sock->sock_str.len;
}
- if(rpc->struct_add(vh, "f", "Q", c->q)<0)
+ if(rpc->struct_add(vh, "f", "Q", q2double(c->q))<0)
{
rpc->fault(ctx, 500, "Internal error adding q");
return -1;