Module: kamailio
Branch: master
Commit: e0a76892f8c89cb3ceb224246e7c635778ec0719
URL:
https://github.com/kamailio/kamailio/commit/e0a76892f8c89cb3ceb224246e7c635…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)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/e0a76892f8c89cb3ceb224246e7c635…
Patch:
https://github.com/kamailio/kamailio/commit/e0a76892f8c89cb3ceb224246e7c635…
---
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;