Module: kamailio
Branch: 5.5
Commit: 45ef2fab63eaae18c4a0e41ffc0487829105b481
URL:
https://github.com/kamailio/kamailio/commit/45ef2fab63eaae18c4a0e41ffc04878…
Author: Atanas Bakalov <atanas.bakalov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-19T08:22:50+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(a)wgtwo.com>
(cherry picked from commit ab8cb43c83f8c9528e45a5b57fbb1440360f201e)
---
Modified: src/modules/ims_qos/rx_aar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/45ef2fab63eaae18c4a0e41ffc04878…
Patch:
https://github.com/kamailio/kamailio/commit/45ef2fab63eaae18c4a0e41ffc04878…
---
diff --git a/src/modules/ims_qos/rx_aar.c b/src/modules/ims_qos/rx_aar.c
index 6a2d60c9012..148224b4cce 100644
--- a/src/modules/ims_qos/rx_aar.c
+++ b/src/modules/ims_qos/rx_aar.c
@@ -177,6 +177,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 {