Module: sip-router
Branch: 4.0
Commit: 744a6dc1c93c8b16750f4ab25deb57a02889f1d0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=744a6dc…
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
(cherry picked from commit 735f83d6346c97d6f7b1da26a2fee1b6270872b1)
---
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 7596c6a..cd637c3 100644
--- a/modules/registrar/save.c
+++ b/modules/registrar/save.c
@@ -374,6 +374,7 @@ static inline ucontact_info_t* pack_ci( struct sip_msg* _m, contact_t*
_c,
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;
@@ -444,8 +445,9 @@ static inline int insert_contacts(struct sip_msg* _m, udomain_t* _d,
str* _a)
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 {