瀏覽代碼

modules/ims_qos: remove CDP auth session on failure to suspend

jaybeepee 10 年之前
父節點
當前提交
9e07c7e1b6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules/ims_qos/mod.c

+ 4 - 0
modules/ims_qos/mod.c

@@ -915,6 +915,10 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char* dir, char *c_id, int
 
 error:
     LM_ERR("Error trying to send AAR (calling)\n");
+	if (auth_session != NULL) {
+		cdpb.AAASessionsUnlock(auth_session->hash);
+		cdpb.AAADropAuthSession(auth_session);
+	}
 ignore:
     if (saved_t_data)
         free_saved_transaction_global_data(saved_t_data); //only free global data if no AARs were sent. if one was sent we have to rely on the callback (CDP) to free