Browse code

Merge 7a6d2e4d1ae242dc706ce17b45afa8d947bd606a into 1a3a12b07d6bbb624f47350c8e92084dafdc89f6

Atanas Bakalov authored on 18/09/2022 19:08:36 • GitHub committed on 18/09/2022 19:08:36
Showing 1 changed files
... ...
@@ -53,6 +53,7 @@
53 53
 #include "../cdp_avp/cdp_avp_mod.h"
54 54
 
55 55
 #include "../../modules/ims_dialog/dlg_load.h"
56
+#include "../../modules/ims_dialog/dlg_hash.h"
56 57
 #include "../../modules/tm/tm_load.h"
57 58
 #include "../ims_usrloc_pcscf/usrloc.h"
58 59
 #include "rx_authdata.h"
... ...
@@ -177,6 +178,8 @@ void async_aar_callback(int is_timeout, void *param, AAAMessage *aaa, long elaps
177 178
             STR_SHM_DUP(*passed_rx_session_id, aaa->sessionId->data, "cb_passed_rx_session_id");
178 179
             LM_DBG("passed rx session id [%.*s]", passed_rx_session_id->len, passed_rx_session_id->s);
179 180
             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);
181
+        } else {
182
+            unref_dlg(data->dlg, 1);
180 183
         }
181 184
         result = CSCF_RETURN_TRUE;
182 185
     } else {