Module: sip-router
Branch: master
Commit: 735f83d6346c97d6f7b1da26a2fee1b6270872b1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=735f83d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Apr 24 13:36:08 2013 +0200
registrar: added debug message to print generated ruid for contact
- formatted condition to fit 80 char long line
---
modules/registrar/save.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/registrar/save.c b/modules/registrar/save.c
index 6c29403..a82be7e 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -382,6 +382,7 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t*
_c, unsig
if(sruid_next(&_reg_sruid)<0)
goto error;
ci.ruid = _reg_sruid.uid;
+ LM_DBG("generated ruid is: %.*s\n", ci.ruid.len, ci.ruid.s);
}
return &ci;
@@ -452,8 +453,9 @@ static inline int insert_contacts(struct sip_msg* _m, udomain_t* _d,
str* _a, in
flags = mem_only;
#ifdef USE_TCP
- if ( (_m->flags&tcp_persistent_flag) &&
- (_m->rcv.proto==PROTO_TCP||_m->rcv.proto==PROTO_TLS||_m->rcv.proto==PROTO_WS||_m->rcv.proto==PROTO_WSS))
{
+ if ( (_m->flags&tcp_persistent_flag)
+ && (_m->rcv.proto==PROTO_TCP||_m->rcv.proto==PROTO_TLS
+ ||_m->rcv.proto==PROTO_WS||_m->rcv.proto==PROTO_WSS)) {
e_max = 0;
tcp_check = 1;
} else {