Pārlūkot izejas kodu

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

jaybeepee 10 gadi atpakaļ
vecāks
revīzija
e0a76892f8
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      modules/ims_registrar_pcscf/service_routes.c

+ 4 - 4
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;