Module: kamailio
Branch: master
Commit: cb6332982edff5fd2f10b6ee41c22388cc9a39b3
URL:
https://github.com/kamailio/kamailio/commit/cb6332982edff5fd2f10b6ee41c2238…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-05-31T08:56:19+02:00
cdp: reworked switch for setting x->state = ACC_CC_ST_DISCON
---
Modified: src/modules/cdp/acctstatemachine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cb6332982edff5fd2f10b6ee41c2238…
Patch:
https://github.com/kamailio/kamailio/commit/cb6332982edff5fd2f10b6ee41c2238…
---
diff --git a/src/modules/cdp/acctstatemachine.c b/src/modules/cdp/acctstatemachine.c
index 8dc694239c0..398526d86d7 100644
--- a/src/modules/cdp/acctstatemachine.c
+++ b/src/modules/cdp/acctstatemachine.c
@@ -221,8 +221,12 @@ int cc_acc_client_stateful_sm_process(
case ACC_CC_EV_RECV_ANS_SUCCESS:
x->state = ACC_CC_ST_DISCON;
// update_gsu_response_timers(x, msg);
+ x->discon_time = time(0);
+ break;
case ACC_CC_EV_RECV_ANS_UNSUCCESS:
x->state = ACC_CC_ST_DISCON;
+ x->discon_time = time(0);
+ break;
default:
LM_DBG("Received event [%d] in state [%d] - cleaning up "
"session regardless\n",