Module: kamailio
Branch: master
Commit: 8cce4f243bc00f243671da7349edd3a11d5dc2ec
URL:
https://github.com/kamailio/kamailio/commit/8cce4f243bc00f243671da7349edd3a…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-11-01T21:27:28+01:00
acc_radius: fix generating duplicates for missed calls
- fix generating duplicates for missed calls (#GH1674)
- patch from Julien Chavanton jchavanton at gmail dot com
---
Modified: src/modules/acc_radius/acc_radius_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8cce4f243bc00f243671da7349edd3a…
Patch:
https://github.com/kamailio/kamailio/commit/8cce4f243bc00f243671da7349edd3a…
---
diff --git a/src/modules/acc_radius/acc_radius_mod.c
b/src/modules/acc_radius/acc_radius_mod.c
index 54f5c15217..adbfe18b00 100644
--- a/src/modules/acc_radius/acc_radius_mod.c
+++ b/src/modules/acc_radius/acc_radius_mod.c
@@ -142,9 +142,9 @@ static int mod_init(void)
memset(&_acc_radius_engine, 0, sizeof(acc_engine_t));
if(radius_flag != -1)
- _acc_radius_engine.acc_flag = 1 << radius_flag;
+ _acc_radius_engine.acc_flag = radius_flag;
if(radius_missed_flag != -1)
- _acc_radius_engine.missed_flag = 1 << radius_missed_flag;
+ _acc_radius_engine.missed_flag = radius_missed_flag;
_acc_radius_engine.acc_req = acc_radius_send_request;
_acc_radius_engine.acc_init = acc_radius_init;
memcpy(_acc_radius_engine.name, "radius", 6);