瀏覽代碼

ims_registrar_pcscf: ims_usrloc_pcscf return 0 if found, not 1

Carsten Bock 11 年之前
父節點
當前提交
d32b9a3232
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/ims_registrar_pcscf/service_routes.c

+ 1 - 1
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) {
 		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)) {
 				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.len = ip_addr2sbuf(&_m->rcv.src_ip, srcip, sizeof(srcip));
 					received_host.s = srcip;
 					received_host.s = srcip;