浏览代码

ims_qos: extend get_pcontact with the new parameter.

Aleksandar Yosifov 5 年之前
父节点
当前提交
45ebf8bd87
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/modules/ims_qos/cdpeventprocessor.c
  2. 1 1
      src/modules/ims_qos/ims_qos_mod.c
  3. 1 1
      src/modules/ims_qos/rx_aar.c

+ 1 - 1
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);

+ 1 - 1
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);

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