Module: sip-router
Branch: master
Commit: 5ac76c501c87da24443ec56b7cf4ac93b8318f49
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5ac76c5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Sep 11 14:46:03 2012 +0200
registrar(k): set found if lookup for uri branch is successful
- the additional branches can hit all not found, but still a found on
r-uri can happen
---
modules_k/registrar/lookup.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/registrar/lookup.c b/modules_k/registrar/lookup.c
index 865224a..96ecfc1 100644
--- a/modules_k/registrar/lookup.c
+++ b/modules_k/registrar/lookup.c
@@ -353,6 +353,9 @@ int lookup_branches(sip_msg_t *msg, udomain_t *d)
if(nr_branches_start==0)
return ret;
+ if(ret>0)
+ found = 1;
+
/* backup r-uri branch */
ruri_b_uri = msg->new_uri;
ruri_b_dst_uri = msg->dst_uri;