Module: kamailio
Branch: master
Commit: 9e07c7e1b6cf55398c7595d5265c4944e10c7862
URL:
https://github.com/kamailio/kamailio/commit/9e07c7e1b6cf55398c7595d5265c494…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-11-08T18:15:11+02:00
modules/ims_qos: remove CDP auth session on failure to suspend
---
Modified: modules/ims_qos/mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9e07c7e1b6cf55398c7595d5265c494…
Patch:
https://github.com/kamailio/kamailio/commit/9e07c7e1b6cf55398c7595d5265c494…
---
diff --git a/modules/ims_qos/mod.c b/modules/ims_qos/mod.c
index fc9be1a..c5cb363 100644
--- a/modules/ims_qos/mod.c
+++ b/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