Browse code

ims_qos: extend get_pcontact with the new parameter.

Aleksandar Yosifov authored on 03/08/2020 11:52:29
Showing 3 changed files
... ...
@@ -275,7 +275,7 @@ void cdp_cb_event_process()
275 275
 												contact_info.aor = p_session_data->registration_aor;
276 276
 												contact_info.reg_state = PCONTACT_ANY;
277 277
 
278
-												if (ul.get_pcontact(domain, &contact_info, &pcontact) != 0) {
278
+												if (ul.get_pcontact(domain, &contact_info, &pcontact, 0) != 0) {
279 279
 														LM_DBG("no contact found for terminated Rx reg session..... ignoring\n");
280 280
 												} else {
281 281
 														LM_DBG("Updating contact [%.*s] after Rx reg session terminated, setting state to PCONTACT_DEREG_PENDING_PUBLISH\n", pcontact->aor.len, pcontact->aor.s);
... ...
@@ -1314,7 +1314,7 @@ static int w_rx_aar_register(struct sip_msg *msg, char* route, char* str1, char*
1314 1314
 								contact_info.received_host.len = 0;
1315 1315
 								contact_info.reg_state = PCONTACT_ANY; //search for any state
1316 1316
 
1317
-								if (ul.get_pcontact(domain_t, &contact_info, &pcontact) != 0) {
1317
+								if (ul.get_pcontact(domain_t, &contact_info, &pcontact, 0) != 0) {
1318 1318
 										LM_ERR("This contact does not exist in PCSCF usrloc - error in cfg file\n");
1319 1319
 										ul.unlock_udomain(domain_t, &vb->host, vb->port, vb->proto);
1320 1320
 										lock_release(saved_t_data->lock);
... ...
@@ -321,7 +321,7 @@ void async_aar_reg_callback(int is_timeout, void *param, AAAMessage *aaa, long e
321 321
         contact_info.via_prot = local_data->via_proto;
322 322
         contact_info.reg_state = PCONTACT_ANY;
323 323
 
324
-        if (ul.get_pcontact(domain_t, &contact_info, &pcontact) != 0) {
324
+        if (ul.get_pcontact(domain_t, &contact_info, &pcontact, 0) != 0) {
325 325
             LM_ERR("Shouldn't get here, can't find contact....\n");
326 326
             ul.unlock_udomain(domain_t, &local_data->via_host, local_data->via_port, local_data->via_proto);
327 327
             goto error;