[sr-dev] git:5.6:a290ab58: rx_aar: unreference dialog in case of aar update (#3104)

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 19 08:22:10 CEST 2022


Module: kamailio
Branch: 5.6
Commit: a290ab58f81d540d3613bcd536d7e411b29e2e9c
URL: https://github.com/kamailio/kamailio/commit/a290ab58f81d540d3613bcd536d7e411b29e2e9c

Author: Atanas Bakalov <atanas.bakalov at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-09-19T08:22:04+02:00

rx_aar: unreference dialog in case of aar update (#3104)

- release the dialog reference even for aar updates as the dialog was
  already referenced when issuing the aar request

Co-authored-by: Atanas Bakalov <atanas at wgtwo.com>
(cherry picked from commit ab8cb43c83f8c9528e45a5b57fbb1440360f201e)

---

Modified: src/modules/ims_qos/rx_aar.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a290ab58f81d540d3613bcd536d7e411b29e2e9c.diff
Patch: https://github.com/kamailio/kamailio/commit/a290ab58f81d540d3613bcd536d7e411b29e2e9c.patch

---

diff --git a/src/modules/ims_qos/rx_aar.c b/src/modules/ims_qos/rx_aar.c
index 9ebca2ecf1e..da4a0e42dd7 100644
--- a/src/modules/ims_qos/rx_aar.c
+++ b/src/modules/ims_qos/rx_aar.c
@@ -181,6 +181,8 @@ void async_aar_callback(int is_timeout, void *param, AAAMessage *aaa, long elaps
             STR_SHM_DUP(*passed_rx_session_id, aaa->sessionId->data, "cb_passed_rx_session_id");
             LM_DBG("passed rx session id [%.*s]", passed_rx_session_id->len, passed_rx_session_id->s);
             dlgb.register_dlgcb_nodlg( data->dlg, DLGCB_TERMINATED | DLGCB_DESTROY | DLGCB_EXPIRED | DLGCB_RESPONSE_WITHIN | DLGCB_CONFIRMED | DLGCB_FAILED, callback_dialog, (void*) (passed_rx_session_id), free_dialog_data);
+        } else {
+            unref_dlg(data->dlg, 1);
         }
         result = CSCF_RETURN_TRUE;
     } else {




More information about the sr-dev mailing list