Module: sip-router
Branch: master
Commit: d32b9a32327183c6ec536ec5959038f8bd20d7fa
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d32b9a32327183c6ec536ec5959038f8bd20d7fa

Author: Carsten Bock <[email protected]>
Committer: Carsten Bock <[email protected]>
Date:   Mon Dec  9 23:15:42 2013 +0100

ims_registrar_pcscf: ims_usrloc_pcscf return 0 if found, not 1

---

 modules/ims_registrar_pcscf/service_routes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/ims_registrar_pcscf/service_routes.c 
b/modules/ims_registrar_pcscf/service_routes.c
index 8cff8a4..80393bc 100644
--- a/modules/ims_registrar_pcscf/service_routes.c
+++ b/modules/ims_registrar_pcscf/service_routes.c
@@ -129,7 +129,7 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) 
{
                }
 
                for (ct = b->contacts; ct; ct = ct->next) {
-                       if (ul.get_pcontact(_d, &ct->uri, &c) == 1) {
+                       if (ul.get_pcontact(_d, &ct->uri, &c) == 0) {
                                if ((c->reg_state == PCONTACT_REGISTERED) && 
(c->received_port == _m->rcv.src_port) && (c->received_proto == _m->rcv.proto)) 
{
                                        received_host.len = 
ip_addr2sbuf(&_m->rcv.src_ip, srcip, sizeof(srcip));
                                        received_host.s = srcip;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to