浏览代码

modules/ims_usrloc_pcscf: search for contacts should not be based on reg_state
- up to consumer to check state of contact

Jason Penton 11 年之前
父节点
当前提交
da2e3d712c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      modules/ims_usrloc_pcscf/udomain.c

+ 2 - 4
modules/ims_usrloc_pcscf/udomain.c

@@ -538,9 +538,7 @@ int get_pcontact_by_src(udomain_t* _d, str * _host, unsigned short _port, unsign
 					s_contact.s);
 
 			// First check, if Proto and Port matches:
-			if ((c->reg_state == PCONTACT_REGISTERED)
-					&& (c->received_port == _port)
-					&& (c->received_proto == _proto)) {
+			if ((c->received_port == _port) && (c->received_proto == _proto)) {
 				LM_DBG("Received host len %d (search %d)\n", c->received_host.len, _host->len);
 				// Then check the length:
 				if (c->received_host.len == _host->len) {
@@ -568,7 +566,7 @@ int get_pcontact_by_src(udomain_t* _d, str * _host, unsigned short _port, unsign
 					reg_state_to_string(c->reg_state), reg_state_to_string(PCONTACT_REGISTERED)
 					);
 				// First check, if Proto and Port matches:
-				if ((c->reg_state == PCONTACT_REGISTERED) && (c->received_port == _port) && (c->received_proto == _proto)) {
+				if ((c->received_port == _port) && (c->received_proto == _proto)) {
 					LM_DBG("Received host len %d (search %d)\n", c->received_host.len, _host->len);
 					// Then check the length:
 					if (c->received_host.len == _host->len) {