Module: kamailio
Branch: master
Commit: ab8cb43c83f8c9528e45a5b57fbb1440360f201e
URL:
https://github.com/kamailio/kamailio/commit/ab8cb43c83f8c9528e45a5b57fbb144…
Author: Atanas Bakalov <atanas.bakalov(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2022-05-30T10:46:38+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>
---
Modified: src/modules/ims_qos/rx_aar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ab8cb43c83f8c9528e45a5b57fbb144…
Patch:
https://github.com/kamailio/kamailio/commit/ab8cb43c83f8c9528e45a5b57fbb144…
---
diff --git a/src/modules/ims_qos/rx_aar.c b/src/modules/ims_qos/rx_aar.c
index b60f689e60..afd7ba3e74 100644
--- a/src/modules/ims_qos/rx_aar.c
+++ b/src/modules/ims_qos/rx_aar.c
@@ -180,6 +180,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 {