Module: kamailio
Branch: master
Commit: 45ebf8bd87c7ef23aed0461808cad25d8127db7f
URL:
https://github.com/kamailio/kamailio/commit/45ebf8bd87c7ef23aed0461808cad25…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-08-12T20:44:08+02:00
ims_qos: extend get_pcontact with the new parameter.
---
Modified: src/modules/ims_qos/cdpeventprocessor.c
Modified: src/modules/ims_qos/ims_qos_mod.c
Modified: src/modules/ims_qos/rx_aar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/45ebf8bd87c7ef23aed0461808cad25…
Patch:
https://github.com/kamailio/kamailio/commit/45ebf8bd87c7ef23aed0461808cad25…
---
diff --git a/src/modules/ims_qos/cdpeventprocessor.c
b/src/modules/ims_qos/cdpeventprocessor.c
index 8c31ef05ac..352c39396a 100644
--- a/src/modules/ims_qos/cdpeventprocessor.c
+++ b/src/modules/ims_qos/cdpeventprocessor.c
@@ -275,7 +275,7 @@ void cdp_cb_event_process()
contact_info.aor = p_session_data->registration_aor;
contact_info.reg_state = PCONTACT_ANY;
- if (ul.get_pcontact(domain, &contact_info, &pcontact) != 0) {
+ if (ul.get_pcontact(domain, &contact_info, &pcontact, 0) != 0) {
LM_DBG("no contact found for terminated Rx reg session.....
ignoring\n");
} else {
LM_DBG("Updating contact [%.*s] after Rx reg session terminated,
setting state to PCONTACT_DEREG_PENDING_PUBLISH\n", pcontact->aor.len,
pcontact->aor.s);
diff --git a/src/modules/ims_qos/ims_qos_mod.c b/src/modules/ims_qos/ims_qos_mod.c
index e58dd2c140..5fa584bcd7 100644
--- a/src/modules/ims_qos/ims_qos_mod.c
+++ b/src/modules/ims_qos/ims_qos_mod.c
@@ -1314,7 +1314,7 @@ static int w_rx_aar_register(struct sip_msg *msg, char* route, char*
str1, char*
contact_info.received_host.len = 0;
contact_info.reg_state = PCONTACT_ANY; //search for any state
- if (ul.get_pcontact(domain_t, &contact_info, &pcontact) != 0) {
+ if (ul.get_pcontact(domain_t, &contact_info, &pcontact, 0) != 0) {
LM_ERR("This contact does not exist in PCSCF usrloc - error in cfg
file\n");
ul.unlock_udomain(domain_t, &vb->host, vb->port, vb->proto);
lock_release(saved_t_data->lock);
diff --git a/src/modules/ims_qos/rx_aar.c b/src/modules/ims_qos/rx_aar.c
index b1e8df51b8..987b5c22bd 100644
--- a/src/modules/ims_qos/rx_aar.c
+++ b/src/modules/ims_qos/rx_aar.c
@@ -321,7 +321,7 @@ void async_aar_reg_callback(int is_timeout, void *param, AAAMessage
*aaa, long e
contact_info.via_prot = local_data->via_proto;
contact_info.reg_state = PCONTACT_ANY;
- if (ul.get_pcontact(domain_t, &contact_info, &pcontact) != 0) {
+ if (ul.get_pcontact(domain_t, &contact_info, &pcontact, 0) != 0) {
LM_ERR("Shouldn't get here, can't find contact....\n");
ul.unlock_udomain(domain_t, &local_data->via_host,
local_data->via_port, local_data->via_proto);
goto error;