[sr-dev] git:master:e0a76892: modules/ims_registrar_pcscf: set received host, proto and port when searching for pcontact

jaybeepee jason.penton at gmail.com
Wed Sep 16 11:31:58 CEST 2015


Module: kamailio
Branch: master
Commit: e0a76892f8c89cb3ceb224246e7c635778ec0719
URL: https://github.com/kamailio/kamailio/commit/e0a76892f8c89cb3ceb224246e7c635778ec0719

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2015-09-16T11:31:46+02:00

modules/ims_registrar_pcscf: set received host, proto and port when searching for pcontact

---

Modified: modules/ims_registrar_pcscf/service_routes.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e0a76892f8c89cb3ceb224246e7c635778ec0719.diff
Patch: https://github.com/kamailio/kamailio/commit/e0a76892f8c89cb3ceb224246e7c635778ec0719.patch

---

diff --git a/modules/ims_registrar_pcscf/service_routes.c b/modules/ims_registrar_pcscf/service_routes.c
index cd75a74..bb15436 100644
--- a/modules/ims_registrar_pcscf/service_routes.c
+++ b/modules/ims_registrar_pcscf/service_routes.c
@@ -214,10 +214,10 @@ pcontact_t * getContactP(struct sip_msg* _m, udomain_t* _d) {
 //    if (_m->id != current_msg_id) {
         current_msg_id = _m->id;
         c = NULL;
-        search_ci.received_host.s = 0;
-        search_ci.received_host.len = 0;
-        search_ci.received_port = 0;
-        search_ci.received_proto = 0;
+        search_ci.received_host.s = received_host.s;
+        search_ci.received_host.len = received_host.len;
+        search_ci.received_port = _m->rcv.src_port;
+        search_ci.received_proto = _m->rcv.proto;
         search_ci.searchflag = SEARCH_NORMAL;
         search_ci.via_host = host;
         search_ci.via_port = port;




More information about the sr-dev mailing list